summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-11-17 05:50:14 +0000
committerCraig Topper <craig.topper@gmail.com>2014-11-17 05:50:14 +0000
commitcf0444ba2a7624409608f5854b16e432afeb3ed4 (patch)
tree2e8b9c682f56e9049f98eec0b6451cabe67c5d23 /llvm/lib/CodeGen/RegAllocFast.cpp
parenta3b5b60753667f11977476f2b8b278f3912d7076 (diff)
downloadbcm5719-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/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index 8cc6f338947..1bfd93bbea1 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -548,7 +548,7 @@ RAFast::LiveRegMap::iterator RAFast::allocVirtReg(MachineInstr *MI,
}
DEBUG(dbgs() << "Allocating " << PrintReg(VirtReg) << " from "
- << RC->getName() << "\n");
+ << TRI->getRegClassName(RC) << "\n");
unsigned BestReg = 0, BestCost = spillImpossible;
for (ArrayRef<MCPhysReg>::iterator I = AO.begin(), E = AO.end(); I != E; ++I){
OpenPOWER on IntegriCloud