[RISCV] Add cost model for reverse shuffle
authorPhilip Reames <preames@rivosinc.com>
Thu, 9 Jun 2022 14:20:33 +0000 (07:20 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 9 Jun 2022 14:21:40 +0000 (07:21 -0700)
commit0e29a80fdc5e436f1ab23f9d08f3716467108cbe
treefe11b6c8a972b08d8b8ed9c40fbc008eeac63870
parent20d798bd47ec5191de1b2a8a031da06a04e612e1
[RISCV] Add cost model for reverse shuffle

The majority of the cost appears to be forming the indices vector.

Differential Revision: https://reviews.llvm.org/D127141
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/rvv-shuffle.ll
llvm/test/Transforms/LoopVectorize/RISCV/riscv-vector-reverse.ll