[PATCH] D82294: [SVE] Fix scalable vector bug in DataLayout::getIntPtrType

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 13:59:47 PDT 2020


efriedma added inline comments.


================
Comment at: llvm/lib/IR/DataLayout.cpp:795
+  if (auto *VecTy = dyn_cast<FixedVectorType>(Ty))
     return FixedVectorType::get(IntTy, VecTy->getNumElements());
+  else if (auto *VecTy = dyn_cast<ScalableVectorType>(Ty))
----------------
Can you just use `VectorType::get(IntTy, VecTy)`?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D82294





More information about the llvm-commits mailing list