[PATCH] D79816: [SVE] Remove usages of VectorType::getNumElements() from ARM

Francesco Petrogalli via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 07:00:13 PDT 2020


fpetrogalli added inline comments.


================
Comment at: llvm/lib/Target/ARM/MVETailPredication.cpp:348
       if (IsMasked(&I)) {
-        VectorType *VecTy = getVectorType(cast<IntrinsicInst>(&I));
+        auto *VecTy = getVectorType(cast<IntrinsicInst>(&I));
         unsigned Lanes = VecTy->getNumElements();
----------------
The RHS is not something along the lines of `VectorType::get()`, or an explicit cast. Please consider reverting it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D79816/new/

https://reviews.llvm.org/D79816





More information about the llvm-commits mailing list