summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit572a194c354dce4e89ec9edc4cab7fe33036103c (patch)
tree6921f2c24d1181abf0e3b7ec393415e441313ce6 /llvm/lib/CodeGen/BranchFolding.cpp
parentfa24e1066f519c92fbc3d5721744d634df7b8baa (diff)
downloadbcm5719-llvm-572a194c354dce4e89ec9edc4cab7fe33036103c.tar.gz
bcm5719-llvm-572a194c354dce4e89ec9edc4cab7fe33036103c.zip
Remove a check that can no longer be true, after r84803.
llvm-svn: 98694
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 13ae43daf6d..b45abc7b97d 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud