[all-commits] [llvm/llvm-project] c2d892: [llvm][ctx_profile] Add instrumentation (#90136)

Mircea Trofin via All-commits all-commits at lists.llvm.org
Wed May 1 14:48:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2d892668b7fc296a37679a6b729f40ce08a6179
      https://github.com/llvm/llvm-project/commit/c2d892668b7fc296a37679a6b729f40ce08a6179
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2024-05-01 (Wed, 01 May 2024)

  Changed paths:
    A llvm/include/llvm/Transforms/Instrumentation/PGOCtxProfLowering.h
    M llvm/lib/Transforms/Instrumentation/CMakeLists.txt
    A llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    A llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll

  Log Message:
  -----------
  [llvm][ctx_profile] Add instrumentation (#90136)

This adds instrumenting callsites to PGOInstrumentation, *if* contextual profiling is requested. The latter also enables inserting counters in the entry basic block and disables value profiling (the latter is a point in time change)

This change adds the skeleton of the contextual profiling lowering pass, just so we can introduce the flag controlling that and the API to check that. The actual lowering pass will be introduced in a subsequent patch.

(Tracking Issue: #89287, RFC referenced there)



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