[PATCH] D124369: [InstCombine] C0 >>{ashr, exact} (X - C1) --> (C0 << C1) >>{ashr} X
Nicolas Abram via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 25 12:10:20 PDT 2022
nico-abram updated this revision to Diff 424993.
nico-abram edited the summary of this revision.
nico-abram added a comment.
Updating the diff with the condition change and more tests. Will see about avoiding the duplication and moving into `commonShiftTransforms`
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124369/new/
https://reviews.llvm.org/D124369
Files:
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/test/Transforms/InstCombine/shift-add.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124369.424993.patch
Type: text/x-patch
Size: 4536 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220425/9c33ee5b/attachment.bin>
More information about the llvm-commits
mailing list