[PATCH] D123374: [InstCombine] Fold (A & 2^C1) + A => A & (2^C1 - 1) iff bit C1 in A is a sign bit (PR21929)
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 21 08:50:15 PDT 2022
RKSimon updated this revision to Diff 424213.
RKSimon added a comment.
rebase now that we have a (negative) non-pow2 test
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123374/new/
https://reviews.llvm.org/D123374
Files:
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/test/Transforms/InstCombine/add-mask.ll
llvm/test/Transforms/InstCombine/modulo.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D123374.424213.patch
Type: text/x-patch
Size: 5712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220421/f464f273/attachment-0001.bin>
More information about the llvm-commits
mailing list