[PATCH] D79369: [InstCombine] "X - (X / C) * C == 0" to "X & C-1 == 0"

Egor Bogatov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 5 18:22:09 PDT 2020


EgorBo updated this revision to Diff 262275.
EgorBo added a comment.

Add more tests (TODO: add non-splat vectors)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79369/new/

https://reviews.llvm.org/D79369

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/test/Transforms/InstCombine/add-shl-sdiv-to-srem.ll
  llvm/test/Transforms/InstCombine/icmp-div-constant.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79369.262275.patch
Type: text/x-patch
Size: 6040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200506/bc85eff7/attachment-0001.bin>


More information about the llvm-commits mailing list