# scalar-rep, Qscalar-rep

Enables or disables the scalar replacement optimization done by the compiler as part of loop transformations. This feature is only available for ifort.

## Syntax

Linux: | -scalar-rep -no-scalar-rep

macOS: | -scalar-rep -no-scalar-rep

Windows: | /Qscalar-rep /Qscalar-rep-

## Arguments

None

## Default

-scalar-rep or /Qscalar-rep | Scalar replacement is performed during loop transformation at optimization levels of O2 and above.

## Description

This option enables or disables the scalar replacement optimization done by the compiler as part of loop transformations. This option takes effect only if you specify an optimization level of O2 or higher.

## IDE Equivalent

None

## Alternate Options

None

Parent topic: Advanced Optimization Options

## See Also

O compiler option