RegAllocFast: Add hint to debug printing

llvm-svn: 356348
This commit is contained in:
Matt Arsenault 2019-03-17 21:31:40 +00:00
parent e0c1f9e76d
commit 884a18d792
1 changed files with 2 additions and 1 deletions

View File

@ -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) &&