[llvm] [LoadStoreVectorizer] Fix one-element vector handling (PR #169671)
Gang Chen via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 08:32:13 PST 2025
================
@@ -953,15 +953,15 @@ bool Vectorizer::vectorizeChain(Chain &C) {
unsigned EOffset =
(E.OffsetFromLeader - C[0].OffsetFromLeader).getZExtValue();
unsigned VecIdx = 8 * EOffset / DL.getTypeSizeInBits(VecElemTy);
- if (auto *VT = dyn_cast<FixedVectorType>(T)) {
+ if (VecTy == VecElemTy) {
----------------
cmc-rep wrote:
Is it possible to have <1 x <2 x i16>> changed to <2 x i16>?
If so, VecTy is still a vector type
https://github.com/llvm/llvm-project/pull/169671
More information about the llvm-commits
mailing list