[all-commits] [llvm/llvm-project] 141f20: [ctx_prof] Remove the dependency on the "name" Glo...

Mircea Trofin via All-commits all-commits at lists.llvm.org
Thu Aug 22 13:48:27 PDT 2024


  Branch: refs/heads/users/mtrofin/08-22-_ctx_prof_remove_the_dependency_on_the_name_globalvariable
  Home:   https://github.com/llvm/llvm-project
  Commit: 141f20226da8764429fe2aa860b2c8b128e79d07
      https://github.com/llvm/llvm-project/commit/141f20226da8764429fe2aa860b2c8b128e79d07
  Author: Mircea Trofin <mtrofin at google.com>
  Date:   2024-08-22 (Thu, 22 Aug 2024)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicInst.h
    M llvm/lib/Transforms/Instrumentation/PGOCtxProfLowering.cpp
    M llvm/lib/Transforms/Instrumentation/PGOInstrumentation.cpp
    M llvm/test/Transforms/PGOProfile/ctx-instrumentation.ll
    M llvm/test/Transforms/PGOProfile/ctx-prof-use-prelink.ll

  Log Message:
  -----------
  [ctx_prof] Remove the dependency on the "name" GlobalVariable

We don't need that name variable for contextual instrumentation, we just
use the function to get its GUID which we pass to the runtime, and rely
on metadata to capture it through the various optimization passes. This
change removes the need for the name global variable.



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