TwoAddressInstructionPass::CoalesceExtSubRegs can insert INSERT_SUBREG
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 18 Jun 2010 22:29:44 +0000 (22:29 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Fri, 18 Jun 2010 22:29:44 +0000 (22:29 +0000)
commit0465bcffbbffb5ff5f420787b4350cb8abb196f7
tree0a93caba63fa7bd50f0ab959cd83a4d84e9cb85a
parent6a5e2832d0a30719602f9befe61f35ab19299de7
TwoAddressInstructionPass::CoalesceExtSubRegs can insert INSERT_SUBREG
instructions, but it doesn't really understand live ranges, so the first
INSERT_SUBREG uses an implicitly defined register.

Fix it in LiveVariableAnalysis by adding the <undef> flag.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106333 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveIntervalAnalysis.cpp
test/CodeGen/Thumb2/crash.ll