[llvm] 0579050 - Fix MSVC signed/unsigned comparison warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 2 03:25:21 PDT 2021
Author: Simon Pilgrim
Date: 2021-08-02T11:23:43+01:00
New Revision: 057905011660200466fe1ab25cca76717e382d0b
URL: https://github.com/llvm/llvm-project/commit/057905011660200466fe1ab25cca76717e382d0b
DIFF: https://github.com/llvm/llvm-project/commit/057905011660200466fe1ab25cca76717e382d0b.diff
LOG: Fix MSVC signed/unsigned comparison warning. NFCI.
Added:
Modified:
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
index 92892d3abdc6..4f3567e1390f 100644
--- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
@@ -1639,7 +1639,7 @@ ARMTTIImpl::getExtendedAddReductionCost(bool IsMLA, bool IsUnsigned,
unsigned RevVTSize = ResVT.getSizeInBits();
if (ValVT.getSizeInBits() <= 128 &&
((LT.second == MVT::v16i8 && RevVTSize <= 32) ||
- (LT.second == MVT::v8i16 && RevVTSize <= (IsMLA ? 64 : 32)) ||
+ (LT.second == MVT::v8i16 && RevVTSize <= (IsMLA ? 64u : 32u)) ||
(LT.second == MVT::v4i32 && RevVTSize <= 64)))
return ST->getMVEVectorCostFactor(CostKind) * LT.first;
}
More information about the llvm-commits
mailing list