[clang] [llvm] [InstrPGO] Instrument sampling profile based cold function (PR #109837)
Ellis Hoag via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 1 16:13:01 PDT 2024
================
@@ -0,0 +1,12 @@
+// Test -fprofile-generate-cold-function-coverage
+// RUN: %clang -O2 -fprofile-generate-cold-function-coverage=/xxx/yyy/ -fprofile-sample-accurate -fprofile-sample-use=%S/Inputs/pgo-cold-func.prof -S -emit-llvm -o - %s | FileCheck %s
----------------
ellishg wrote:
You can use `split-file` to avoid needing to checkin a separate test file in `Inputs/`.
https://llvm.org/docs/TestingGuide.html#extra-files
https://github.com/llvm/llvm-project/pull/109837
More information about the cfe-commits
mailing list