[PATCH] D128339: [LSR] Don't allow zero quotient as scale ref. PR56160
Max Kazantsev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 22 06:51:12 PDT 2022
mkazantsev created this revision.
mkazantsev added reviewers: eopXD, chrisjackson, nikic, lebedev.ri, skatkov.
Herald added a subscriber: hiraditya.
Herald added a project: All.
mkazantsev requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Scale reg should never be zero, so when the quotient is zero, we
cannot assign it there. Limit this transform to avoid this situation.
https://reviews.llvm.org/D128339
Files:
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/Transforms/LoopStrengthReduce/pr56160.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128339.439003.patch
Type: text/x-patch
Size: 4721 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220622/9db35abf/attachment.bin>
More information about the llvm-commits
mailing list