From: Bill Wendling Date: Wed, 23 May 2012 22:12:50 +0000 (+0000) Subject: Forgot to reverse conditional. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=dbb4e57a3c7fb18d5ff2d9504c5cacb5df20fab4;p=oota-llvm.git Forgot to reverse conditional. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@157349 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index dc786a21f96..2e978b333e9 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -863,7 +863,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) { for (MachineFunction::iterator I = llvm::next(MF.begin()), E = MF.end(); I != E; ++I) { - if (I->pred_size() >= 2) continue; + if (I->pred_size() < 2) continue; SmallPtrSet UniquePreds; MachineBasicBlock *IBB = I; MachineBasicBlock *PredBB = prior(I);