[PATCH] D93686: [LoopUnroll] Fix a crash

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 22 03:39:42 PST 2020


skatkov created this revision.
skatkov added reviewers: dmgreen, Meinersbur, etiotto, fhahn, efriedma, bmahjour.
Herald added subscribers: dantrushin, zzheng, hiraditya.
skatkov requested review of this revision.
Herald added a project: LLVM.

Loop peeling as a last step triggers loop simplification and this
can change the loop structure. As a result all cashed values like
latch branch becomes invalid.

Patch re-structure the code to take into account the possible
changes caused by peeling.


https://reviews.llvm.org/D93686

Files:
  llvm/lib/Transforms/Utils/LoopUnroll.cpp
  llvm/test/Transforms/LoopUnroll/unroll-after-peel.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93686.313285.patch
Type: text/x-patch
Size: 8453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201222/99bc07b5/attachment.bin>


More information about the llvm-commits mailing list