Visible to Intel only — GUID: GUID-26473F66-9790-4977-9AE9-66D71DB6933A
Visible to Intel only — GUID: GUID-26473F66-9790-4977-9AE9-66D71DB6933A
flto
Enables whole program link time optimization (LTO). This feature is only available for ifx.
Syntax
Linux: |
-flto[=arg] -fno-lto |
Windows: |
-flto[=arg] -fno-lto |
Arguments
arg |
Is the link time optimization to perform. Possible values are:
|
Default
-fno-lto |
No link time optimization is performed. |
Description
This option enables whole program link time optimization (LTO).
If you specify option -fno-lto, it disables whole program link time optimization.
If you specify -flto or -flto=full, compilation time may increase because of the additional optimizations.
Linux:
You can specify option -ipo as an alias for -flto. -ipo is equivalent to -flto.
If you want to specify a non-default linker, you must also specify option fuse-ld. Otherwise, the default linker ld will be used.
Windows:
You can specify /Qipo as an alias for -flto.
/Qipo is the same as -flto during the compile step. During the link step, the compiler automatically adds -fuse-ld=lld so the proper linker (lld) will be picked up to perform the expected optimizations. This automatic inclusion is only performed for /Qipo; it is not performed for -flto on Windows.
Files compiled with option -flto should also be linked with the same option, or the link step may fail.
This option only applies to host compilation. When offloading is enabled, it does not impact device-specific compilation.
IDE Equivalent
Alternate Options
None