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 | 13f5f7df952e98bfbe9dcf65c9c5415578022d82 (patch) | |
tree | 3ee4eda02fc5e40283d322f26a56b44aa1443863 /llvm/lib/CodeGen/IfConversion.cpp | |
parent | c87f3dff517608007e299c7d47698259f30c8cd6 (diff) | |
download | bcm5719-llvm-13f5f7df952e98bfbe9dcf65c9c5415578022d82.tar.gz bcm5719-llvm-13f5f7df952e98bfbe9dcf65c9c5415578022d82.zip |
Silly boog.
llvm-svn: 37328
Diffstat (limited to 'llvm/lib/CodeGen/IfConversion.cpp')
-rw-r--r-- | llvm/lib/CodeGen/IfConversion.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/IfConversion.cpp b/llvm/lib/CodeGen/IfConversion.cpp index c5e4ef7c9d2..a8b1d8389a0 100644 --- a/llvm/lib/CodeGen/IfConversion.cpp +++ b/llvm/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()]; |