diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-04 10:43:23 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-04 10:43:23 +0000 |
commit | e4fd907e72a599eddfa7a81eac4366b5b82523e3 (patch) | |
tree | e5a97f58db2537457943547ba007ee63299ae555 /lib/CodeGen/MachineRegisterInfo.cpp | |
parent | 9406da6e664a24c8e408cbba63daf162ca166ed9 (diff) | |
download | llvm-e4fd907e72a599eddfa7a81eac4366b5b82523e3.tar.gz llvm-e4fd907e72a599eddfa7a81eac4366b5b82523e3.tar.bz2 llvm-e4fd907e72a599eddfa7a81eac4366b5b82523e3.tar.xz |
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
Diffstat (limited to 'lib/CodeGen/MachineRegisterInfo.cpp')
-rw-r--r-- | lib/CodeGen/MachineRegisterInfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |