summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit724d8a45c16905d8f3cce79a6158a30f638e9038 (patch)
tree31676334a5809f108092a9d737a52d62b91911b8 /llvm/lib/CodeGen/BranchFolding.cpp
parent14b25eb87be213e0562274e1e3dcefa34d5af6d1 (diff)
downloadbcm5719-llvm-724d8a45c16905d8f3cce79a6158a30f638e9038.tar.gz
bcm5719-llvm-724d8a45c16905d8f3cce79a6158a30f638e9038.zip
Update a comment, now that tail duplication happens after other branch
folding optimizations. llvm-svn: 89109
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp
index 1a2117b9123..9ed805174b4 100644
--- a/llvm/lib/CodeGen/BranchFolding.cpp
+++ b/llvm/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 &&
OpenPOWER on IntegriCloud