projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[X86] Add support for tbyte memory operand size for Intel-syntax x86 assembly
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineBlockPlacement.cpp
diff --git
a/lib/CodeGen/MachineBlockPlacement.cpp
b/lib/CodeGen/MachineBlockPlacement.cpp
index 5e7daa8173bb6b4c0bfc374bfa32087bf026cc23..d7a7dd1c37889daf26a65f18c42c583f3d3064eb 100644
(file)
--- a/
lib/CodeGen/MachineBlockPlacement.cpp
+++ b/
lib/CodeGen/MachineBlockPlacement.cpp
@@
-715,7
+715,7
@@
MachineBlockPlacement::findBestLoopExit(MachineFunction &F, MachineLoop &L,
// a frequency higher than the current exit before we consider breaking
// the layout.
BranchProbability Bias(100 - ExitBlockBias, 100);
// a frequency higher than the current exit before we consider breaking
// the layout.
BranchProbability Bias(100 - ExitBlockBias, 100);
- if (!ExitingBB ||
BestExitLoopDepth < Succ
LoopDepth ||
+ if (!ExitingBB ||
SuccLoopDepth > BestExit
LoopDepth ||
ExitEdgeFreq > BestExitEdgeFreq ||
(MBB->isLayoutSuccessor(Succ) &&
!(ExitEdgeFreq < BestExitEdgeFreq * Bias))) {
ExitEdgeFreq > BestExitEdgeFreq ||
(MBB->isLayoutSuccessor(Succ) &&
!(ExitEdgeFreq < BestExitEdgeFreq * Bias))) {
@@
-724,8
+724,8
@@
MachineBlockPlacement::findBestLoopExit(MachineFunction &F, MachineLoop &L,
}
}
}
}
- // Restore the old exiting state, no viable looping successor was found.
if (!HasLoopingSucc) {
if (!HasLoopingSucc) {
+ // Restore the old exiting state, no viable looping successor was found.
ExitingBB = OldExitingBB;
BestExitEdgeFreq = OldBestExitEdgeFreq;
continue;
ExitingBB = OldExitingBB;
BestExitEdgeFreq = OldBestExitEdgeFreq;
continue;
@@
-1224,4
+1224,3
@@
bool MachineBlockPlacementStats::runOnMachineFunction(MachineFunction &F) {
return false;
}
return false;
}
-