[llvm-branch-commits] [BOLT][NFC] Print timers in perf2bolt invocation (PR #101270)
Amir Ayupov via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 30 17:36:07 PDT 2024
https://github.com/aaupov created https://github.com/llvm/llvm-project/pull/101270
When BOLT is run in AggregateOnly mode (perf2bolt), it exits with code
zero so destructors are not run thus TimerGroup never prints the timers.
Add explicit printing just before the exit to honor options requesting
timers (`--time-rewrite`, `--time-aggr`).
Test Plan: updated bolt/test/timers.c
More information about the llvm-branch-commits
mailing list