[MBP] Spell the conditions the same way through out this if statement.
[oota-llvm.git] / lib / CodeGen / MachineBlockPlacement.cpp
index df7c7b90f037c279b9dacccd3e390c3052e243b8..2969bad4ff98b1decb94da8c5c8af02613693393 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))) {