summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-05-23 22:12:50 +0000
committerBill Wendling <isanbard@gmail.com>2012-05-23 22:12:50 +0000
commite351e8c52d2c6a95142c536ad929186940b1a748 (patch)
tree911090d445e37b58e0346755aaf9efd3ceebc969 /llvm/lib/CodeGen/BranchFolding.cpp
parent041793c45209d871c69f24762038c5f85f279178 (diff)
downloadbcm5719-llvm-e351e8c52d2c6a95142c536ad929186940b1a748.tar.gz
bcm5719-llvm-e351e8c52d2c6a95142c536ad929186940b1a748.zip
Forgot to reverse conditional.
llvm-svn: 157349
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index dc786a21f96..2e978b333e9 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/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<MachineBasicBlock *, 8> UniquePreds;
MachineBasicBlock *IBB = I;
MachineBasicBlock *PredBB = prior(I);
OpenPOWER on IntegriCloud