[llvm] 9a42bdc - [SLP][NFC]Fix signedness to avoid comparison warning.
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 15 09:56:50 PDT 2024
Author: Alexey Bataev
Date: 2024-03-15T09:56:40-07:00
New Revision: 9a42bdc0ae53f321966b1418430d4aaaf83877b5
URL: https://github.com/llvm/llvm-project/commit/9a42bdc0ae53f321966b1418430d4aaaf83877b5
DIFF: https://github.com/llvm/llvm-project/commit/9a42bdc0ae53f321966b1418430d4aaaf83877b5.diff
LOG: [SLP][NFC]Fix signedness to avoid comparison warning.
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index a1a82c95d31e87..6dbd54069bb99d 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -7678,8 +7678,8 @@ class BoUpSLP::ShuffleCostEstimator : public BaseShuffleAnalysis {
if (NeedInsertSubvectorAnalysis) {
// Add the cost for the subvectors insert.
SmallVector<int> ShuffleMask(VL.size());
- for (int I = VF, E = VL.size(); I < E; I += VF) {
- for (int Idx : seq<int>(0, E))
+ for (unsigned I = VF, E = VL.size(); I < E; I += VF) {
+ for (unsigned Idx : seq<unsigned>(0, E))
ShuffleMask[Idx] = Idx / VF == I ? E + Idx % VF : Idx;
GatherCost += TTI.getShuffleCost(TTI::SK_InsertSubvector, VecTy,
ShuffleMask, CostKind, I, LoadTy);
More information about the llvm-commits
mailing list