[PATCH] D154565: [InstCombine] Fold icmps comparing uadd_sat with a constant

Dhruv Chawla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 6 10:16:50 PDT 2023


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

- Update to use `SaturatingInst`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154565

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154565.537778.patch
Type: text/x-patch
Size: 12203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230706/b8e8077f/attachment.bin>


More information about the llvm-commits mailing list