diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-02-16 16:52:50 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-02-16 16:52:50 +0000 |
commit | 5d005a359e78ca1c572385c6d6d90a0061f5b206 (patch) | |
tree | 641b13e30f80d071ed0c93be7c1e99c72d696f0c /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | e16b0cfba9c0b2fe8eebfcddccd2ba2141c72320 (diff) | |
download | bcm5719-llvm-5d005a359e78ca1c572385c6d6d90a0061f5b206.tar.gz bcm5719-llvm-5d005a359e78ca1c572385c6d6d90a0061f5b206.zip |
Fix signed/unsigned comparison warning. NFCI.
llvm-svn: 325359
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index d82f90e7311..8f42c414c4c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -1462,7 +1462,7 @@ bool TargetLowering::SimplifyDemandedVectorElts( bool Updated = false; bool IdentityLHS = true, IdentityRHS = true; SmallVector<int, 32> NewMask(ShuffleMask.begin(), ShuffleMask.end()); - for (int i = 0; i != NumElts; ++i) { + for (unsigned i = 0; i != NumElts; ++i) { int &M = NewMask[i]; if (M < 0) continue; @@ -1471,8 +1471,8 @@ bool TargetLowering::SimplifyDemandedVectorElts( Updated = true; M = -1; } - IdentityLHS &= (M < 0) || (M == i); - IdentityRHS &= (M < 0) || ((M - NumElts) == i); + IdentityLHS &= (M < 0) || (M == (int)i); + IdentityRHS &= (M < 0) || ((M - NumElts) == (int)i); } // Update legal shuffle masks based on demanded elements if it won't reduce |