mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-22 00:37:49 +00:00
Cleanup Whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115593 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
434c7cb8a1
commit
2bbb769091
@ -230,7 +230,7 @@ ARMBaseInstrInfo::spillCalleeSavedRegisters(MachineBasicBlock &MBB,
|
||||
MBB.addLiveIn(Reg);
|
||||
|
||||
// Insert the spill to the stack frame. The register is killed at the spill
|
||||
//
|
||||
//
|
||||
const TargetRegisterClass *RC = TRI->getMinimalPhysRegClass(Reg);
|
||||
storeRegToStackSlot(MBB, MI, Reg, isKill,
|
||||
CSI[i].getFrameIdx(), RC, TRI);
|
||||
@ -1205,7 +1205,7 @@ bool ARMBaseInstrInfo::isProfitableToIfCvt(MachineBasicBlock &MBB,
|
||||
float Confidence) const {
|
||||
if (!NumInstrs)
|
||||
return false;
|
||||
|
||||
|
||||
// Use old-style heuristics
|
||||
if (OldARMIfCvt) {
|
||||
if (Subtarget.getCPUString() == "generic")
|
||||
@ -1215,18 +1215,18 @@ bool ARMBaseInstrInfo::isProfitableToIfCvt(MachineBasicBlock &MBB,
|
||||
return NumInstrs <= 3;
|
||||
return NumInstrs <= 2;
|
||||
}
|
||||
|
||||
|
||||
// Attempt to estimate the relative costs of predication versus branching.
|
||||
float UnpredCost = Probability * NumInstrs;
|
||||
UnpredCost += 1.0; // The branch itself
|
||||
UnpredCost += (1.0 - Confidence) * Subtarget.getMispredictionPenalty();
|
||||
|
||||
|
||||
float PredCost = NumInstrs;
|
||||
|
||||
|
||||
return PredCost < UnpredCost;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
bool ARMBaseInstrInfo::
|
||||
isProfitableToIfCvt(MachineBasicBlock &TMBB, unsigned NumT,
|
||||
MachineBasicBlock &FMBB, unsigned NumF,
|
||||
@ -1238,14 +1238,14 @@ isProfitableToIfCvt(MachineBasicBlock &TMBB, unsigned NumT,
|
||||
|
||||
if (!NumT || !NumF)
|
||||
return false;
|
||||
|
||||
|
||||
// Attempt to estimate the relative costs of predication versus branching.
|
||||
float UnpredCost = Probability * NumT + (1.0 - Probability) * NumF;
|
||||
UnpredCost += 1.0; // The branch itself
|
||||
UnpredCost += (1.0 - Confidence) * Subtarget.getMispredictionPenalty();
|
||||
|
||||
|
||||
float PredCost = NumT + NumF;
|
||||
|
||||
|
||||
return PredCost < UnpredCost;
|
||||
}
|
||||
|
||||
@ -1637,7 +1637,7 @@ ARMBaseInstrInfo::getNumMicroOps(const MachineInstr *MI,
|
||||
} else {
|
||||
// Assume the worst.
|
||||
return NumRegs;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user