[clang-tools-extra] [compiler-rt] [llvm] [clang] [PGO][GlobalValue][LTO]In GlobalValues::getGlobalIdentifier, use semicolon as delimiter for local-linkage varibles. (PR #74008)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 16:49:00 PST 2023


================
@@ -1,39 +1,45 @@
-; Do setup work for all below tests: generate bitcode and combined index
-; RUN: opt -module-summary %s -o %t.bc
-; RUN: opt -module-summary %p/Inputs/thinlto_indirect_call_promotion.ll -o %t2.bc
+; The raw profiles and reduced IR inputs are generated from Inputs/update_icall_promotion_inputs.sh
+
+; Do setup work for all below tests: annotate value profiles, generate bitcode and combined index.
+; Explicitly turn off ICP pass in Inputs/thinlto_indirect_call_promotion.ll.
+; This way ICP happens in %t.bc after _Z11global_funcv and two indirect callees are imported.
+; RUN: opt -passes=pgo-instr-use -pgo-test-profile-file=%p/Inputs/thinlto_icall_prom.profdata -module-summary %s -o %t.bc
----------------
ellishg wrote:

I think it's a bit cleaner to use [`split-file`](https://llvm.org/docs/TestingGuide.html#extra-files) and have all the `.ll` code in this file instead of putting different files in `Inputs/`. You can even have the `.proftext` file here if that works.

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


More information about the llvm-commits mailing list