[ARM] Basic getArithmeticReductionCost reduction costs
authorDavid Green <david.green@arm.com>
Sat, 17 Oct 2020 09:29:00 +0000 (10:29 +0100)
committerDavid Green <david.green@arm.com>
Sat, 17 Oct 2020 09:29:00 +0000 (10:29 +0100)
commitb93d74ac9c4e304db6fbc434992c098104ba94a5
treebd2a5071dee7e19172ce46fa6965d23a5f9b9939
parentd79ee3a807115f8b96f9f8aa13d99cdea1652980
[ARM] Basic getArithmeticReductionCost reduction costs

This adds some basic costs for MVE reductions - currently just costing
the simple legal add vectors as a single MVE instruction. More complex
costing can be added in the future when the framework more readily
allows it.

Differential Revision: https://reviews.llvm.org/D88980
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/lib/Target/ARM/ARMTargetTransformInfo.h
llvm/test/Analysis/CostModel/ARM/mve-vecreduce-add.ll