diff options
author | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-02-15 15:27:34 +0000 |
---|---|---|
committer | Francis Visoiu Mistrih <francisvm@yahoo.com> | 2018-02-15 15:27:34 +0000 |
commit | 1e002a2b1b4249003124fe7b098736447a64f713 (patch) | |
tree | a80a3a21381ab932f8d89fd7a4ab2f8d39f115a0 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 23c0cce5976b1b55bcb44ac0f8f56c40a02ed861 (diff) | |
download | llvm-1e002a2b1b4249003124fe7b098736447a64f713.zip llvm-1e002a2b1b4249003124fe7b098736447a64f713.tar.gz llvm-1e002a2b1b4249003124fe7b098736447a64f713.tar.bz2 |
[CodeGen] Print irreducible loop header weight as a MIR comment
Prefix it with '; ' to make it more MIR-compatible.
llvm-svn: 325251
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 78cd9d6d..fca93d8 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'; } } |