Displaying 1 result from an estimated 1 matches for "removedkillflag".
2011 Oct 12
1
[LLVMdev] Problem in TwoAddressInstructionPass::runOnMachineFunction regarding subRegs
...ap.insert(std::make_pair(prevMI, Dist));
@@ -1190,11 +1198,13 @@ bool
TwoAddressInstructionPass::runOnMachineFunction(MachineFunction &MF) {
"inconsistent operand info for 2-reg pass");
if (MO.isKill()) {
MO.setIsKill(false);
RemovedKillFlag = true;
}
+ unsigned regASubIdx = mi->getOperand(DstIdx).getSubReg();
MO.setReg(regA);
+ MO.setSubReg(regASubIdx);
}
/Mikael Holmén