diff options
author | Amir Ayupov <aaupov@fb.com> | 2024-07-31 22:14:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-31 22:14:52 -0700 |
commit | 3f51bec466c4b67814a7877859ba3eeb5f80da7a (patch) | |
tree | 7274026cfcd045513666e9b1e45f53e9eefaadb4 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | fb97b4f96217442c684a940558135ffbfe45b756 (diff) | |
download | llvm-3f51bec466c4b67814a7877859ba3eeb5f80da7a.zip llvm-3f51bec466c4b67814a7877859ba3eeb5f80da7a.tar.gz llvm-3f51bec466c4b67814a7877859ba3eeb5f80da7a.tar.bz2 |
[BOLT][NFC] Print timers in perf2bolt invocation
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
Reviewers: ayermolo, maksfb, rafaelauler, dcci
Reviewed By: dcci
Pull Request: https://github.com/llvm/llvm-project/pull/101270
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions