Fix signed/unsigned comparison warning. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 24 Jul 2019 17:44:22 +0000 (17:44 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Wed, 24 Jul 2019 17:44:22 +0000 (17:44 +0000)
llvm-svn: 366935

llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index 014e672..b1188c8 100644 (file)
@@ -9076,7 +9076,7 @@ SelectionDAG::matchBinOpReduction(SDNode *Extract, ISD::NodeType &BinOp,
 
     // Verify the shuffle has the expected (at this stage of the pyramid) mask.
     for (int Index = 0; Index < (int)MaskEnd; ++Index)
-      if (Shuffle->getMaskElt(Index) != (MaskEnd + Index))
+      if (Shuffle->getMaskElt(Index) != (int)(MaskEnd + Index))
         return PartialReduction(PrevOp, MaskEnd);
 
     PrevOp = Op;