forked from OSchip/llvm-project
Remember to clear the shadow kill flag at the same time as clearing the real
kill flag. This could cause duplicate kill flags when the same register was used twice in a continuous sequence of STRs. There is no small test case. <rdar://problem/8218046> llvm-svn: 112534
This commit is contained in:
parent
3fe617cc09
commit
4d30f90e35
|
@ -324,6 +324,7 @@ void ARMLoadStoreOpt::MergeOpsUpdate(MachineBasicBlock &MBB,
|
|||
if (KilledRegs.count(Reg)) {
|
||||
unsigned j = Killer[Reg];
|
||||
memOps[j].MBBI->getOperand(0).setIsKill(false);
|
||||
memOps[j].isKill = false;
|
||||
}
|
||||
}
|
||||
MBB.erase(memOps[i].MBBI);
|
||||
|
|
Loading…
Reference in New Issue