[PATCH] D137910: [SimpleLoopUnswitch] Forget loop if its one of user was replaced

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 13 09:00:01 PST 2022


StephenFan created this revision.
StephenFan added reviewers: nikic, fhahn.
Herald added a subscriber: hiraditya.
Herald added a project: All.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Replacing user in loop may change the scalar evolution in this loop. So
we need to forget this loop.

Fixes: https://github.com/llvm/llvm-project/issues/58868


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137910

Files:
  llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
  llvm/test/Transforms/SimpleLoopUnswitch/pr58868.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137910.475001.patch
Type: text/x-patch
Size: 5120 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221113/f46651c4/attachment.bin>


More information about the llvm-commits mailing list