[BOLT] Report adjusted program stats from perf2bolt in BAT mode (#91683)

This commit is contained in:
Amir Ayupov
2024-05-21 18:54:15 -07:00
committed by GitHub
parent f0d1ae83b0
commit a9b67490b2
4 changed files with 22 additions and 4 deletions

View File

@@ -613,7 +613,8 @@ Error DataAggregator::readProfile(BinaryContext &BC) {
if (std::error_code EC = writeBATYAML(BC, opts::SaveProfile))
report_error("cannot create output data file", EC);
}
BC.logBOLTErrorsAndQuitOnFatal(PrintProgramStats().runOnFunctions(BC));
PrintProgramStats PPS(BAT);
BC.logBOLTErrorsAndQuitOnFatal(PPS.runOnFunctions(BC));
}
return Error::success();