[PATCH] D117884: [RISCV] Add cost modelling for masked memory op
Kito Cheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 24 18:48:36 PST 2022
kito-cheng added inline comments.
Herald added a subscriber: pcwang-thead.
================
Comment at: llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp:173
+
+ std::pair<InstructionCost, MVT> LT = TLI->getTypeLegalizationCost(DL, Src);
+ return LT.first;
----------------
That seems like not included the memory access cost? how about `return getMemoryOpCost (Opcode, Src, Alignment, AddressSpace, CostKind)` here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117884/new/
https://reviews.llvm.org/D117884
More information about the llvm-commits
mailing list