[PATCH] D81500: [SVE] Remove calls to VectorType::getNumElements from IR
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 23 06:03:28 PDT 2020
RKSimon added inline comments.
================
Comment at: llvm/include/llvm/IR/MatrixBuilder.h:47
LHS = B.CreateVectorSplat(
- cast<VectorType>(RHS->getType())->getNumElements(), LHS,
+ cast<FixedVectorType>(RHS->getType())->getNumElements(), LHS,
"scalar.splat");
----------------
RKSimon wrote:
> Do we not have a method for creating splat vectors that works for fixed and non-fixed vector types?
I think CreateVectorSplat needs to be altered to take a ElementCount type instead of a raw unsigned elt count - are you in a position to do this first?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81500/new/
https://reviews.llvm.org/D81500
More information about the llvm-commits
mailing list