Use register names instead of numbers in debug output.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60525 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/PostRASchedulerList.cpp b/lib/CodeGen/PostRASchedulerList.cpp
index a035c18..ec56fea 100644
--- a/lib/CodeGen/PostRASchedulerList.cpp
+++ b/lib/CodeGen/PostRASchedulerList.cpp
@@ -428,9 +428,10 @@
                "Kill and Def maps aren't consistent for NewReg!");
         if (KillIndices[NewReg] == -1u &&
             KillIndices[AntiDepReg] <= DefIndices[NewReg]) {
-          DOUT << "Breaking anti-dependence edge on reg " << AntiDepReg
+          DOUT << "Breaking anti-dependence edge on "
+               << TRI->getName(AntiDepReg)
                << " with " << RegRefs.count(AntiDepReg) << " references"
-               << " with new reg " << NewReg << "!\n";
+               << " using " << TRI->getName(NewReg) << "!\n";
 
           // Update the references to the old register to refer to the new
           // register.