Sun Studio 12 Update 1: C++ User's Guide

A.2.122 -xdepend=[yes|no]

(SPARC) Analyzes loops for inter-iteration data dependencies and does loop restructuring, including loop interchange, loop fusion, scalar replacement, and eliminationi of “dead array” assignments.

On SPARC, -xdepend defaults to —xdepend=on for all optimization levels -xO3 and above. Otherwise —xdepend defaults to —xdepend=off. Specifying an explicit setting of -xdepend overrides any default setting.

On x86, —xdepend defaults to —xdepend=off. When —xdepend is specified and optimization is not at —xO3 or higher, the compiler raises the optmization to —xO3 and issues a warning.

Specifying -xdepend without an argument is equivalent to —xdepend=yes.

Dependency analysis is included in -xautopar. Dependency analysis is done at compile time.

Dependency analysis may help on single-processor systems. However, if you uese -xdepend on single-processor systems, you should not also specify -xautopar , because the -xdepend optimization will be done for a multiprocessor system.

See Also: -xprefetch_auto_type