[PATCH] D143417: [InstCombine] Add fold for `(rem (mul/shl X, Y), (mul/shl X, Z))` -> `(mul X, (rem Y, Z))`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 15:29:31 PST 2023


goldstein.w.n updated this revision to Diff 498175.
goldstein.w.n added a comment.

Rebase + bug fix


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143417

Files:
  llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  llvm/test/Transforms/InstCombine/rem-mul-shl.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143417.498175.patch
Type: text/x-patch
Size: 10870 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230216/65aa8bed/attachment.bin>


More information about the llvm-commits mailing list