[llvm] b3d3832 - [RDA] Fix printing of regs / reg units. NFC
David Green via llvm-commits
llvm-commits at lists.llvm.org
Tue May 18 00:07:43 PDT 2021
Author: David Green
Date: 2021-05-18T08:07:30+01:00
New Revision: b3d38327b2bfcc92b5e34d0d2f2fa52a1ba063a0
URL: https://github.com/llvm/llvm-project/commit/b3d38327b2bfcc92b5e34d0d2f2fa52a1ba063a0
DIFF: https://github.com/llvm/llvm-project/commit/b3d38327b2bfcc92b5e34d0d2f2fa52a1ba063a0.diff
LOG: [RDA] Fix printing of regs / reg units. NFC
It was printing RegUnits as Regs, leading to much confusion in the debug
logs.
Added:
Modified:
llvm/lib/CodeGen/ReachingDefAnalysis.cpp
Removed:
################################################################################
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?
More information about the llvm-commits
mailing list