[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..
This commit is contained in:
Jinsong Ji 2020-03-24 02:55:30 +00:00
parent 49e5a97ec3
commit 816ad48c82
2 changed files with 7 additions and 5 deletions

View File

@ -118,8 +118,8 @@ bool RegUsageInfoPropagation::runOnMachineFunction(MachineFunction &MF) {
continue;
LLVM_DEBUG(
dbgs()
<< "Call Instruction Before Register Usage Info Propagation : \n");
LLVM_DEBUG(dbgs() << MI << "\n");
<< "Call Instruction Before Register Usage Info Propagation : \n"
<< MI << "\n");
auto UpdateRegMask = [&](const Function &F) {
const ArrayRef<uint32_t> RegMask = PRUI->getRegUsageInfo(F);
@ -140,8 +140,9 @@ bool RegUsageInfoPropagation::runOnMachineFunction(MachineFunction &MF) {
}
LLVM_DEBUG(
dbgs() << "Call Instruction After Register Usage Info Propagation : "
<< MI << '\n');
dbgs()
<< "Call Instruction After Register Usage Info Propagation : \n"
<< MI << '\n');
}
}

View File

@ -6,7 +6,8 @@
; REQUIRES: asserts
;
; DBG: fun1 function optimized for not having CSR
; DBG: Call Instruction After Register Usage Info Propagation : CallBRASL @fun1{{.*}} $r14d $r15d
; DBG: Call Instruction After Register Usage Info Propagation :
; DBG-NEXT: CallBRASL @fun1{{.*}} $r14d $r15d
declare dso_local fastcc signext i32 @foo(i16*, i32 signext) unnamed_addr