[PATCH] D94958: [ARM] Add MVE add.sat costs

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 19 02:49:02 PST 2021


dmgreen created this revision.
dmgreen added reviewers: SjoerdMeijer, NickGuy, malharJ, efriedma, simon_tatham, ostannard.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
dmgreen requested review of this revision.
Herald added a project: LLVM.

This adds some basic MVE sadd_sat/ssub_sat/uadd_sat/usub_sat costs, based on when the instruction is legal. With smaller than legal types that are promoted we generate shr(qadd(shl, shl)), so the cost is 4 appropriately.


https://reviews.llvm.org/D94958

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/ARM/arith-ssat.ll
  llvm/test/Analysis/CostModel/ARM/arith-usat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94958.317501.patch
Type: text/x-patch
Size: 41655 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210119/17f0837e/attachment.bin>


More information about the llvm-commits mailing list