Skip to content

Commit d38addf

Browse files
committed
Fix MSVC signed/unsigned mismatch warning
1 parent 1dcb6dc commit d38addf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17000,7 +17000,7 @@ void BoUpSLP::computeMinimumValueSizes() {
1700017000
// Check if the root is trunc and the next node is gather/buildvector, then
1700117001
// keep trunc in scalars, which is free in most cases.
1700217002
if (E.isGather() && IsTruncRoot && E.UserTreeIndices.size() == 1 &&
17003-
E.Idx > (IsStoreOrInsertElt ? 2 : 1) &&
17003+
E.Idx > (IsStoreOrInsertElt ? 2u : 1u) &&
1700417004
all_of(E.Scalars, [&](Value *V) {
1700517005
return V->hasOneUse() || isa<Constant>(V) ||
1700617006
(!V->hasNUsesOrMore(UsesLimit) &&

0 commit comments

Comments
 (0)