From 1e002a2b1b4249003124fe7b098736447a64f713 Mon Sep 17 00:00:00 2001 From: Francis Visoiu Mistrih Date: Thu, 15 Feb 2018 15:27:34 +0000 Subject: [PATCH] [CodeGen] Print irreducible loop header weight as a MIR comment Prefix it with '; ' to make it more MIR-compatible. llvm-svn: 325251 --- llvm/lib/CodeGen/MachineBasicBlock.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 78cd9d6d2bb0..fca93d82d00e 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -416,9 +416,8 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, if (IrrLoopHeaderWeight) { if (Indexes) OS << '\t'; - OS << " Irreducible loop header weight: " - << IrrLoopHeaderWeight.getValue(); - OS << '\n'; + OS.indent(2) << "; Irreducible loop header weight: " + << IrrLoopHeaderWeight.getValue() << '\n'; } }