[PATCH] D99142: [RISCV] Add basic cost modelling for fixed vector gather/scatter.

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 04:04:47 PDT 2021


frasercrmck added a comment.

I've not done much in this area of RISC-V, but I take it the non-vector costs are suitably higher than the vector costs? We'd still prefer to vectorize these?



================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h:64
 
+  unsigned getGatherScatterOpCost(
+      unsigned Opcode, Type *DataTy, const Value *Ptr, bool VariableMask,
----------------
nit: this clang-format suggestion looks good


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99142/new/

https://reviews.llvm.org/D99142



More information about the llvm-commits mailing list