[llvm] [PGO] Instrument modules with at least a single function definition (PR #93421)

Mingming Liu via llvm-commits llvm-commits at lists.llvm.org
Tue May 28 23:12:14 PDT 2024


================
@@ -0,0 +1,5 @@
+; RUN: opt < %s -passes=pgo-instr-gen -S | FileCheck %s --implicit-check-not='__llvm_profile_raw_version'
----------------
minglotus-6 wrote:

With all above said, I _think_ it's possible for a module to have global variables (say `file.cc` defines a list of constants, if `file.h` is not suitable), but not that common for a module to have vtable definitions only.

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


More information about the llvm-commits mailing list