mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-29 10:25:12 +00:00
Tidy up. Simplify logic. No functional change intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146896 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -105,8 +105,7 @@ runOnMachineBasicBlock(MachineBasicBlock &MBB) {
|
||||
if (EnableDelaySlotFiller && findDelayInstr(MBB, I, D)) {
|
||||
MBB.splice(llvm::next(I), &MBB, D);
|
||||
++UsefulSlots;
|
||||
}
|
||||
else
|
||||
} else
|
||||
BuildMI(MBB, llvm::next(I), I->getDebugLoc(), TII->get(Mips::NOP));
|
||||
|
||||
// Record the filler instruction that filled the delay slot.
|
||||
@@ -167,8 +166,7 @@ bool Filler::findDelayInstr(MachineBasicBlock &MBB,
|
||||
}
|
||||
|
||||
bool Filler::delayHasHazard(MachineBasicBlock::iterator candidate,
|
||||
bool &sawLoad,
|
||||
bool &sawStore,
|
||||
bool &sawLoad, bool &sawStore,
|
||||
SmallSet<unsigned, 32> &RegDefs,
|
||||
SmallSet<unsigned, 32> &RegUses) {
|
||||
if (candidate->isImplicitDef() || candidate->isKill())
|
||||
|
Reference in New Issue
Block a user