We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4d620d8 + ade2f10 commit a63258eCopy full SHA for a63258e
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -8622,11 +8622,10 @@ void BoUpSLP::tryToVectorizeGatheredLoads(
8622
State == LoadsState::CompressVectorize)
8623
return false;
8624
ConsecutiveNodesSize += VL.size();
8625
- unsigned Start = std::distance(Slice.begin(), It);
8626
- unsigned Sz = Slice.size() - Start;
+ size_t Start = std::distance(Slice.begin(), It);
+ size_t Sz = Slice.size() - Start;
8627
return Sz < VL.size() ||
8628
- Slice.slice(std::distance(Slice.begin(), It),
8629
- VL.size()) != VL;
+ Slice.slice(Start, VL.size()) != VL;
8630
}))
8631
continue;
8632
// Try to build long masked gather loads.
0 commit comments