Another extract_subreg coalescing bug.
authorEvan Cheng <evan.cheng@apple.com>
Tue, 29 Apr 2008 01:41:44 +0000 (01:41 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 29 Apr 2008 01:41:44 +0000 (01:41 +0000)
commit8509fcf8ebc6435d1b8081de62f93b29d707b341
tree78e1f15d16ab7819cb86639e4fed658d2b799c68
parente54cfdb32a0b8343b3fa1839d1284da9ef211792
Another extract_subreg coalescing bug.
e.g.
vr1024<2> extract_subreg vr1025, 2
If vr1024 do not have the same register class as vr1025, it's not safe to coalesce this away. For example, vr1024 might be a GPR32 while vr1025 might be a GPR64.

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