[PATCH] D140798: [InstCombine] Fold zero check followed by decrement to usub.sat

Jamie Hill-Daniel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 31 07:16:12 PST 2022


clubby789 updated this revision to Diff 485771.
clubby789 added a comment.

Inline decrement check into `canonicalizeSaturatedSubtract` and add some negative test cases


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

https://reviews.llvm.org/D140798

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/saturating-add-sub.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140798.485771.patch
Type: text/x-patch
Size: 4280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221231/adc7948e/attachment-0001.bin>


More information about the llvm-commits mailing list