Download QLogic PathScale™ Compiler Suite User Guide

Transcript
Q
7 – Tuning Options
Inter-Procedural Analysis (IPA)
-IPA:min hotness =N is applicable only under feedback compilation. A call
site’s invocation count must be at least N before it can be inlined by IPA. The default
is 10.
-INLINE:aggressive=ON increases the aggressiveness of the inlining, in which
more non-leaf and out-of-loop calls are inlined. Default is OFF.
We mentioned that leaf functions are good candidates to be inlined. These functions
do not contain calls that may inhibit various backend optimizations. To amplify the
effect of leaf functions, IPA provides two options that exploit its call-tree-based
inlining feature. This is based on the fact that a function that calls only leaf functions
can become a leaf function if all of its calls are inlined. This in turn can be applied
repeatedly up the call graph. In the description of the following two options, a function
is said to be at depth N if it is never more than N edges from a leaf node in the call
graph. A leaf function has depth 0.
-IPA:maxdepth=N causes IPA to inline all routines at depth N in the call graph
subject to space limitation.
-IPA:forcedepth=N causes IPA to inline all routines at depth N in the call graph
regardless of space limitation.
7.3.5
Cloning
There are two options for controlling cloning:
-IPA:multi_clone=N specifies the maximum number of clones that can be
created from a single function. The default is 0, which implies that cloning is turned
OFF by default.
-IPA:node_bloat=N specifies the maximum percentage growth in the number
of procedures relative to the original program that cloning can produce. The default
is 100.
7.3.6
Other IPA Tuning Options
The following are options un-related to inlining and cloning, but useful in tuning:
-IPA:common_pad_size=N specifies that common block padding should use pad
size of up to N bytes. The default value is 0, which specifies that the compiler will
determine the best padding size.
-IPA:linear=ON enables linearization of array references. When inlining Fortran
subroutines, IPA tries to map formal array parameters to the shape of the actual
parameters. The default is OFF, which means IPA will suppress the inlining if it
cannot do the mapping. Turning this option ON instructs IPA to still perform the
inlining but linearizes the array references. Such linearization may cause
performance problems, but the inlining may produce more performance gain.
1-02404-15
7-9