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

Mircea Trofin via All-commits all-commits at lists.llvm.org
Thu Aug 22 14:00:45 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: f1780fa803cfcd0324fb463f3a6ed98c32cc1e38
      https://github.com/llvm/llvm-project/commit/f1780fa803cfcd0324fb463f3a6ed98c32cc1e38
  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