aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/BranchFolding.cpp
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-11-17 17:40:31 +0000
committerBob Wilson <bob.wilson@apple.com>2009-11-17 17:40:31 +0000
commitc9622b2ee6ee8bf9057d5d17bc4b6dc70d8fa874 (patch)
tree24bb2b41be91fe08c85bb66ccd0fef28a9ef2bd7 /lib/CodeGen/BranchFolding.cpp
parent3f6474095adef9b9dc65ef94b481785caa086ea7 (diff)
downloadexternal_llvm-c9622b2ee6ee8bf9057d5d17bc4b6dc70d8fa874.zip
external_llvm-c9622b2ee6ee8bf9057d5d17bc4b6dc70d8fa874.tar.gz
external_llvm-c9622b2ee6ee8bf9057d5d17bc4b6dc70d8fa874.tar.bz2
Update a comment, now that tail duplication happens after other branch
folding optimizations. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
-rw-r--r--lib/CodeGen/BranchFolding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 1a2117b..9ed8051 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -1230,8 +1230,8 @@ ReoptimizeBlock:
// If the previous block unconditionally falls through to this block and
// this block has no other predecessors, move the contents of this block
// into the prior block. This doesn't usually happen when SimplifyCFG
- // has been used, but it can happen if tail duplication eliminates all the
- // non-branch predecessors of a block leaving only the fall-through edge.
+ // has been used, but it can happen if tail merging splits a fall-through
+ // predecessor of a block.
// This has to check PrevBB->succ_size() because EH edges are ignored by
// AnalyzeBranch.
if (PriorCond.empty() && !PriorTBB && MBB->pred_size() == 1 &&