diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-05-25 00:59:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-05-25 00:59:01 +0000 |
commit | 4bec8ae694be9db7505f5589b018a84334730875 (patch) | |
tree | 7f8e38738cebfaaa30d5343ab7b411fe21aee877 /lib/CodeGen/IfConversion.cpp | |
parent | d1d25174cd801d73790ffd1794c37cba613ccdb8 (diff) |
Silly boog.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37328 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | lib/CodeGen/IfConversion.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index c5e4ef7c9d..a8b1d8389a 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -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()]; |