aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-05-13 23:35:38 +0000
committerBob Wilson <bob.wilson@apple.com>2009-05-13 23:35:38 +0000
commit596e22e2b3a1375bad678eb1c5e95b3188a0532b (patch)
tree7983722bdc3d410f8f3338d79009e17eada8e1a9 /lib/CodeGen
parente19fb7de631acc4e50653926fe023d35be0293e2 (diff)
downloadexternal_llvm-596e22e2b3a1375bad678eb1c5e95b3188a0532b.zip
external_llvm-596e22e2b3a1375bad678eb1c5e95b3188a0532b.tar.gz
external_llvm-596e22e2b3a1375bad678eb1c5e95b3188a0532b.tar.bz2
Merge adjacent conditional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71741 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/IfConversion.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp
index 87d81ec..93e7ff6 100644
--- a/lib/CodeGen/IfConversion.cpp
+++ b/lib/CodeGen/IfConversion.cpp
@@ -947,9 +947,7 @@ bool IfConverter::IfConvertTriangle(BBInfo &BBI, IfcvtKind Kind) {
// Predicate the 'true' block after removing its branch.
CvtBBI->NonPredSize -= TII->RemoveBranch(*CvtBBI->BB);
PredicateBlock(*CvtBBI, CvtBBI->BB->end(), Cond);
- }
- if (!DupBB) {
// Now merge the entry of the triangle with the true block.
BBI.NonPredSize -= TII->RemoveBranch(*BBI.BB);
MergeBlocks(BBI, *CvtBBI);