MI->addOperand invalidates references to it's operands, avoid touching
the operand after a new one was added.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83249
91177308-0d34-0410-b5e6-
96231b3b80d8
// If any subreg of MO is live, then create an imp-def for that
// subreg and keep MO marked as killed.
// If any subreg of MO is live, then create an imp-def for that
// subreg and keep MO marked as killed.
bool AllDead = true;
const unsigned SuperReg = MO.getReg();
for (const unsigned *Subreg = TRI->getSubRegisters(SuperReg);
bool AllDead = true;
const unsigned SuperReg = MO.getReg();
for (const unsigned *Subreg = TRI->getSubRegisters(SuperReg);
+ if(AllDead)
+ MO.setIsKill(true);