[RDA] Fix printing of regs / reg units. NFC

It was printing RegUnits as Regs, leading to much confusion in the debug
logs.
This commit is contained in:
David Green 2021-05-18 08:07:30 +01:00
parent 81fdc73e5d
commit b3d38327b2
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ void ReachingDefAnalysis::processDefs(MachineInstr *MI) {
for (MCRegUnitIterator Unit(MO.getReg().asMCReg(), TRI); Unit.isValid(); for (MCRegUnitIterator Unit(MO.getReg().asMCReg(), TRI); Unit.isValid();
++Unit) { ++Unit) {
// This instruction explicitly defines the current reg 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); << '\t' << *MI);
// How many instructions since this reg unit was last written? // How many instructions since this reg unit was last written?