From: Jakub Staszak Date: Sun, 10 Jul 2011 02:00:16 +0000 (+0000) Subject: Don't analyze block if it's not considered for ifcvt anymore. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2b33f4cbad43dcaca944d02a6ea67991ff9db9cf;p=oota-llvm.git Don't analyze block if it's not considered for ifcvt anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134856 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp index c918bf63120..8cf68d66025 100644 --- a/lib/CodeGen/IfConversion.cpp +++ b/lib/CodeGen/IfConversion.cpp @@ -751,8 +751,9 @@ IfConverter::BBInfo &IfConverter::AnalyzeBlock(MachineBasicBlock *BB, ScanInstructions(BBI); - // Unanalyzable or ends with fallthrough or unconditional branch. - if (!BBI.IsBrAnalyzable || BBI.BrCond.empty()) { + // Unanalyzable or ends with fallthrough or unconditional branch, or if is not + // considered for ifcvt anymore. + if (!BBI.IsBrAnalyzable || BBI.BrCond.empty() || BBI.IsDone) { BBI.IsBeingAnalyzed = false; BBI.IsAnalyzed = true; return BBI;