[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
Mon Apr 18 05:28:44 PDT 2022


RKSimon updated this revision to Diff 423364.
RKSimon added a comment.

rebase with additional tests


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.423364.patch
Type: text/x-patch
Size: 5712 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220418/5bb79ea3/attachment.bin>


More information about the llvm-commits mailing list