mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-13 06:06:27 +00:00
Silence msvc warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9255b8d349
commit
6406d004c9
@ -786,20 +786,20 @@ IfConverter::BBInfo &IfConverter::AnalyzeBlock(MachineBasicBlock *BB,
|
||||
// General heuristics are:
|
||||
// - backedge -> 90% taken
|
||||
// - early exit -> 20% taken
|
||||
float Prediction = 0.5;
|
||||
float Prediction = 0.5f;
|
||||
MachineLoop *Loop = MLI->getLoopFor(BB);
|
||||
if (Loop) {
|
||||
if (TrueBBI.BB == Loop->getHeader())
|
||||
Prediction = 0.9;
|
||||
Prediction = 0.9f;
|
||||
else if (FalseBBI.BB == Loop->getHeader())
|
||||
Prediction = 0.1;
|
||||
|
||||
Prediction = 0.1f;
|
||||
|
||||
MachineLoop *TrueLoop = MLI->getLoopFor(TrueBBI.BB);
|
||||
MachineLoop *FalseLoop = MLI->getLoopFor(FalseBBI.BB);
|
||||
if (!TrueLoop || TrueLoop->getParentLoop() == Loop)
|
||||
Prediction = 0.2;
|
||||
Prediction = 0.2f;
|
||||
else if (!FalseLoop || FalseLoop->getParentLoop() == Loop)
|
||||
Prediction = 0.8;
|
||||
Prediction = 0.8f;
|
||||
}
|
||||
|
||||
if (CanRevCond && ValidDiamond(TrueBBI, FalseBBI, Dups, Dups2) &&
|
||||
|
Loading…
Reference in New Issue
Block a user