[MBP] Spell the conditions the same way through out this if statement.
authorChandler Carruth <chandlerc@gmail.com>
Wed, 15 Apr 2015 13:39:42 +0000 (13:39 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 15 Apr 2015 13:39:42 +0000 (13:39 +0000)
NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235009 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineBlockPlacement.cpp

index df7c7b9..2969bad 100644 (file)
@@ -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))) {