Skip to content

Commit 1715386

Browse files
committed
Fix MSVC signed/unsigned comparison warning. NFC.
1 parent f15924d commit 1715386

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4043,7 +4043,7 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
40434043
return Rem->isZero();
40444044
};
40454045

4046-
if (MaxPowerOf2RuntimeVF > 0) {
4046+
if (MaxPowerOf2RuntimeVF > 0u) {
40474047
assert((UserVF.isNonZero() || isPowerOf2_32(*MaxPowerOf2RuntimeVF)) &&
40484048
"MaxFixedVF must be a power of 2");
40494049
if (NoScalarEpilogueNeeded(*MaxPowerOf2RuntimeVF)) {
@@ -4055,7 +4055,7 @@ LoopVectorizationCostModel::computeMaxVF(ElementCount UserVF, unsigned UserIC) {
40554055

40564056
auto ExpectedTC = getSmallBestKnownTC(PSE, TheLoop);
40574057
if (ExpectedTC && ExpectedTC <= TTI.getMinTripCountTailFoldingThreshold()) {
4058-
if (MaxPowerOf2RuntimeVF > 0) {
4058+
if (MaxPowerOf2RuntimeVF > 0u) {
40594059
// If we have a low-trip-count, and the fixed-width VF is known to divide
40604060
// the trip count but the scalable factor does not, use the fixed-width
40614061
// factor in preference to allow the generation of a non-predicated loop.

0 commit comments

Comments
 (0)