[PATCH] D96603: [ARM] Add some basic Min/Max costs

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 12 06:37:12 PST 2021


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

This adds basic MVE costs for SMIN/SMAX/UMIN/UMAX, as well as MINNUM and MAXNUM representing fmin and fmax. It tightens up the costs, not using a ICmp+Select cost.


https://reviews.llvm.org/D96603

Files:
  llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
  llvm/test/Analysis/CostModel/ARM/mve-minmax.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96603.323310.patch
Type: text/x-patch
Size: 49172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210212/e3e79730/attachment.bin>


More information about the llvm-commits mailing list