summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocPBQP.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-03-04 10:16:38 +0000
committerCraig Topper <craig.topper@gmail.com>2012-03-04 10:16:38 +0000
commitb35eacb0f0e134716dcb538e349a52cb2b449a90 (patch)
treef88d07660e577d5f220d781286175078b3cb3eb8 /llvm/lib/CodeGen/RegAllocPBQP.cpp
parent72eebee0cb6a0bc09a20e95db19e0efad4b41beb (diff)
downloadbcm5719-llvm-b35eacb0f0e134716dcb538e349a52cb2b449a90.tar.gz
bcm5719-llvm-b35eacb0f0e134716dcb538e349a52cb2b449a90.zip
Use uint16_t instead of unsigned to store registers in reg classes. Reduces static data size.
llvm-svn: 151998
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocPBQP.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocPBQP.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocPBQP.cpp b/llvm/lib/CodeGen/RegAllocPBQP.cpp
index a36eeff6ea7..f15574c8cbd 100644
--- a/llvm/lib/CodeGen/RegAllocPBQP.cpp
+++ b/llvm/lib/CodeGen/RegAllocPBQP.cpp
@@ -216,7 +216,7 @@ std::auto_ptr<PBQPRAProblem> PBQPBuilder::build(MachineFunction *mf,
// Compute an initial allowed set for the current vreg.
typedef std::vector<unsigned> VRAllowed;
VRAllowed vrAllowed;
- ArrayRef<unsigned> rawOrder = trc->getRawAllocationOrder(*mf);
+ ArrayRef<uint16_t> rawOrder = trc->getRawAllocationOrder(*mf);
for (unsigned i = 0; i != rawOrder.size(); ++i) {
unsigned preg = rawOrder[i];
if (!reservedRegs.test(preg)) {
OpenPOWER on IntegriCloud