[PATCH] D151394: [LSR] Treat URem as uninteresting
Peixin Qiao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 24 18:40:27 PDT 2023
peixin created this revision.
peixin added reviewers: nikic, reames.
peixin added projects: All, LLVM.
Herald added subscribers: StephenFan, javed.absar, hiraditya.
peixin requested review of this revision.
Herald added a subscriber: llvm-commits.
The URem instruction should be uninteresting and be treated as the user.
There is no URem SCEV expression, and the URem operation is analyzed as
Add SCEV. So, we need to check the opcode of URem instruction in the
instruction interesting check function.
Fix https://github.com/llvm/llvm-project/issues/62852.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D151394
Files:
llvm/lib/Analysis/IVUsers.cpp
llvm/test/Transforms/LoopStrengthReduce/scaling-factor-incompat-type.ll
llvm/test/Transforms/LoopStrengthReduce/urem-use-type-conversion.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151394.525397.patch
Type: text/x-patch
Size: 4722 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230525/0f0bb318/attachment.bin>
More information about the llvm-commits
mailing list