llvm-project/llvm/test/Transforms/StructurizeCFG
Tom Stellard 071ec90b68 StructurizeCFG: Use a reverse post-order traversal
We were previously doing a post-order traversal and operating on the
list in reverse, however this would occasionaly cause backedges for
loops to be visited before some of the other blocks in the loop.

We know use a reverse post-order traversal, which avoids this issue.

The reverse post-order traversal is not completely ideal, so we need
to manually fixup the list to ensure that inner loop backedges are
visited before outer loop backedges.

llvm-svn: 228186
2015-02-04 20:49:44 +00:00
..
branch-on-argument.ll
loop-multiple-exits.ll
nested-loop-order.ll StructurizeCFG: Use a reverse post-order traversal 2015-02-04 20:49:44 +00:00
no-branch-to-entry.ll StructurizeCFG: Fix verification failure with some loops. 2013-11-22 19:24:39 +00:00
one-loop-multiple-backedges.ll StructurizeCFG: Use a reverse post-order traversal 2015-02-04 20:49:44 +00:00
post-order-traversal-bug.ll StructurizeCFG: Use a reverse post-order traversal 2015-02-04 20:49:44 +00:00
switch.ll