[PATCH] D125665: [ARM] Cost modelling for scalar fptoi_sat

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 16 00:16:01 PDT 2022


dmgreen created this revision.
dmgreen added reviewers: samtebbs, SjoerdMeijer, NickGuy.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
dmgreen requested review of this revision.
Herald added a project: LLVM.

Similar to D124357 <https://reviews.llvm.org/D124357>, this adds some cost modelling for fptoi_sat for Arm targets. Where VFP2 is available (and FP64/FP16 for the relevant types), the operations are legal as the Arm instructions naturally saturate. Otherwise they will need an extra smin/smax clamp, similar to AArch64.


https://reviews.llvm.org/D125665

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/ARM/fptoi_sat.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125665.429552.patch
Type: text/x-patch
Size: 26615 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220516/559620c6/attachment.bin>


More information about the llvm-commits mailing list