diff options
| author | Craig Topper <craig.topper@gmail.com> | 2014-11-17 05:50:14 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2014-11-17 05:50:14 +0000 |
| commit | cf0444ba2a7624409608f5854b16e432afeb3ed4 (patch) | |
| tree | 2e8b9c682f56e9049f98eec0b6451cabe67c5d23 /llvm/lib/CodeGen/RegAllocBase.cpp | |
| parent | a3b5b60753667f11977476f2b8b278f3912d7076 (diff) | |
| download | bcm5719-llvm-cf0444ba2a7624409608f5854b16e432afeb3ed4.tar.gz bcm5719-llvm-cf0444ba2a7624409608f5854b16e432afeb3ed4.zip | |
Move register class name strings to a single array in MCRegisterInfo to reduce static table size and number of relocation entries.
Indices into the table are stored in each MCRegisterClass instead of a pointer. A new method, getRegClassName, is added to MCRegisterInfo and TargetRegisterInfo to lookup the string in the table.
llvm-svn: 222118
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBase.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/RegAllocBase.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocBase.cpp b/llvm/lib/CodeGen/RegAllocBase.cpp index 1f140b3d715..122afd122d2 100644 --- a/llvm/lib/CodeGen/RegAllocBase.cpp +++ b/llvm/lib/CodeGen/RegAllocBase.cpp @@ -101,7 +101,7 @@ void RegAllocBase::allocatePhysRegs() { // register if possible and populate a list of new live intervals that // result from splitting. DEBUG(dbgs() << "\nselectOrSplit " - << MRI->getRegClass(VirtReg->reg)->getName() + << TRI->getRegClassName(MRI->getRegClass(VirtReg->reg)) << ':' << *VirtReg << " w=" << VirtReg->weight << '\n'); typedef SmallVector<unsigned, 4> VirtRegVec; VirtRegVec SplitVRegs; |

