================
@@ -652,8 +671,9 @@ static Value *promoteAllocaUserToVector(Instruction *Inst,
const DataLayout &DL,
}
}
- // Loading a subvector.
- if (isa<FixedVectorType>(AccessTy)) {
+ // Loading a subvector, or a scalar that spans several elements.
+ if (isa<FixedVectorType>(AccessTy) ||
----------------
ruiling wrote:
might be better to change the condition to `NumLoadedElts > 1`. Just need to
hoist its calculation from the if.
https://github.com/llvm/llvm-project/pull/217056
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits