Skip to content

Commit dfdb38d

Browse files
[MCA] Simplify instruction field
Output only Instructions: like for -instruction-tables option
1 parent 8e81f3f commit dfdb38d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

llvm/tools/llvm-mca/Views/InstructionInfoView.cpp

+3-4
Original file line numberDiff line numberDiff line change
@@ -90,16 +90,15 @@ void InstructionInfoView::printSchedulingInfoView(raw_ostream &OS) const {
9090
FOS << "\n\nScheduling Info:\n";
9191
FOS << "[1]: #uOps\n[2]: Latency\n[3]: Bypass Latency\n"
9292
<< "[4]: Throughput\n[5]: Resources\n"
93-
<< "[6]: LLVM OpcodeName\n[7]: Instruction\n"
94-
<< "[8]: Comment if any\n\n";
93+
<< "[6]: LLVM OpcodeName\n";
9594

9695
// paddings for each scheduling info output. Start at [2]
9796
std::vector<unsigned> paddings = {7, 12, 18, 27, 94, 113, 150};
98-
for (unsigned i = 0; i < paddings.size(); i++) {
97+
for (unsigned i = 0; i < paddings.size() - 1; i++) {
9998
FOS << "[" << i + 1 << "]";
10099
FOS.PadToColumn(paddings[i]);
101100
}
102-
FOS << "[" << paddings.size() + 1 << "]\n";
101+
FOS << "Instructions:\n";
103102

104103
for (const auto &[Index, IIVDEntry, Inst] : enumerate(IIVD, Source)) {
105104
getComment(Inst, CommentString);

0 commit comments

Comments
 (0)