[llvm] 816ad48 - [NFC][RUIP] Small debug output refine
Jinsong Ji via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 23 20:34:15 PDT 2020
Author: Jinsong Ji
Date: 2020-03-24T03:29:45Z
New Revision: 816ad48c820bf49feb276fa623d5115c0bc9ee66
URL: https://github.com/llvm/llvm-project/commit/816ad48c820bf49feb276fa623d5115c0bc9ee66
DIFF: https://github.com/llvm/llvm-project/commit/816ad48c820bf49feb276fa623d5115c0bc9ee66.diff
LOG: [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..
Added:
Modified:
llvm/lib/CodeGen/RegUsageInfoPropagate.cpp
llvm/test/CodeGen/SystemZ/ipra-04.ll
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/RegUsageInfoPropagate.cpp b/llvm/lib/CodeGen/RegUsageInfoPropagate.cpp
index 0205e6193741..7b851f1d40e5 100644
--- a/llvm/lib/CodeGen/RegUsageInfoPropagate.cpp
+++ b/llvm/lib/CodeGen/RegUsageInfoPropagate.cpp
@@ -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');
}
}
diff --git a/llvm/test/CodeGen/SystemZ/ipra-04.ll b/llvm/test/CodeGen/SystemZ/ipra-04.ll
index 55a849e186a9..71ed6d3ff982 100644
--- a/llvm/test/CodeGen/SystemZ/ipra-04.ll
+++ b/llvm/test/CodeGen/SystemZ/ipra-04.ll
@@ -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
More information about the llvm-commits
mailing list