[compiler-rt] [llvm] [AIX] PGO codegen changes for function-sections. (PR #139761)
Wael Yehia via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 07:17:20 PDT 2025
================
@@ -0,0 +1,47 @@
+// RUN: split-file %s %t
+// RUN: cd %t
+// RUN: %clang_pgogen -ffunction-sections main.c -c -o main.o
+// RUN: %clang_pgogen -ffunction-sections needs_gc.c -c -o needs_gc.o
+// RUN: %clang_pgogen main.o needs_gc.o -o needs_gc.out
+// RUN: env LLVM_PROFILE_FILE=needs_gc.profraw %run ./needs_gc.out > /dev/null
+// RUN: llvm-profdata show --all-functions needs_gc.profraw | FileCheck %s
+
+// CHECK-DAG: main
+// CHECK-DAG: baz
+// CHECK-DAG: get_message
+
----------------
w2yehia wrote:
can we reduce vertical spacing: use single space or no space.
https://github.com/llvm/llvm-project/pull/139761
More information about the llvm-commits
mailing list