summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2009-08-03 20:08:18 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2009-08-03 20:08:18 +0000
commit5d8ace090276d3f68269398bf656ed976441d407 (patch)
tree9dee4471ee10d1639ab0623be1492cd8278af0ab /clang/lib/CodeGen/CodeGenModule.cpp
parent0519492cb639b8c2f8c0958e60c3fce0a39fd3d2 (diff)
downloadbcm5719-llvm-5d8ace090276d3f68269398bf656ed976441d407.tar.gz
bcm5719-llvm-5d8ace090276d3f68269398bf656ed976441d407.zip
Fix Bug 4657: register scavenger asserts with subreg lowering
When LowerSubregsInstructionPass::LowerInsert eliminates an INSERT_SUBREG instriction because it is an identity copy, make sure that the same registers are alive before and after the elimination. When the super-register is marked <undef> this requires inserting an IMPLICIT_DEF instruction to make sure the super register is live. Fix a related bug where a kill flag on the inserted sub-register was not transferred properly. Finally, clear the undef flag in MachineInstr::addRegisterKilled. Undef implies dead and kill implies live, so they cant both be valid. llvm-svn: 77989
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud