aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUtils.cpp
diff options
context:
space:
mode:
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2020-04-15 15:05:51 +0530
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2020-04-15 15:05:51 +0530
commit8c11bc0cd06ffc18786a1a51ee5ce5b1cc4923f6 (patch)
treec549b859bd4972148c0815efb78c1125d08a61d6 /llvm/lib/Transforms/Utils/LoopUtils.cpp
parent79d185c79271455c6b05c86ba422f40e70c7e970 (diff)
downloadllvm-8c11bc0cd06ffc18786a1a51ee5ce5b1cc4923f6.zip
llvm-8c11bc0cd06ffc18786a1a51ee5ce5b1cc4923f6.tar.gz
llvm-8c11bc0cd06ffc18786a1a51ee5ce5b1cc4923f6.tar.bz2
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 2ada8e2525dd2653f30c8696a27162a3b1647d66. Originally reverted with commit 44e09b59b869a91bf47d76e8bc569d9ee91ad145.
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUtils.cpp')
0 files changed, 0 insertions, 0 deletions