Intel® C++ Compiler Classic Developer Guide and Reference

ID 767249
Date 7/13/2023
Public
Document Table of Contents

scalar-rep, Qscalar-rep

Enables or disables the scalar replacement optimization done by the compiler as part of loop transformations.

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

See Also