[clang-tools-extra] [compiler-rt] [clang] [PGO] Exposing PGO's Counter Reset and File Dumping APIs (PR #76471)

Qiongsi Wu via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 14:47:59 PST 2024


================
@@ -0,0 +1,38 @@
+// RUN: %clang_profgen %s --target=ppc64le-unknown-linux-gnu -S \
+// RUN:    -emit-llvm -o - | FileCheck %s --check-prefix=PROFGEN
+// RUN: %clang_profgen -o %t %s
+// RUN: env LLVM_PROFILE_FILE=%t.profraw %run %t
----------------
qiongsiwu wrote:

> Nevertheless, I wonder test coverage for %clang_pgogen should be added here as well.

Ah good catch! Thanks! I had missed that. The `%clang_pgogen` tests are added.

> Good point, can we drop the `--target=ppc64le-unknown-linux-gnu` flag? It shouldn't make a difference to what we want to test here.

Sounds good! The test is revised to avoid any target specific flags.

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


More information about the cfe-commits mailing list