[CodeGen] Print irreducible loop header weight as a MIR comment

Prefix it with '; ' to make it more MIR-compatible.

llvm-svn: 325251
This commit is contained in:
Francis Visoiu Mistrih 2018-02-15 15:27:34 +00:00
parent 23c0cce597
commit 1e002a2b1b
1 changed files with 2 additions and 3 deletions

View File

@ -416,9 +416,8 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST,
if (IrrLoopHeaderWeight) { if (IrrLoopHeaderWeight) {
if (Indexes) OS << '\t'; if (Indexes) OS << '\t';
OS << " Irreducible loop header weight: " OS.indent(2) << "; Irreducible loop header weight: "
<< IrrLoopHeaderWeight.getValue(); << IrrLoopHeaderWeight.getValue() << '\n';
OS << '\n';
} }
} }