[PATCH] D93043: [CostModel] Add costs for llvm.experimental.vector.{extract,insert} intrinsics
Caroline via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 11 09:47:30 PST 2020
CarolineConcatto added inline comments.
================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:121
"Can only extract subvectors from vectors");
int NumSubElts = SubVTy->getNumElements();
+ assert((!isa<FixedVectorType>(VTy) ||
----------------
If this starts to accept scalable vector, by replacing FixedVectorType to VectorType, this could be a problem.
See this function unsigned VectorType::getNumElements() const; inDerivedTypes.h
Maybe you will need to use InstructionCost class or just assert at the moment when the type is scalable
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93043/new/
https://reviews.llvm.org/D93043
More information about the llvm-commits
mailing list