Fix PR4986. "r1024 = insert_subreg r1024, undef, 2" cannot be turned in an implicit_d...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 21 Sep 2009 04:32:32 +0000 (04:32 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 21 Sep 2009 04:32:32 +0000 (04:32 +0000)
commitb0f5973bee566269f41d1cc21b7a1d3bede1d837
tree66a3bdf56afb04183c366e8821b05ee9f61fb407
parentcc1c702f628d93f9d84b681059e16652ad09d595
Fix PR4986. "r1024 = insert_subreg r1024, undef, 2" cannot be turned in an implicit_def. Instead, it's an identity copy so it should be eliminated. Also make sure to update livevariable kill information.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82436 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
test/CodeGen/ARM/2009-09-20-LiveIntervalsBug.ll [new file with mode: 0644]