mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-02 05:12:20 +00:00
Fix self-host; ensure signedness is consistent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163306 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3bd51b8df3
commit
951543491f
@ -4175,7 +4175,7 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
|
||||
|
||||
// Map of the number of times a particular SDValue appears in the
|
||||
// element list.
|
||||
DenseMap<SDValue, int> ValueCounts;
|
||||
DenseMap<SDValue, unsigned> ValueCounts;
|
||||
SDValue Value;
|
||||
for (unsigned i = 0; i < NumElts; ++i) {
|
||||
SDValue V = Op.getOperand(i);
|
||||
@ -4187,7 +4187,7 @@ SDValue ARMTargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
|
||||
isConstant = false;
|
||||
|
||||
ValueCounts.insert(std::make_pair(V, 0));
|
||||
int &Count = ValueCounts[V];
|
||||
unsigned &Count = ValueCounts[V];
|
||||
|
||||
// Is this value dominant? (takes up more than half of the lanes)
|
||||
if (++Count > (NumElts / 2)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user