aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-03-16 23:40:32 +0000
committerBob Wilson <bob.wilson@apple.com>2010-03-16 23:40:32 +0000
commit8ef7e2159fc1cccf6308d20f5ef7872c344e2253 (patch)
tree9c6fea0937303ee592cba333c4fe869bec5e728f /lib/CodeGen/BranchFolding.cpp
parentd1092146fc9355099588c5742bdc78d6787bec85 (diff)
downloadexternal_llvm-8ef7e2159fc1cccf6308d20f5ef7872c344e2253.zip
external_llvm-8ef7e2159fc1cccf6308d20f5ef7872c344e2253.tar.gz
external_llvm-8ef7e2159fc1cccf6308d20f5ef7872c344e2253.tar.bz2
Remove a check that can no longer be true, after r84803.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98694 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 13ae43d..b45abc7 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -1143,22 +1143,6 @@ ReoptimizeBlock:
!IsBetterFallthrough(PriorTBB, MBB))
DoTransform = false;
- // We don't want to do this transformation if we have control flow like:
- // br cond BB2
- // BB1:
- // ..
- // jmp BBX
- // BB2:
- // ..
- // ret
- //
- // In this case, we could actually be moving the return block *into* a
- // loop!
- if (DoTransform && !MBB->succ_empty() &&
- (!PriorTBB->canFallThrough() || PriorTBB->empty()))
- DoTransform = false;
-
-
if (DoTransform) {
// Reverse the branch so we will fall through on the previous true cond.
SmallVector<MachineOperand, 4> NewPriorCond(PriorCond);