HomePhabricator

[AArch64][SVE]Add cost model for vector reduce for scalable vector

Authored by CarolineConcatto on Dec 21 2020, 7:04 AM.

Description

[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