From e4fd907e72a599eddfa7a81eac4366b5b82523e3 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 4 Mar 2012 10:43:23 +0000 Subject: Use uint16_t to store register overlaps to reduce static data. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152001 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineRegisterInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/MachineRegisterInfo.cpp') diff --git a/lib/CodeGen/MachineRegisterInfo.cpp b/lib/CodeGen/MachineRegisterInfo.cpp index 984112ff72..7d40e66eb8 100644 --- a/lib/CodeGen/MachineRegisterInfo.cpp +++ b/lib/CodeGen/MachineRegisterInfo.cpp @@ -269,14 +269,14 @@ bool MachineRegisterInfo::isConstantPhysReg(unsigned PhysReg, assert(TargetRegisterInfo::isPhysicalRegister(PhysReg)); // Check if any overlapping register is modified. - for (const unsigned *R = TRI->getOverlaps(PhysReg); *R; ++R) + for (const uint16_t *R = TRI->getOverlaps(PhysReg); *R; ++R) if (!def_empty(*R)) return false; // Check if any overlapping register is allocatable so it may be used later. if (AllocatableRegs.empty()) AllocatableRegs = TRI->getAllocatableSet(MF); - for (const unsigned *R = TRI->getOverlaps(PhysReg); *R; ++R) + for (const uint16_t *R = TRI->getOverlaps(PhysReg); *R; ++R) if (AllocatableRegs.test(*R)) return false; return true; -- cgit v1.2.3-70-g09d2