[llvm-commits] [llvm] r163306 - /llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
James Molloy
james.molloy at arm.com
Thu Sep 6 03:32:09 PDT 2012
Author: jamesm
Date: Thu Sep 6 05:32:08 2012
New Revision: 163306
URL: http://llvm.org/viewvc/llvm-project?rev=163306&view=rev
Log:
Fix self-host; ensure signedness is consistent.
Modified:
llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp?rev=163306&r1=163305&r2=163306&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMISelLowering.cpp Thu Sep 6 05:32:08 2012
@@ -4175,7 +4175,7 @@
// 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 @@
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)) {
More information about the llvm-commits
mailing list