[llvm] 39de63a - Fix signed/unsigned comparison warnings. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 12 11:23:28 PDT 2020
Author: Simon Pilgrim
Date: 2020-08-12T19:22:13+01:00
New Revision: 39de63aef9535fece984c3abf161892d1d97b938
URL: https://github.com/llvm/llvm-project/commit/39de63aef9535fece984c3abf161892d1d97b938
DIFF: https://github.com/llvm/llvm-project/commit/39de63aef9535fece984c3abf161892d1d97b938.diff
LOG: Fix signed/unsigned comparison warnings. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 9d4035096f2c..4480c6ee5d89 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -10767,8 +10767,8 @@ static bool IsElementEquivalent(int MaskSize, SDValue Op, SDValue ExpectedOp,
// If the values are build vectors, we can look through them to find
// equivalent inputs that make the shuffles equivalent.
// TODO: Handle MaskSize != Op.getNumOperands()?
- if (MaskSize == Op.getNumOperands() &&
- MaskSize == ExpectedOp.getNumOperands())
+ if (MaskSize == (int)Op.getNumOperands() &&
+ MaskSize == (int)ExpectedOp.getNumOperands())
return Op.getOperand(Idx) == ExpectedOp.getOperand(ExpectedIdx);
}
@@ -10788,7 +10788,7 @@ static bool IsElementEquivalent(int MaskSize, SDValue Op, SDValue ExpectedOp,
static bool isShuffleEquivalent(SDValue V1, SDValue V2, ArrayRef<int> Mask,
ArrayRef<int> ExpectedMask) {
int Size = Mask.size();
- if (Mask.size() != (int)ExpectedMask.size())
+ if (Size != (int)ExpectedMask.size())
return false;
for (int i = 0; i < Size; ++i) {
More information about the llvm-commits
mailing list