Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1940,7 +1940,7 @@ void AsmPrinter::emitFunctionBody() {
for (const auto &MBB : *MF) {
*MBBProfileDumpFileOutput.get()
<< MF->getName() << "," << MBB.getBBID() << ","
<< MBFI.getBlockFreqRelativeToEntryBlock(&MBB) << "\n";
<< MBFI.getBlockFreq(&MBB).getFrequency() << "\n";
}
}
}
Expand Down
8 changes: 4 additions & 4 deletions llvm/test/CodeGen/MLRegAlloc/bb-profile-dump.ll
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ ifNotEqual:
ret i64 %sum
}

; CHECK: f2,0,1.000000e+00
; CHECK-NEXT: f1,0,1.000000e+00
; CHECK-NEXT: f1,1,5.000000e-01
; CHECK-NEXT: f1,2,1.000000e+00
; CHECK: f2,0,8
; CHECK-NEXT: f1,0,16
; CHECK-NEXT: f1,1,8
; CHECK-NEXT: f1,2,16

; Check that if we pass -mbb-profile-dump but don't set -basic-block-sections,
; we get an appropriate error message
Expand Down