Use uint16_t instead of unsigned to store registers in reg classes. Reduces static...
[oota-llvm.git] / lib / Target / TargetRegisterInfo.cpp
index 26898373222b94bc6f40bdc3b05aa1f3dee6da2c..1716423eeeac460fdc7a8db9fb67f217370ce440 100644 (file)
@@ -71,7 +71,7 @@ TargetRegisterInfo::getMinimalPhysRegClass(unsigned reg, EVT VT) const {
 /// registers for the specific register class.
 static void getAllocatableSetForRC(const MachineFunction &MF,
                                    const TargetRegisterClass *RC, BitVector &R){
-  ArrayRef<unsigned> Order = RC->getRawAllocationOrder(MF);
+  ArrayRef<uint16_t> Order = RC->getRawAllocationOrder(MF);
   for (unsigned i = 0; i != Order.size(); ++i)
     R.set(Order[i]);
 }