[BOLT] Report adjusted program stats from perf2bolt in BAT mode (#91683)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user