[clang] [flang] [llvm] [flang][cmake][perf-training] Optimize flang with PGO and BOLT (PR #198863)

Paul Osmialowski via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 8 10:59:26 PDT 2026


================
@@ -1,6 +1,6 @@
 ! RUN: %flang -S -emit-llvm -o - %s | FileCheck %s
 ! Test communication of COMPILER_OPTIONS from flang to flang -fc1.
-! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang{{(\.exe)?}} {{.*}}-S -emit-llvm -o - {{.*}}compiler-options.f90"
+! CHECK: [[OPTSVAR:@_QQclX[0-9a-f]+]] = {{[a-z]+}} constant [[[OPTSLEN:[0-9]+]] x i8] c"{{.*}}flang{{(-bolt\.inst)?}}{{(\.exe)?}} {{.*}}-S -emit-llvm -o - {{.*}}compiler-options.f90"
----------------
pawosm-arm wrote:

Ah yes, now I remember. This is not a change driven by the driver code! Similarly to clang where instrumented binaries are being renamed, same thing happens to flang, hence this test case got confused when this test suite is being reused as the training set for optimizing flang.

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


More information about the cfe-commits mailing list