llvm-6502/test/Transforms/StructurizeCFG
Tom Stellard 7c038bc15f 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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@228186 91177308-0d34-0410-b5e6-96231b3b80d8
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
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