[ARM] Adjust default fp extend and trunc costs
authorDavid Green <david.green@arm.com>
Mon, 6 Jul 2020 10:35:01 +0000 (11:35 +0100)
committerDavid Green <david.green@arm.com>
Mon, 6 Jul 2020 13:23:17 +0000 (14:23 +0100)
commitafdb2ef2ed9debd419a29b78c23e4b84ce67ab0c
tree4fbd358d2a9b5a97b071e74ac05a29fdf444d0db
parent521ebc168152ab72047e2e7c81c8c6724b3e7623
[ARM] Adjust default fp extend and trunc costs

This adds some default costs for fp extends and truncates, generally
costing them as 1 per lane. If the type is not legal then the cost will
include a call to an __aeabi_ function.

Some NEON code is also adjusted to make sure it applies to the expected
types, now that fp16 is a more common thing.

Differential Revision: https://reviews.llvm.org/D82458
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/cast.ll
llvm/test/Analysis/CostModel/ARM/cast_ldst.ll