Silly boog.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37328 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng
2007-05-25 00:59:01 +00:00
parent d1d25174cd
commit 4bec8ae694

View File

@@ -173,6 +173,7 @@ 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;
@@ -182,7 +183,6 @@ void IfConverter::StructuralAnalysis(MachineBasicBlock *BB) {
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);