We should remove the live range from the destination register only if *all* defs
authorBill Wendling <isanbard@gmail.com>
Fri, 25 Jun 2010 20:42:55 +0000 (20:42 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 25 Jun 2010 20:42:55 +0000 (20:42 +0000)
commit39d258aa49717218628c158504996482bbbb0a5a
treee17d5184c1a4100800321cef871b3ad92d541ecd
parent39afa908dea0fc57291a2d08497f8d1877597c54
We should remove the live range from the destination register only if *all* defs
are dead, not just the def of this register. I.e., a register could be dead, but
it's subreg isn't.

Testcase to follow with a subsequent patch.

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