mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-31 10:34:17 +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,10 +387,9 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
|
|||||||
} else {
|
} else {
|
||||||
// Cleanup instructions of the alternative code sequence. There is no
|
// Cleanup instructions of the alternative code sequence. There is no
|
||||||
// use for them.
|
// use for them.
|
||||||
for (auto *InstrPtr : InsInstrs) {
|
MachineFunction *MF = MBB->getParent();
|
||||||
MachineFunction *MF = MBB->getParent();
|
for (auto *InstrPtr : InsInstrs)
|
||||||
MF->DeleteMachineInstr(InstrPtr);
|
MF->DeleteMachineInstr(InstrPtr);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
InstrIdxForVirtReg.clear();
|
InstrIdxForVirtReg.clear();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user