summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBlockPlacement.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2015-04-15 13:39:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2015-04-15 13:39:42 +0000
commit26d3017b8e6268f2c15a096a37a3f0e16def77b2 (patch)
treea44bd8852edaf8114dad0dc8a3d87a165f41ffe5 /llvm/lib/CodeGen/MachineBlockPlacement.cpp
parent725abcb88979402fdb1e3567824a8d1ca2292388 (diff)
downloadbcm5719-llvm-26d3017b8e6268f2c15a096a37a3f0e16def77b2.tar.gz
bcm5719-llvm-26d3017b8e6268f2c15a096a37a3f0e16def77b2.zip
[MBP] Spell the conditions the same way through out this if statement.
NFC. llvm-svn: 235009
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineBlockPlacement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp
index df7c7b90f03..2969bad4ff9 100644
--- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp
+++ b/llvm/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);
- if (!ExitingBB || BestExitLoopDepth < SuccLoopDepth ||
+ if (!ExitingBB || SuccLoopDepth > BestExitLoopDepth ||
ExitEdgeFreq > BestExitEdgeFreq ||
(MBB->isLayoutSuccessor(Succ) &&
!(ExitEdgeFreq < BestExitEdgeFreq * Bias))) {
OpenPOWER on IntegriCloud