[llvm] cf47a8d - Silence signed/unsigned comparison warnings. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 16 10:52:17 PST 2023
Author: Simon Pilgrim
Date: 2023-01-16T18:52:04Z
New Revision: cf47a8d383fdcf077a23d112ece8a8aa85c37f66
URL: https://github.com/llvm/llvm-project/commit/cf47a8d383fdcf077a23d112ece8a8aa85c37f66
DIFF: https://github.com/llvm/llvm-project/commit/cf47a8d383fdcf077a23d112ece8a8aa85c37f66.diff
LOG: Silence signed/unsigned comparison warnings. NFC.
Added:
Modified:
llvm/lib/Target/ARM/ARMISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.cpp b/llvm/lib/Target/ARM/ARMISelLowering.cpp
index 3bfa4a2538b6..7821b632c3eb 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ b/llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -7527,9 +7527,9 @@ static bool isTruncMask(ArrayRef<int> M, EVT VT, bool Top, bool SingleSource) {
int Ofs = Top ? 1 : 0;
int Upper = SingleSource ? 0 : NumElts;
for (unsigned i = 0, e = NumElts / 2; i != e; ++i) {
- if (M[i] >= 0 && M[i] != ((i * 2) + Ofs))
+ if (M[i] >= 0 && M[i] != (int)((i * 2) + Ofs))
return false;
- if (M[i + e] >= 0 && M[i + e] != ((i * 2) + Ofs + Upper))
+ if (M[i + e] >= 0 && M[i + e] != (int)((i * 2) + Ofs + Upper))
return false;
}
return true;
More information about the llvm-commits
mailing list