diff options
author | Dale Johannesen <dalej@apple.com> | 2008-07-01 21:50:14 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2008-07-01 21:50:14 +0000 |
commit | 62bc8a44868bd86e96bdbd2f0d66dda690cc66ad (patch) | |
tree | 92dac139657a86c3a7ad3c1a706455b8a7e98e5a /lib/CodeGen/BranchFolding.cpp | |
parent | a45a9e416fb24b55c1a0af2369bfda8560edcb50 (diff) |
Fix longstanding thinko: don't exclude
predessors of exit blocks from tail merging
consideration.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52985 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | lib/CodeGen/BranchFolding.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp index 6825bfb103..87a77bb14f 100644 --- a/lib/CodeGen/BranchFolding.cpp +++ b/lib/CodeGen/BranchFolding.cpp @@ -697,8 +697,7 @@ bool BranchFolder::TailMergeBlocks(MachineFunction &MF) { // transformations.) for (MachineFunction::iterator I = MF.begin(), E = MF.end(); I != E; ++I) { - if (!I->succ_empty() && I->pred_size() >= 2 && - I->pred_size() < TailMergeThreshold) { + if (I->pred_size() >= 2 && I->pred_size() < TailMergeThreshold) { MachineBasicBlock *IBB = I; MachineBasicBlock *PredBB = prior(I); MergePotentials.clear(); |