Developer Guide and Reference

ID 767253
Date 10/31/2024
Public
Document Table of Contents

qopt-report-phase, Qopt-report-phase

Specifies one or more optimizer phases for which optimization reports are generated.

Syntax

Linux:

-qopt-report-phase[=list]

Windows:

/Qopt-report-phase[:list]

Arguments

list

(Optional) Specifies one or more phases to generate reports for. If you specify more than one phase, they must be separated with commas. The values you can specify are:

cg

The phase for code generation

ipo

The phase for Interprocedural Optimization

loop

The phase for loop nest optimization

openmp

The phase for OpenMP*

pgo

The phase for Profile Guided optimization

vec

The phase for vectorization

all

All optimizer phases. This is the default if you do not specify list.

Default

OFF

No optimization report is generated.

Description

This option specifies one or more optimizer phases for which optimization reports are generated.

For certain phases, you also need to specify other options:

  • If you specify phase cg, you must also specify option O1, O2 (default), or O3.

  • If you specify phase loop, you must also specify option O2 (default) or O3.

  • If you specify phase openmp, you must also specify option fiopenmp (or /Qiopenmp) or option [q or Q]openmp.

  • If you specify phase pgo, you must also specify Clang option -fprofile-use or -fprofile-sample-use.

    For more information about Clang options, see the Clang documentation.

  • If you specify phase vec, you must also specify option O2 (default) or O3.

If you use this option, you do not have to specify option [q or Q]opt-report.

However, if you want to get more details for each phase, specify option [q or Q]opt-report=n along with this option and indicate the level of detail you want by specifying an appropriate value for n.

When optimization reporting is enabled, the default is -qopt-report-phase=all (Linux*) or /Qopt-report-phase:all (Windows*).

IDE Equivalent

None

Alternate Options

None

See Also