[llvm] [SLP][REVEC] Disable strided load if the source is vector instruction. (PR #99462)
Han-Kuan Chen via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 8 17:56:17 PDT 2024
================
@@ -4582,8 +4582,12 @@ BoUpSLP::LoadsState BoUpSLP::canVectorizeLoads(
return LoadsState::Gather;
}
+ // If ScalarTy is a FixedVectorType (when REVEC is enabled), it is hard for
+ // being strided load.
+ bool IsSourceScalarInstruction = !isa<FixedVectorType>(VL[0]->getType());
----------------
HanKuanChen wrote:
Why do we use `VectorType` here? SLP does not accept `ScalableVectorType`.
https://github.com/llvm/llvm-project/pull/99462
More information about the llvm-commits
mailing list