[flang-commits] [clang] [flang] [mlir] [Flang][Driver] Add support for '-fprofile-sample-use' option (PR #188697)

Kelvin Li via flang-commits flang-commits at lists.llvm.org
Wed Apr 1 13:50:57 PDT 2026


================
@@ -0,0 +1,38 @@
+! Test to check the working of option "-fprofile-sample-use".
+
+! RUN: %flang -### %s 2>&1 | FileCheck %s --check-prefix=NO-PROFILE-SAMPLE-USE
+! RUN: %flang -### -fprofile-sample-use=%S/Inputs/pgo-sample.prof %s 2>&1 | FileCheck %s --check-prefix=PROFILE-SAMPLE-USE
----------------
kkwli wrote:

Perhaps add `-target x86_64-unknown-linux` here otherwise this will fail on AIX.

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


More information about the flang-commits mailing list