OSDN Git Service

[AArch64][SVE]Add cost model for vector reduce for scalable vector
authorCaroline Concatto <caroline.concatto@arm.com>
Mon, 21 Dec 2020 15:04:29 +0000 (15:04 +0000)
committerCaroline Concatto <caroline.concatto@arm.com>
Tue, 19 Jan 2021 11:54:16 +0000 (11:54 +0000)
commit172f1f8952c977c0101ba19e6ecb9474aa3bdd4b
tree4f90d3c824b05a6a4ac1384ea94e3c5fc4760cb6
parentb7e516202eb66e004c49b89964bd5b30b287af87
[AArch64][SVE]Add cost model for vector reduce for scalable vector

This patch computes the cost for vector.reduce<operand> for scalable vectors.
The cost is split into two parts:  the legalization cost and the horizontal
reduction.

Differential Revision: https://reviews.llvm.org/D93639
llvm/include/llvm/CodeGen/BasicTTIImpl.h
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
llvm/test/Analysis/CostModel/AArch64/sve-getIntrinsicInstrCost-vector-reduce.ll [new file with mode: 0644]