hoist loop-invariant; NFCI

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239681 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sanjay Patel 2015-06-13 15:33:15 +00:00
parent ea58c7de01
commit 75975e2a29

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();
}