[all-commits] [llvm/llvm-project] 9a81a4: Emit metadata when instr. profiles hash mismatch o...

Sriraman Tallam via All-commits all-commits at lists.llvm.org
Fri Jan 29 13:10:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9a81a4ef79cf283fcf55a25a0bea67ba34dc0d53
      https://github.com/llvm/llvm-project/commit/9a81a4ef79cf283fcf55a25a0bea67ba34dc0d53
  Author: Sriraman Tallam <tmsriram at google.com>
  Date:   2021-01-29 (Fri, 29 Jan 2021)

  Changed paths:
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    A llvm/test/Transforms/PGOProfile/Inputs/hash_mismatch_metadata.proftext
    A llvm/test/Transforms/PGOProfile/hash_mismatch_metadata.ll

  Log Message:
  -----------
  Emit metadata when instr. profiles hash mismatch occurs.

This patch emits "instr_prof_hash_mismatch" function annotation metadata if
there is a hash mismatch while applying instrumented profiles.

During the PGO optimized build using instrumented profiles, if the CFG of
the function has changed since generating the profile, a hash mismatch is
encountered. This patch emits this information as annotation metadata. We
plan to use this with Propeller which is done at the machine IR level.
Propeller is usually applied on top of PGO and a hash mismatch during
PGO could be used to detect source drift.

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




More information about the All-commits mailing list