[PATCH] D157676: [VectorCombine] Enable transform 'foldSingleElementStore' for scalable vector types

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 15 23:59:57 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/VectorCombine.cpp:1023-1026
+  uint64_t NumElements =
+      isa<FixedVectorType>(VecTy)
+          ? cast<FixedVectorType>(VecTy)->getNumElements()
+          : cast<ScalableVectorType>(VecTy)->getMinNumElements();
----------------



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157676



More information about the llvm-commits mailing list