[llvm] r325251 - [CodeGen] Print irreducible loop header weight as a MIR comment
Francis Visoiu Mistrih via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 15 07:27:34 PST 2018
Author: thegameg
Date: Thu Feb 15 07:27:34 2018
New Revision: 325251
URL: http://llvm.org/viewvc/llvm-project?rev=325251&view=rev
Log:
[CodeGen] Print irreducible loop header weight as a MIR comment
Prefix it with '; ' to make it more MIR-compatible.
Modified:
llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
Modified: llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp?rev=325251&r1=325250&r2=325251&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineBasicBlock.cpp Thu Feb 15 07:27:34 2018
@@ -416,9 +416,8 @@ void MachineBasicBlock::print(raw_ostrea
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';
}
}
More information about the llvm-commits
mailing list