[llvm] r369213 - Fix signed/unsigned comparison warning. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 18 10:26:30 PDT 2019
Author: rksimon
Date: Sun Aug 18 10:26:30 2019
New Revision: 369213
URL: http://llvm.org/viewvc/llvm-project?rev=369213&view=rev
Log:
Fix signed/unsigned comparison warning. NFCI.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=369213&r1=369212&r2=369213&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Aug 18 10:26:30 2019
@@ -10095,8 +10095,8 @@ static bool isTargetShuffleEquivalent(Ar
// equivalent inputs that make the shuffles equivalent.
auto *BV1 = dyn_cast_or_null<BuildVectorSDNode>(V1);
auto *BV2 = dyn_cast_or_null<BuildVectorSDNode>(V2);
- BV1 = ((BV1 && BV1->getNumOperands() != Size) ? nullptr : BV1);
- BV2 = ((BV2 && BV2->getNumOperands() != Size) ? nullptr : BV2);
+ BV1 = ((BV1 && Size != (int)BV1->getNumOperands()) ? nullptr : BV1);
+ BV2 = ((BV2 && Size != (int)BV2->getNumOperands()) ? nullptr : BV2);
for (int i = 0; i < Size; ++i) {
if (Mask[i] == SM_SentinelUndef || Mask[i] == ExpectedMask[i])
More information about the llvm-commits
mailing list