[PATCH] D90115: [LoopDeletion] Remove dead loops with no exit blocks
Atmn Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 25 17:34:25 PDT 2020
atmnpatel updated this revision to Diff 300561.
atmnpatel added a comment.
- Adds test.
- Uses `getExitBlocks()` instead of `getUniqueExitBlocks()` and moved definition.
- Changed definition of `hasNoExitBlocks()` to use `empty()` instead of conditional
- Style changes in `deleteDeadLoop` for readibility.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D90115/new/
https://reviews.llvm.org/D90115
Files:
llvm/include/llvm/Analysis/LoopInfo.h
llvm/include/llvm/Analysis/LoopInfoImpl.h
llvm/lib/Transforms/Scalar/LoopDeletion.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp
llvm/test/Transforms/LoopDeletion/mustprogress.ll
llvm/test/Transforms/LoopDeletion/no-exit-blocks.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90115.300561.patch
Type: text/x-patch
Size: 12823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201026/3e6f8e31/attachment.bin>
More information about the llvm-commits
mailing list