Skip to content

Commit 816ad48

Browse files
author
Jinsong Ji
committed
[NFC][RUIP] Small debug output refine
Add a new line, so that we always print MI in a new line, before and after UpdateRegMask, for easier check..
1 parent 49e5a97 commit 816ad48

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

llvm/lib/CodeGen/RegUsageInfoPropagate.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,8 @@ bool RegUsageInfoPropagation::runOnMachineFunction(MachineFunction &MF) {
118118
continue;
119119
LLVM_DEBUG(
120120
dbgs()
121-
<< "Call Instruction Before Register Usage Info Propagation : \n");
122-
LLVM_DEBUG(dbgs() << MI << "\n");
121+
<< "Call Instruction Before Register Usage Info Propagation : \n"
122+
<< MI << "\n");
123123

124124
auto UpdateRegMask = [&](const Function &F) {
125125
const ArrayRef<uint32_t> RegMask = PRUI->getRegUsageInfo(F);
@@ -140,8 +140,9 @@ bool RegUsageInfoPropagation::runOnMachineFunction(MachineFunction &MF) {
140140
}
141141

142142
LLVM_DEBUG(
143-
dbgs() << "Call Instruction After Register Usage Info Propagation : "
144-
<< MI << '\n');
143+
dbgs()
144+
<< "Call Instruction After Register Usage Info Propagation : \n"
145+
<< MI << '\n');
145146
}
146147
}
147148

llvm/test/CodeGen/SystemZ/ipra-04.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
; REQUIRES: asserts
77
;
88
; DBG: fun1 function optimized for not having CSR
9-
; DBG: Call Instruction After Register Usage Info Propagation : CallBRASL @fun1{{.*}} $r14d $r15d
9+
; DBG: Call Instruction After Register Usage Info Propagation :
10+
; DBG-NEXT: CallBRASL @fun1{{.*}} $r14d $r15d
1011

1112
declare dso_local fastcc signext i32 @foo(i16*, i32 signext) unnamed_addr
1213

0 commit comments

Comments
 (0)