1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

[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 66261e9287
commit cedff971cb

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?