Silly boog.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 25 May 2007 00:59:01 +0000 (00:59 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 25 May 2007 00:59:01 +0000 (00:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37328 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/IfConversion.cpp

index c5e4ef7c9d2c752febbd1af1688d916603163a56..a8b1d8389a002b43d45fa0bcbdac9f62964e4d54 100644 (file)
@@ -173,17 +173,17 @@ void IfConverter::StructuralAnalysis(MachineBasicBlock *BB) {
       return;  // Already analyzed.
     BBI.BB = BB;
     BBI.NonPredSize = std::distance(BB->begin(), BB->end());
-
-    // Look for 'root' of a simple (non-nested) triangle or diamond.
-    BBI.Kind = ICNotClassfied;
-    bool CanAnalyze = !TII->AnalyzeBranch(*BB, BBI.TrueBB, BBI.FalseBB,
-                                          BBI.BrCond);
-    // Does it end with a return, indirect jump, or jumptable branch?
-    BBI.hasEarlyExit = TII->BlockHasNoFallThrough(*BB) && !BBI.TrueBB;
-    if (!CanAnalyze || !BBI.TrueBB || BBI.BrCond.size() == 0)
-      return;
   }
 
+  // Look for 'root' of a simple (non-nested) triangle or diamond.
+  BBI.Kind = ICNotClassfied;
+  bool CanAnalyze = !TII->AnalyzeBranch(*BB, BBI.TrueBB, BBI.FalseBB,
+                                        BBI.BrCond);
+  // Does it end with a return, indirect jump, or jumptable branch?
+  BBI.hasEarlyExit = TII->BlockHasNoFallThrough(*BB) && !BBI.TrueBB;
+  if (!CanAnalyze || !BBI.TrueBB || BBI.BrCond.size() == 0)
+    return;
+
   // Not a candidate if 'true' block is going to be if-converted.
   StructuralAnalysis(BBI.TrueBB);
   BBInfo &TrueBBI = BBAnalysis[BBI.TrueBB->getNumber()];