[PATCH] D119819: [ARM] Recognize SSAT and USAT from SMIN/SMAX

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 15 01:57:18 PST 2022


dmgreen created this revision.
dmgreen added reviewers: samtebbs, SjoerdMeijer, ostannard, simon_tatham.
Herald added subscribers: armkevincheng, eric-k256, zzheng, hiraditya, kristof.beyls.
Herald added a reviewer: sjarus.
dmgreen requested review of this revision.
Herald added a project: LLVM.

We have some recognition of SSAT and USAT from SELECT_CC at the moment. This extends the matching to SMIN/SMAX which can help catch more cases, either from min/max being the canonical form in instcombine or from some expanded nodes like fp_to_si_sat.


https://reviews.llvm.org/D119819

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/ARM/fpclamptosat.ll
  llvm/test/CodeGen/ARM/sadd_sat.ll
  llvm/test/CodeGen/ARM/sadd_sat_plus.ll
  llvm/test/CodeGen/ARM/ssat-unroll-loops.ll
  llvm/test/CodeGen/ARM/ssat.ll
  llvm/test/CodeGen/ARM/ssub_sat.ll
  llvm/test/CodeGen/ARM/ssub_sat_plus.ll
  llvm/test/CodeGen/ARM/usat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119819.408754.patch
Type: text/x-patch
Size: 26512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220215/355ff535/attachment.bin>


More information about the llvm-commits mailing list