[all-commits] [llvm/llvm-project] cd861a: [InstrProf] Fix debug-info-correlate test

Ellis Hoag via All-commits all-commits at lists.llvm.org
Fri Aug 11 09:20:34 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd861ad0f94dafa628829eae806d8847dbd43661
      https://github.com/llvm/llvm-project/commit/cd861ad0f94dafa628829eae806d8847dbd43661
  Author: Ellis Hoag <ellis.sparky.hoag at gmail.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M compiler-rt/test/profile/Darwin/instrprof-debug-info-correlate.c
    M compiler-rt/test/profile/Linux/instrprof-debug-info-correlate.c

  Log Message:
  -----------
  [InstrProf] Fix debug-info-correlate test

The `llvm-profdata show` command is not sufficient to check that two
profiles are identical because it doesn't show the counter values. Add
the flags `--all-functions --counts` so that counter values are checked.

This was changed in https://reviews.llvm.org/D135929 but I failed to
remember that counter values were not printed by default.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D157665




More information about the All-commits mailing list