hoist loop-invariant; NFCI

llvm-svn: 239681
This commit is contained in:
Sanjay Patel 2015-06-13 15:33:15 +00:00
parent 240207c1c1
commit fbf2cb2852

View File

@ -387,10 +387,9 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
} else {
// Cleanup instructions of the alternative code sequence. There is no
// use for them.
for (auto *InstrPtr : InsInstrs) {
MachineFunction *MF = MBB->getParent();
MachineFunction *MF = MBB->getParent();
for (auto *InstrPtr : InsInstrs)
MF->DeleteMachineInstr(InstrPtr);
}
}
InstrIdxForVirtReg.clear();
}