summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-04 14:05:33 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-02-04 14:05:33 +0000
commit56edf3f344a0321a75427a4cc19214bb9de35c93 (patch)
tree969123356b86e8c212eff03c17d00268734c4507 /llvm/lib
parent10547230f3dc139f858c5ab32fc5498e16af13d7 (diff)
downloadbcm5719-llvm-56edf3f344a0321a75427a4cc19214bb9de35c93.tar.gz
bcm5719-llvm-56edf3f344a0321a75427a4cc19214bb9de35c93.zip
GlobalISel: Fix formatting of debug output
There was a missing space before the instruction name, and the newline is redundant since MI::print by default adds one. llvm-svn: 353046
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
index 11239bd5655..019cc72a12c 100644
--- a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
@@ -157,14 +157,14 @@ void GISelCSEInfo::countOpcodeHit(unsigned Opc) {
void GISelCSEInfo::recordNewInstruction(MachineInstr *MI) {
if (shouldCSE(MI->getOpcode())) {
TemporaryInsts.insert(MI);
- LLVM_DEBUG(dbgs() << "CSEInfo: Recording new MI" << *MI << "\n";);
+ LLVM_DEBUG(dbgs() << "CSEInfo: Recording new MI " << *MI);
}
}
void GISelCSEInfo::handleRecordedInst(MachineInstr *MI) {
assert(shouldCSE(MI->getOpcode()) && "Invalid instruction for CSE");
auto *UMI = InstrMapping.lookup(MI);
- LLVM_DEBUG(dbgs() << "CSEInfo: Handling recorded MI" << *MI << "\n";);
+ LLVM_DEBUG(dbgs() << "CSEInfo: Handling recorded MI " << *MI);
if (UMI) {
// Invalidate this MI.
invalidateUniqueMachineInstr(UMI);
@@ -223,7 +223,7 @@ void GISelCSEInfo::analyze(MachineFunction &MF) {
for (MachineInstr &MI : MBB) {
if (!shouldCSE(MI.getOpcode()))
continue;
- LLVM_DEBUG(dbgs() << "CSEInfo::Add MI: " << MI << "\n";);
+ LLVM_DEBUG(dbgs() << "CSEInfo::Add MI: " << MI);
insertInstr(&MI);
}
}
OpenPOWER on IntegriCloud