[llvm] r356348 - RegAllocFast: Add hint to debug printing
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 17 14:31:41 PDT 2019
Author: arsenm
Date: Sun Mar 17 14:31:40 2019
New Revision: 356348
URL: http://llvm.org/viewvc/llvm-project?rev=356348&view=rev
Log:
RegAllocFast: Add hint to debug printing
Modified:
llvm/trunk/lib/CodeGen/RegAllocFast.cpp
Modified: llvm/trunk/lib/CodeGen/RegAllocFast.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/RegAllocFast.cpp?rev=356348&r1=356347&r2=356348&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/RegAllocFast.cpp (original)
+++ llvm/trunk/lib/CodeGen/RegAllocFast.cpp Sun Mar 17 14:31:40 2019
@@ -566,7 +566,8 @@ void RegAllocFast::allocVirtReg(MachineI
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) &&
More information about the llvm-commits
mailing list