Update a comment, now that tail duplication happens after other branch

folding optimizations.

llvm-svn: 89109
This commit is contained in:
Bob Wilson 2009-11-17 17:40:31 +00:00
parent 14b25eb87b
commit 724d8a45c1
1 changed files with 2 additions and 2 deletions

View File

@ -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 &&