Fix PR2757. Ignore liveinterval register allocation preference if the preference...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 9 Sep 2008 20:22:01 +0000 (20:22 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 9 Sep 2008 20:22:01 +0000 (20:22 +0000)
commit55302169891f136b72706aee31eebeb308398ad2
tree5e3f13b4f741293601013dbfbe695c56fb1b53ac
parent19e861a4ffb896f16a691d5ac869e894df3cd464
Fix PR2757. Ignore liveinterval register allocation preference if the preference register is not in the right register class. This can happen due to sub-register coalescing.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@56006 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocLinearScan.cpp
test/CodeGen/X86/2008-09-09-LinearScanBug.ll [new file with mode: 0644]