Fix signed/unsigned comparison warning. NFCI.

llvm-svn: 369213
This commit is contained in:
Simon Pilgrim 2019-08-18 17:26:30 +00:00
parent fee2546f3f
commit 63b3c56fca
1 changed files with 2 additions and 2 deletions

View File

@ -10095,8 +10095,8 @@ static bool isTargetShuffleEquivalent(ArrayRef<int> Mask,
// equivalent inputs that make the shuffles equivalent. // equivalent inputs that make the shuffles equivalent.
auto *BV1 = dyn_cast_or_null<BuildVectorSDNode>(V1); auto *BV1 = dyn_cast_or_null<BuildVectorSDNode>(V1);
auto *BV2 = dyn_cast_or_null<BuildVectorSDNode>(V2); auto *BV2 = dyn_cast_or_null<BuildVectorSDNode>(V2);
BV1 = ((BV1 && BV1->getNumOperands() != Size) ? nullptr : BV1); BV1 = ((BV1 && Size != (int)BV1->getNumOperands()) ? nullptr : BV1);
BV2 = ((BV2 && BV2->getNumOperands() != Size) ? nullptr : BV2); BV2 = ((BV2 && Size != (int)BV2->getNumOperands()) ? nullptr : BV2);
for (int i = 0; i < Size; ++i) { for (int i = 0; i < Size; ++i) {
if (Mask[i] == SM_SentinelUndef || Mask[i] == ExpectedMask[i]) if (Mask[i] == SM_SentinelUndef || Mask[i] == ExpectedMask[i])