[llvm] [ctx_prof] Add Inlining support (PR #106154)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 12:29:58 PDT 2024


================
@@ -0,0 +1,101 @@
+; RUN: rm -rf %t
+; RUN: split-file %s %t
+; RUN: llvm-ctxprof-util fromJSON --input=%t/profile.json --output=%t/profile.ctxprofdata
+
+; RUN: opt -passes='module-inline,print<ctx-prof-analysis>' %t/module.ll -S \
+; RUN:   -use-ctx-profile=%t/profile.ctxprofdata -ctx-profile-printer-level=json \
+; RUN:   -o - 2> %t/profile-final.txt | FileCheck %s
+; RUN: %python %S/json_equals.py %t/profile-final.txt %t/expected.json
+
+; CHECK-LABEL: @entrypoint
----------------
teresajohnson wrote:

some comments noting what we are looking for would be good

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


More information about the llvm-commits mailing list