[llvm] [MemProf] Extend MemProfUse pass to make use of data access profiles to partition data (PR #151238)
Mingming Liu via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 26 18:46:29 PDT 2025
================
@@ -0,0 +1,87 @@
+; RUN: rm -rf %t && split-file %s %t && cd %t
+
+;; Read a text profile and merge it into indexed profile.
+; RUN: llvm-profdata merge --memprof-version=4 memprof.yaml -o memprof.profdata
+
+;; Run optimizer pass on the IR, and check the section prefix.
+; RUN: opt -passes='memprof-use<profile-filename=memprof.profdata>' -annotate-static-data-prefix \
----------------
mingmingl-llvm wrote:
Added a RUN line below with `--implicit-check-not="section_prefix"`, also updated the 'CHECK' (default prefix) to 'PREFIX' (a custom one). This way, it's very explicit that the added RUN line won't match 'PREFIX' lines.
https://github.com/llvm/llvm-project/pull/151238
More information about the llvm-commits
mailing list