[PATCH] D126060: [RISCV] Add basic cost modelling for fixed length vector arithmetic
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 21:23:59 PDT 2022
craig.topper added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:236
+ std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Ty);
+ return LT.first + BaseCost;
+ }
----------------
LT.first is usually a multiplier. Why is this addition?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126060/new/
https://reviews.llvm.org/D126060
More information about the llvm-commits
mailing list