[RISCV] Add basic code modeling for fixed length vector reduction.
authorYeting Kuo <yeting.kuo@sifive.com>
Fri, 11 Mar 2022 08:39:29 +0000 (16:39 +0800)
committerYeting Kuo <yeting.kuo@sifive.com>
Mon, 14 Mar 2022 03:04:31 +0000 (11:04 +0800)
commitae7c6647f3ea81fc4447a76d824fea4b93862a4e
treec05d6570d62f76b9d4861fff4b845a3ba3671805
parenteeb3bfd74ab37c04810c325775ba149740dc1039
[RISCV] Add basic code modeling for fixed length vector reduction.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D121447
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
llvm/test/Analysis/CostModel/RISCV/reduce-add.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/RISCV/reduce-and.ll
llvm/test/Analysis/CostModel/RISCV/reduce-fadd.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/RISCV/reduce-max.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/RISCV/reduce-min.ll [new file with mode: 0644]
llvm/test/Analysis/CostModel/RISCV/reduce-or.ll
llvm/test/Analysis/CostModel/RISCV/reduce-xor.ll [new file with mode: 0644]