diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-03-17 21:31:40 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-03-17 21:31:40 +0000 |
commit | 884a18d79253b98aea80f555c2137fad59ccfe80 (patch) | |
tree | 9954fec0a2c826a8a04f6f7fefde6420afbc5f26 /llvm/lib/CodeGen/RegAllocFast.cpp | |
parent | e0c1f9e76d595bbcbd0686d762cd8cc2eed3c7e9 (diff) | |
download | bcm5719-llvm-884a18d79253b98aea80f555c2137fad59ccfe80.tar.gz bcm5719-llvm-884a18d79253b98aea80f555c2137fad59ccfe80.zip |
RegAllocFast: Add hint to debug printing
llvm-svn: 356348
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r-- | llvm/lib/CodeGen/RegAllocFast.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp index ad080e9c290..d3e52f92f45 100644 --- a/llvm/lib/CodeGen/RegAllocFast.cpp +++ b/llvm/lib/CodeGen/RegAllocFast.cpp @@ -566,7 +566,8 @@ void RegAllocFast::allocVirtReg(MachineInstr &MI, LiveReg &LR, unsigned Hint) { const TargetRegisterClass &RC = *MRI->getRegClass(VirtReg); LLVM_DEBUG(dbgs() << "Search register for " << printReg(VirtReg) - << " in class " << TRI->getRegClassName(&RC) << '\n'); + << " in class " << TRI->getRegClassName(&RC) + << " with hint " << printReg(Hint, TRI) << '\n'); // Take hint when possible. if (TargetRegisterInfo::isPhysicalRegister(Hint) && |