[PATCH] D110922: [LoopPeel] Peel loops with deoptimizing exits

Dmitry Makogon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 11 08:19:17 PDT 2021


dmakogon updated this revision to Diff 378675.
dmakogon added a comment.

Fixed crash on `test/Transforms/LoopUnroll/revert-D110922.ll`. It happened due to adding the same edges to DomTree due to the fact that one of the loop exiting blocks had a `switch` terminator and there were multiple edges from that exiting block to an exit. Now we construct a set from the loop exiting edges and then add edge insertion updates only for edges from the set.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110922/new/

https://reviews.llvm.org/D110922

Files:
  llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
  llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
  llvm/lib/Transforms/Utils/LoopPeel.cpp
  llvm/test/Transforms/LoopUnroll/peel-multiple-unreachable-exits.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110922.378675.patch
Type: text/x-patch
Size: 11560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211011/cf6c18e8/attachment.bin>


More information about the llvm-commits mailing list