Skip to content

Commit

Permalink
[TailDuplication] Enable tail duplication of fallthrough BBs
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Radosavljevic <[email protected]>
  • Loading branch information
vladimirradosavljevic committed Oct 29, 2024
1 parent 801623b commit 481bb85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llvm/lib/CodeGen/TailDuplicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,6 @@ bool TailDuplicator::shouldTailDuplicate(bool IsSimple,
// When doing tail-duplication during layout, the block ordering is in flux,
// so canFallThrough returns a result based on incorrect information and
// should just be ignored.
if (!LayoutMode && TailBB.canFallThrough())
return false;

// Don't try to tail-duplicate single-block loops.
if (TailBB.isSuccessor(&TailBB))
Expand Down

0 comments on commit 481bb85

Please sign in to comment.