# fsycl-early-optimizations

Enables LLVM-related optimizations before SPIR-V* generation. This content is specific to DPC++.

## 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.

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

## IDE Equivalent

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

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

## Alternate Options

None

Parent topic: Offload Compilation Options, OpenMP* Options, and Parallel Processing Options