The /hoist_loop_invariants
qualifier
controls code hoisting of loop-invariant expressions from
loops. This qualifier is independent of the qualifiers,
/each_invariant_if_growth
and /max_
invariant_if_growth
, that control the floating
of invariant-IFs out of loops. The possible settings for
/hoist_loop_invariants
are the following:
0
- Turns off the hoisting of invariant code
from loops.
1
- Floats all loop invariant expressions not
under the control of an IF-structure within the given loop nest.
This is the default setting.
If there is invariant code that is protected by an IF-structure and the hoisting value is less than 3, then KAP generates the following message in the output listing:
An invariant expression not hoisted because /hoist_loop_invariants < 3