[PATCH] D126372: [RISCV]Add basic cost model for vector reduce for scalable vector
Liao Chunyu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 27 01:37:18 PDT 2022
liaolucy updated this revision to Diff 432488.
liaolucy added a comment.
1. Add a illegal checks. Invalid types will crash.
if(!isTypeLegal(VTy))
return BaseT::getArithmeticReductionCost(Opcode, VTy, FMF, CostKind);
2. Remove deadcode.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126372/new/
https://reviews.llvm.org/D126372
Files:
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
llvm/test/Analysis/CostModel/RISCV/scalable-reduce.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126372.432488.patch
Type: text/x-patch
Size: 12484 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220527/557159e2/attachment.bin>
More information about the llvm-commits
mailing list