From b3d38327b2bfcc92b5e34d0d2f2fa52a1ba063a0 Mon Sep 17 00:00:00 2001 From: David Green Date: Tue, 18 May 2021 08:07:30 +0100 Subject: [PATCH] [RDA] Fix printing of regs / reg units. NFC It was printing RegUnits as Regs, leading to much confusion in the debug logs. --- llvm/lib/CodeGen/ReachingDefAnalysis.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp index 63c668bc192f..c850571da2ed 100644 --- a/llvm/lib/CodeGen/ReachingDefAnalysis.cpp +++ b/llvm/lib/CodeGen/ReachingDefAnalysis.cpp @@ -125,7 +125,7 @@ void ReachingDefAnalysis::processDefs(MachineInstr *MI) { for (MCRegUnitIterator Unit(MO.getReg().asMCReg(), TRI); Unit.isValid(); ++Unit) { // This instruction explicitly defines the current reg unit. - LLVM_DEBUG(dbgs() << printReg(*Unit, TRI) << ":\t" << CurInstr + LLVM_DEBUG(dbgs() << printRegUnit(*Unit, TRI) << ":\t" << CurInstr << '\t' << *MI); // How many instructions since this reg unit was last written?