[ARM] Add some basic Min/Max costs
authorDavid Green <david.green@arm.com>
Mon, 15 Feb 2021 15:06:19 +0000 (15:06 +0000)
committerDavid Green <david.green@arm.com>
Mon, 15 Feb 2021 15:06:19 +0000 (15:06 +0000)
commit0a98efb049393a579a1e44a68bfa886475ea672c
tree6aefa489d2579634233547117e3ce90f8d3fdd25
parent3842d4b6791f6fbd67a1d12806f05a05654728cf
[ARM] Add some basic Min/Max costs

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.

Differential Revision: https://reviews.llvm.org/D96603
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/intrinsic-cost-kinds.ll
llvm/test/Analysis/CostModel/ARM/mve-minmax.ll