[ARM] Update trunc costs
authorDavid Green <david.green@arm.com>
Mon, 11 Jan 2021 08:59:28 +0000 (08:59 +0000)
committerDavid Green <david.green@arm.com>
Mon, 11 Jan 2021 08:59:28 +0000 (08:59 +0000)
commitdcefcd51e01741c79c9d9a729fe803b13287a372
tree0e2b4f855f550128c95cd75463e1f9c402ed2671
parent89878e8c966a82ed6b7f0254700017f0a97fb7d7
[ARM] Update trunc costs

We did not have specific costs for larger than legal truncates that were
not otherwise cheap (where they were next to stores, for example). As
MVE does not have a dedicated instruction for them (and we do not use
loads/stores yet), they should be expensive as they get expanded to a
series of lane moves.

Differential Revision: https://reviews.llvm.org/D94260
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/arith-overflow.ll
llvm/test/Analysis/CostModel/ARM/cast.ll
llvm/test/Analysis/CostModel/ARM/mve-gather-scatter-cost.ll