[llvm] r295453 - Fix signed/unsigned comparison warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 17 08:01:16 PST 2017
Author: rksimon
Date: Fri Feb 17 10:01:16 2017
New Revision: 295453
URL: http://llvm.org/viewvc/llvm-project?rev=295453&view=rev
Log:
Fix signed/unsigned comparison warning.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=295453&r1=295452&r2=295453&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Fri Feb 17 10:01:16 2017
@@ -14229,7 +14229,7 @@ SDValue combineShuffleToVectorExtend(Shu
for (unsigned i = 0; i != NumElts; ++i) {
if (Mask[i] < 0)
continue;
- if ((i % Scale) == 0 && Mask[i] == (i / Scale))
+ if ((i % Scale) == 0 && Mask[i] == (int)(i / Scale))
continue;
return false;
}
@@ -14289,7 +14289,7 @@ SDValue combineTruncationShuffle(Shuffle
for (unsigned i = 0; i != NumElts; ++i) {
if (Mask[i] < 0)
continue;
- if ((i * Scale) < NumElts && Mask[i] == (i * Scale))
+ if ((i * Scale) < NumElts && Mask[i] == (int)(i * Scale))
continue;
return false;
}
More information about the llvm-commits
mailing list