Intel® oneAPI DPC++/C++ Compiler
Developer Guide and Reference
A newer version of this document is available. Customers should click here to go to the newest version.
fprofile-sample-use
Enables the compiler and linker to use information for Hardware Profile-Guided Optimization (HWPGO). This is an experimental feature.
Syntax
| Linux: | -fprofile-sample-use=profile-file -fno-profile-sample-use | 
| Windows: | /fprofile-sample-use:profile-file /fno-profile-sample-use | 
Arguments
| profile-file | Is the profile data file generated by llvm-profgen. | 
Default
| fno-profile-sample-use | Profiling information is not used during optimization. | 
Description
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.
IDE Equivalent
Alternate Options
None