[llvm] [SLP]Improve masked loads vectorization, attempting gathered loads (PR #110151)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 7 09:27:24 PDT 2024
================
@@ -3614,6 +3616,13 @@ class BoUpSLP {
DenseMap<Value *, SmallPtrSet<const TreeEntry *, 4>>;
ValueToGatherNodesMap ValueToGatherNodes;
+ /// A list of the loads, which can be vectorized using strided or masked
+ /// gather approach, but attempted to be represented as contiguous loads.
+ SetVector<unsigned> LoadEntriesToVectorize;
+
+ /// true if graph nodes transforming mode is on.
+ bool IsGraphTransformMode = false;
+
/// The index of the first gathered load entry in the VectorizeTree.
constexpr static int NoGatheredLoads = -1;
int GatheredLoadsEntriesFirst = NoGatheredLoads;
----------------
alexey-bataev wrote:
Yes, if you prefer this style. Can do in a separate patch
https://github.com/llvm/llvm-project/pull/110151
More information about the llvm-commits
mailing list