[PATCH] D108077: [InstCombine] Add call to matchSignedSaturate from min/max

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 14 14:51:45 PDT 2021


dmgreen created this revision.
dmgreen added reviewers: spatel, nikic, lebedev.ri, efriedma.
Herald added a subscriber: hiraditya.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This adds a call to matchSignedSaturate from smin/smax instrinsics, allowing the same patterns to match if the canonical form is an intrinsics, not a icmp/select.


https://reviews.llvm.org/D108077

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/sadd_sat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108077.366459.patch
Type: text/x-patch
Size: 8917 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210814/7dbb2531/attachment.bin>


More information about the llvm-commits mailing list