When remat'ing and destination virtual register has a sub-register index. Make sure...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 8 Sep 2009 06:39:07 +0000 (06:39 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 8 Sep 2009 06:39:07 +0000 (06:39 +0000)
commit8bdb0de2bd3124bdf7cc6e781d7fb54af68d5c80
treeb86276c41c56ec4ea539223f0630e278259f3517
parentd19ceb9b122e120009a67231e89903ec2205cf1d
When remat'ing and destination virtual register has a sub-register index. Make sure the sub-register class matches the register class of the remat'ed instruction definition register class.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp
test/CodeGen/X86/2009-09-07-CoalescerBug.ll [new file with mode: 0644]