Don't attempt preserving conservative kill flags. We were doing it wrong.

This is before LiveVariables anyway, where these kill flags are recalculated.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106157 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jakob Stoklund Olesen 2010-06-16 22:11:08 +00:00
parent 07f6e805b1
commit a2846b4bee

View File

@ -448,8 +448,7 @@ NEONPreAllocPass::FormsRegSequence(MachineInstr *MI,
assert(DefMI->isExtractSubreg());
MO.setReg(LastSrcReg);
MO.setSubReg(SubIds[R]);
if (R != 0)
MO.setIsKill(false);
MO.setIsKill(false);
// Delete the EXTRACT_SUBREG if its result is now dead.
if (MRI->use_empty(OldReg))
DefMI->eraseFromParent();