[PATCH] D133667: [InstCombine] convert mul by negative-pow2 to negate and shift
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 14 11:06:34 PDT 2022
spatel updated this revision to Diff 460117.
spatel added a comment.
Patch updated:
No code changes, but rebased after:
73919a87e9a6f8cfa6 <https://reviews.llvm.org/rG73919a87e9a6f8cfa619e297c0c52e0e68f6c532>
...so the motivating test is reduced to remove the multiply and a wide add. We need some other fold to recognize that the wide sub can be narrowed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D133667/new/
https://reviews.llvm.org/D133667
Files:
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
llvm/test/Transforms/InstCombine/add.ll
llvm/test/Transforms/InstCombine/mul.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133667.460117.patch
Type: text/x-patch
Size: 6552 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220914/f641502c/attachment.bin>
More information about the llvm-commits
mailing list