aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-02-04 20:49:44 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-02-04 20:49:44 +0000
commit071ec90b68e8d778de5b341a4d235e81da028689 (patch)
tree9a1022c41140746aebd6b79f821449131174094c /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent987b0943c8c48f3bc21328d2c5c10c942778eaff (diff)
downloadllvm-071ec90b68e8d778de5b341a4d235e81da028689.zip
llvm-071ec90b68e8d778de5b341a4d235e81da028689.tar.gz
llvm-071ec90b68e8d778de5b341a4d235e81da028689.tar.bz2
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
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions