mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-07-21 18:29:45 +00:00
remove unnecessary casts; NFCI
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239678 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8b27b1cb1
commit
4aeeb9e5dc
@ -373,8 +373,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
|
|||||||
InstrIdxForVirtReg) &&
|
InstrIdxForVirtReg) &&
|
||||||
preservesResourceLen(MBB, BlockTrace, InsInstrs, DelInstrs))) {
|
preservesResourceLen(MBB, BlockTrace, InsInstrs, DelInstrs))) {
|
||||||
for (auto *InstrPtr : InsInstrs)
|
for (auto *InstrPtr : InsInstrs)
|
||||||
MBB->insert((MachineBasicBlock::iterator) & MI,
|
MBB->insert((MachineBasicBlock::iterator) &MI, InstrPtr);
|
||||||
(MachineInstr *)InstrPtr);
|
|
||||||
for (auto *InstrPtr : DelInstrs)
|
for (auto *InstrPtr : DelInstrs)
|
||||||
InstrPtr->eraseFromParentAndMarkDBGValuesForRemoval();
|
InstrPtr->eraseFromParentAndMarkDBGValuesForRemoval();
|
||||||
|
|
||||||
@ -390,7 +389,7 @@ bool MachineCombiner::combineInstructions(MachineBasicBlock *MBB) {
|
|||||||
// use for them.
|
// use for them.
|
||||||
for (auto *InstrPtr : InsInstrs) {
|
for (auto *InstrPtr : InsInstrs) {
|
||||||
MachineFunction *MF = MBB->getParent();
|
MachineFunction *MF = MBB->getParent();
|
||||||
MF->DeleteMachineInstr((MachineInstr *)InstrPtr);
|
MF->DeleteMachineInstr(InstrPtr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
InstrIdxForVirtReg.clear();
|
InstrIdxForVirtReg.clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user