[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 9 01:47:49 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");
----------------
Do we not have a method for creating splat vectors that works for fixed and non-fixed vector types?


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