[PATCH] D154206: [InstCombine] Fold comparison of usub.sat

Dhruv Chawla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 4 04:08:32 PDT 2023


0xdc03 updated this revision to Diff 537043.
0xdc03 added a comment.

- Address reviewer comments
  - Remove unnecessary nesting
  - Add an extra switch to `foldICmpIntrinsicWithConstant`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154206

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154206.537043.patch
Type: text/x-patch
Size: 12698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230704/5c80526e/attachment-0001.bin>


More information about the llvm-commits mailing list