The Intel
-opt_report generates optimizations report and
places it in a file specified in
-opt_report_filefilename
. If -opt_report_file is not specified, -opt_report directs the report to stderr.
The default is OFF: no reports are generated.
-opt_report_filefilename generates optimizations report and directs it to a file specified in filename.
-opt_report_level{min|med|max} specifies the detail level of the optimizations report.
The min argument provides the
minimal summary and the max
the full report. The default is
-opt_report_levelmin.
-opt_report_routineroutine_substring generates reports from all routines with names containing the substring as part of their name. If not specified, reports from all routines are generated. The default is to generate reports for all routines being compiled.
The compiler can generate reports for an optimizer you specify in the
phase argument of the
-opt_report_phasephase
option.
The option can be used multiple times on the same command line to generate reports for multiple optimizers.
Currently, the following optimizer reports are supported:
Optimizer Logical Name |
Optimizer Full Name |
ipo |
Interprocedural Optimizer |
hlo |
High Level Optimizer |
ilo |
Intermediate Language Scalar Optimizer |
ecg |
Electron Code Generator |
omp |
Open MP |
all |
All optimizers |
When one of the above logical names for optimizers are specified all reports from that optimizer will be generated. For example, -opt_report_phaseipo and -opt_report_phaseecg generate reports from the interprocedural optimizer and the code generator.
Each of the optimizers can potentially have specific optimizations within them. Each of these optimizations are prefixed with one of the optimizer logical names. For example:
Optimizer_optimization |
Full Name |
ipo_inline |
Interprocedural Optimizer, inline expansion of functions |
ipo_constant_propagation |
Interprocedural Optimizer, constant propagation |
ipo_function_reoder |
Interprocedural Optimizer, function reorder |
ilo_constant_propagation |
Intermediate Language Scalar Optimizer, constant propagation |
ilo_copy_propagation |
Intermediate Language Scalar Optimizer, copy propagation |
ecg_software_pipelining |
Electron Code Generator, software pipelining |
The entire name for a particular optimization within an optimizer need not be specified in full, just a few characters is sufficient. All optimization reports that have a matching prefix with the specified optimizer are generated. For example, if -opt_report_phase ilo_co is specified, a report from both the constant propagation and the copy propagation are generated.
The -opt_report_help option lists the logical names of optimizers that are currently availble for report generation.