Enables the compiler and linker to use information for Hardware Profile-Guided Optimization (HWPGO). This is an experimental feature.
Linux: | -fprofile-sample-use=profile-file -fno-profile-sample-use |
Windows: | /fprofile-sample-use:profile-file /fno-profile-sample-use |
profile-file |
Is the profile data file generated by llvm-profgen. |
fno-profile-sample-use |
Profiling information is not used during optimization. |
This option enables the compiler and linker to use information for Hardware Profile-Guided Optimization (HWPGO). It is an experimental feature.
On Windows, do not specify option /Ob0 or /Ob1 with option /fprofile-sample-use or /fprofile-sample-generate because it will disable inlining.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
None