mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
b5eb31e440
This is a resubmit of dd6bb367 (which was reverted due to stage2 build failures in 7c63aac), with the additional restriction added to the transform to only consider outer most loops. As shown in the added test case, ensuring LCSSA is up to date when deleting an inner loop is tricky as we may actually need to remove blocks from any outer loops, thus changing the exit block set. For the moment, just avoid transforming this case. I plan to return to this case in a follow up patch and see if we can do better. Original commit message follows... The basic idea is that if SCEV can prove the backedge isn't taken, we can go ahead and get rid of the backedge (and thus the loop) while leaving the rest of the control in place. This nicely handles cases with dispatch between multiple exits and internal side effects. Differential Revision: https://reviews.llvm.org/D93906 |
||
---|---|---|
.. | ||
2007-07-23-InfiniteLoop.ll | ||
2008-05-06-Phi.ll | ||
2011-06-21-phioperands.ll | ||
2017-07-11-incremental-dt.ll | ||
assume.ll | ||
basic-remark.ll | ||
crashbc.ll | ||
dcetest.ll | ||
diundef.ll | ||
invalidation.ll | ||
multiple-exit-conditions.ll | ||
multiple-exits.ll | ||
mustprogress.ll | ||
no-exit-blocks.ll | ||
noop-loops-with-subloops.ll | ||
simplify-then-delete.ll | ||
unreachable-loops.ll | ||
update-scev.ll | ||
use-in-unreachable.ll | ||
zero-btc.ll |