[llvm] [SLP][REVEC] Disable strided load if the source is vector instruction. (PR #99462)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 9 04:42:04 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());
----------------
alexey-bataev wrote:
That's exactly the point. This check will pass, if the type of VL[0] is scalable vector
https://github.com/llvm/llvm-project/pull/99462
More information about the llvm-commits
mailing list