forked from OSchip/llvm-project
d869913f3b
Summary: This patch makes LoopDeletion use the incremental DominatorTree API. We modify LoopDeletion to perform the deletion in 5 steps: 1. Create a new dummy edge from the preheader to the exit, by adding a conditional branch. 2. Inform the DomTree about the new edge. 3. Remove the conditional branch and replace it with an unconditional edge to the exit. This removes the edge to the loop header, making it unreachable. 4. Inform the DomTree about the deleted edge. 5. Remove the unreachable block from the function. Creating the dummy conditional branch is necessary to perform incremental DomTree update. We should consider using the batch updater when it's ready. Reviewers: dberlin, davide, grosser, sanjoy Reviewed By: dberlin, grosser Subscribers: mzolotukhin, llvm-commits Differential Revision: https://reviews.llvm.org/D35391 llvm-svn: 309850 |
||
---|---|---|
.. | ||
2007-07-23-InfiniteLoop.ll | ||
2008-05-06-Phi.ll | ||
2011-06-21-phioperands.ll | ||
2017-07-11-incremental-dt.ll | ||
dcetest.ll | ||
invalidation.ll | ||
multiple-exit-conditions.ll | ||
multiple-exits.ll | ||
simplify-then-delete.ll | ||
unreachable-loops.ll | ||
update-scev.ll |