mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
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:
parent
ea58c7de01
commit
75975e2a29
@ -387,11 +387,10 @@ 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();
|
||||
for (auto *InstrPtr : InsInstrs)
|
||||
MF->DeleteMachineInstr(InstrPtr);
|
||||
}
|
||||
}
|
||||
InstrIdxForVirtReg.clear();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user