[llvm] [LoadStoreVectorizer] Fix one-element vector handling (PR #169671)
Drew Kersnar via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 08:14:54 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) {
----------------
dakersnar wrote:
Would it be equivalent to change the condition to this? I think it would be clearer to the reader.
```suggestion
if (!VecTy->isVectorTy()) {
```
https://github.com/llvm/llvm-project/pull/169671
More information about the llvm-commits
mailing list