[llvm] r235009 - [MBP] Spell the conditions the same way through out this if statement.

Chandler Carruth chandlerc at gmail.com
Wed Apr 15 06:39:43 PDT 2015


Author: chandlerc
Date: Wed Apr 15 08:39:42 2015
New Revision: 235009

URL: http://llvm.org/viewvc/llvm-project?rev=235009&view=rev
Log:
[MBP] Spell the conditions the same way through out this if statement.
NFC.

Modified:
    llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp

Modified: llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp?rev=235009&r1=235008&r2=235009&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBlockPlacement.cpp Wed Apr 15 08:39:42 2015
@@ -715,7 +715,7 @@ MachineBlockPlacement::findBestLoopExit(
       // 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))) {





More information about the llvm-commits mailing list