llvm-project/llvm/test/Transforms/StructurizeCFG
Sameer Sahasrabuddhe 8c11bc0cd0 Introduce fix-irreducible pass
An irreducible SCC is one which has multiple "header" blocks, i.e., blocks
with control-flow edges incident from outside the SCC. This pass converts an
irreducible SCC into a natural loop by introducing a single new header
block and redirecting all the edges on the original headers to this
new block.

This is a useful workaround for a limitation in the structurizer
which, which produces incorrect control flow in the presence of
irreducible regions. The AMDGPU backend provides an option to
enable this pass before the structurizer, which may eventually be
enabled by default.

Reviewed By: nhaehnle

Differential Revision: https://reviews.llvm.org/D77198

This restores commit 2ada8e2525.

Originally reverted with commit 44e09b59b8.
2020-04-15 15:05:51 +05:30
..
AMDGPU StructurizeCFG: simplify phi nodes when possible 2020-03-05 10:33:15 +05:30
workarounds Introduce fix-irreducible pass 2020-04-15 15:05:51 +05:30
branch-on-argument.ll
bug36015.ll
invert-condition.ll
invert-constantexpr.ll
loop-continue-phi.ll
loop-multiple-exits.ll
nested-loop-order.ll
no-branch-to-entry.ll
one-loop-multiple-backedges.ll
post-order-traversal-bug.ll
rebuild-ssa-infinite-loop.ll AMDGPU: Update more tests to use modern buffer intrinsics 2020-01-16 14:29:38 -05:00
switch.ll