Intel® oneAPI DPC++/C++ Compiler Developer Guide and Reference

ID 767253
Date 11/07/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

fsycl-early-optimizations

Enables LLVM-related optimizations before SPIR-V* generation.

Syntax

Linux:

-fsycl-early-optimizations

-fno-sycl-early-optimizations

Windows:

-fsycl-early-optimizations

-fno-sycl-early-optimizations

Arguments

None

Default

ON

LLVM-related optimizations are enabled before SPIR-V* generation.

Description

This option enables LLVM-related optimizations before SPIR-V* generation. These optimizations can improve performance.

NOTE:

When using this option, you must also specify option -fsycl.

If you specify -fno-sycl-early-optimizations, these optimizations are disabled.

For information about available SYCL drivers, refer to Invoke the Compiler.

NOTE:

When SYCL offloading is enabled, this option only applies to device-specific compilation.

IDE Equivalent

Visual Studio: DPC++ > Optimization > Enable/Disable DPC++ early optimization before generation of SPIR-V code

Eclipse: Intel(R) oneAPI DPC++ Compiler > Optimization > Enable/Disable DPC++ early optimization before generation of SPIR-V code

Alternate Options

None