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

Dhruv Chawla via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 3 06:25:02 PDT 2023


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

- Redo the broken code
- Add comments explaining everything with derivations

Depends on D154342 <https://reviews.llvm.org/D154342>.


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.536744.patch
Type: text/x-patch
Size: 14078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230703/848bdb10/attachment.bin>


More information about the llvm-commits mailing list