[PATCH] D144225: [InstCombine] Add constant combines for `(urem/srem (shl X, Y), (shl X, Z))`

Noah Goldstein via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 28 21:01:19 PDT 2023


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

Split of (shl Z, X), (shl Y, X) case. Remove the `Shift{Y|Z|X}` flags


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D144225

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144225.509204.patch
Type: text/x-patch
Size: 6089 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230329/27ed2d40/attachment.bin>


More information about the llvm-commits mailing list