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

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 22 22:03:34 PDT 2021


craig.topper updated this revision to Diff 332524.
craig.topper added a comment.

Don't bother type legalizing, just count the elements.
Only handle reciprocal throughput.
Only handle vectors that won't scalarize.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D99142

Files:
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
  llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
  llvm/test/Analysis/CostModel/RISCV/fixed-vector-gather.ll
  llvm/test/Analysis/CostModel/RISCV/fixed-vector-scatter.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99142.332524.patch
Type: text/x-patch
Size: 32608 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210323/f431ea60/attachment.bin>


More information about the llvm-commits mailing list