Fix pr4544. When remating, make sure the destination register fits the instruction...
authorEvan Cheng <evan.cheng@apple.com>
Tue, 14 Jul 2009 00:51:06 +0000 (00:51 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 14 Jul 2009 00:51:06 +0000 (00:51 +0000)
commit5ad147281a2c95b662cbc76e879f340118c8bb19
tree22970711806cd57f76ba247dabb1c84bde75b759
parent4458ab0d83c33a649c61355a4d80e94014193856
Fix pr4544. When remating, make sure the destination register fits the instruction definition. It may be mismatched due to sub-register coalescing.
No test case yet because the code doesn't trigger until 75408 is re-applied.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75572 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SimpleRegisterCoalescing.cpp