[PATCH] D143883: [InstCombine] canonicalize urem as cmp+select

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 16 17:40:14 PST 2023


Allen updated this revision to Diff 498208.
Allen added a comment.

Address comments:
a) Adding a new case urem_without_assume
b) Update the code comment to match the code
c) Rename the  FreezeX  to FreezeOp0 as the name suggests


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

https://reviews.llvm.org/D143883

Files:
  llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  llvm/test/Transforms/InstCombine/urem-via-cmp-select.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143883.498208.patch
Type: text/x-patch
Size: 4850 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230217/bdd14b5e/attachment.bin>


More information about the llvm-commits mailing list