[PATCH] D143766: [InstCombine][WIP] Fix InstCombinerImpl::foldICmpMulConstant for nsw and nuw mul with unsigned compare.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 10 12:39:42 PST 2023


craig.topper updated this revision to Diff 496582.
craig.topper added a comment.

-Rebase on new pre-commit with tests.
-Convert else if to an assert since we already checked isSigned.
-Make unsigned code more similar to new signed code.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D143766

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
  llvm/test/Transforms/InstCombine/icmp-mul.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143766.496582.patch
Type: text/x-patch
Size: 4329 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230210/c51ba040/attachment.bin>


More information about the llvm-commits mailing list