mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-20 11:32:33 +00:00
Fix a typo.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129429 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d8b88d8558
commit
5876db7a66
lib/Target/ARM
@ -1270,19 +1270,19 @@ bool ARMBaseInstrInfo::isSchedulingBoundary(const MachineInstr *MI,
|
||||
}
|
||||
|
||||
bool ARMBaseInstrInfo::isProfitableToIfCvt(MachineBasicBlock &MBB,
|
||||
unsigned NumCyles,
|
||||
unsigned NumCycles,
|
||||
unsigned ExtraPredCycles,
|
||||
float Probability,
|
||||
float Confidence) const {
|
||||
if (!NumCyles)
|
||||
if (!NumCycles)
|
||||
return false;
|
||||
|
||||
// Attempt to estimate the relative costs of predication versus branching.
|
||||
float UnpredCost = Probability * NumCyles;
|
||||
float UnpredCost = Probability * NumCycles;
|
||||
UnpredCost += 1.0; // The branch itself
|
||||
UnpredCost += (1.0 - Confidence) * Subtarget.getMispredictionPenalty();
|
||||
|
||||
return (float)(NumCyles + ExtraPredCycles) < UnpredCost;
|
||||
return (float)(NumCycles + ExtraPredCycles) < UnpredCost;
|
||||
}
|
||||
|
||||
bool ARMBaseInstrInfo::
|
||||
|
@ -307,7 +307,7 @@ public:
|
||||
const MachineFunction &MF) const;
|
||||
|
||||
virtual bool isProfitableToIfCvt(MachineBasicBlock &MBB,
|
||||
unsigned NumCyles, unsigned ExtraPredCycles,
|
||||
unsigned NumCycles, unsigned ExtraPredCycles,
|
||||
float Prob, float Confidence) const;
|
||||
|
||||
virtual bool isProfitableToIfCvt(MachineBasicBlock &TMBB,
|
||||
@ -317,10 +317,10 @@ public:
|
||||
float Probability, float Confidence) const;
|
||||
|
||||
virtual bool isProfitableToDupForIfCvt(MachineBasicBlock &MBB,
|
||||
unsigned NumCyles,
|
||||
unsigned NumCycles,
|
||||
float Probability,
|
||||
float Confidence) const {
|
||||
return NumCyles == 1;
|
||||
return NumCycles == 1;
|
||||
}
|
||||
|
||||
/// AnalyzeCompare - For a comparison instruction, return the source register
|
||||
|
Loading…
x
Reference in New Issue
Block a user