[all-commits] [llvm/llvm-project] 3f51be: [BOLT][NFC] Print timers in perf2bolt invocation

Amir Ayupov via All-commits all-commits at lists.llvm.org
Wed Jul 31 22:15:15 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f51bec466c4b67814a7877859ba3eeb5f80da7a
      https://github.com/llvm/llvm-project/commit/3f51bec466c4b67814a7877859ba3eeb5f80da7a
  Author: Amir Ayupov <aaupov at fb.com>
  Date:   2024-07-31 (Wed, 31 Jul 2024)

  Changed paths:
    M bolt/lib/Rewrite/RewriteInstance.cpp
    M bolt/test/timers.c

  Log Message:
  -----------
  [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



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list