Fix a coaelescer bug. If a copy val# is extended to eliminate a non-trivially coalesc...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 3 Aug 2009 08:41:59 +0000 (08:41 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 3 Aug 2009 08:41:59 +0000 (08:41 +0000)
commiteed0ff147c40aa6a1550b331c6b4bb6ed994ff25
tree2241465a01df98ea548f8d7b9ad6698bc1694895
parentdd93f5eb7196e0235db72c7bac49912410c37a51
Fix a coaelescer bug. If a copy val# is extended to eliminate a non-trivially coalesced copy, and the copy kills its source register. Trim the source register's live range to the last use if possible. This fixes up kill marker to make the scavenger happy.

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