[llvm] [ctx_prof] Automatically convert available external linkage to local for modules with contextual roots (PR #109203)

Mircea Trofin via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 13:16:58 PDT 2024


================
@@ -1,6 +1,11 @@
 ; REQUIRES: asserts
 ; RUN: opt -passes=elim-avail-extern -avail-extern-to-local -stats -S 2>&1 < %s | FileCheck %s
+; RUN: echo '[{"Guid":1234, "Counters": [1]}]' | llvm-ctxprof-util fromJSON --input=- --output=%t_profile.ctxprofdata
+; RUN: opt -passes='assign-guid,require<ctx-prof-analysis>,elim-avail-extern' -use-ctx-profile=%t_profile.ctxprofdata -stats -S 2>&1 < %s | FileCheck %s
----------------
mtrofin wrote:

done

https://github.com/llvm/llvm-project/pull/109203


More information about the llvm-commits mailing list