[PATCH] D105688: [LoopDeletion] Handle switch in proving that loop exits on first iteration

Dmitry Makogon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 9 02:50:06 PDT 2021


dmakogon created this revision.
dmakogon added reviewers: nikic, lebedev.ri, fhahn, reames, mkazantsev.
dmakogon added a project: LLVM.
Herald added a subscriber: hiraditya.
dmakogon requested review of this revision.
Herald added a subscriber: llvm-commits.

Added check for switch-terminated blocks in loops. 
Now if a block is terminated with a switch, we try to find out which of the cases is taken on 1st iteration and mark corresponding edge from the block to the case successor as live.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105688

Files:
  llvm/lib/Transforms/Scalar/LoopDeletion.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105688.357447.patch
Type: text/x-patch
Size: 4569 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210709/24756e4a/attachment.bin>


More information about the llvm-commits mailing list