Is an optional vectorization or optimizer clause. It can be one or more of the following:
ALIGNED | UNALIGNED
Specifies that all data is aligned or no data is aligned in a DO loop. These clauses override efficiency heuristics in the optimizer.
The ALIGNED clause instructs the compiler to assume all array references are aligned. As a result, misalignment properties analyzed from the program context, if any, will be discarded. The UNALIGNED clause is a hint to the compiler to avoid alignment optimizations; the compiler can still use available alignment information. These clauses disable advanced alignment optimizations of the compiler, such as dynamic or static loop peeling to make references aligned.
Be careful when using the ALIGNED clause. The compiler may choose to use aligned data movement instructions, instructions with memory operands that require alignment, and/or nontemporal stores. Such instructions will cause a runtime exception if some of the access patterns are actually unaligned.
ALWAYS [ASSERT]
Enables or disables vectorization of a DO loop.
The ALWAYS clause overrides efficiency heuristics of the vectorizer, but it only works if the loop can actually be vectorized. If the ASSERT keyword is added, the compiler will generate an error-level assertion message saying that the compiler efficiency heuristics indicate that the loop cannot be vectorized.
You should use the IVDEP directive to ignore assumed dependences.
DYNAMIC_ALIGN [(var)] | NODYNAMIC_ALIGN]
Enables or disables dynamic alignment optimization. Dynamic alignment is an optimization the compiler attempts to perform by default. It involves peeling iterations from the vector loop into a scalar loop before the vector loop so that the vector loop aligns with a particular memory reference.
If you specify (var) for DYNAMIC_ALIGN, you can indicate a scalar or array variable name on which to align. Specifying DYNAMIC_ALIGN, with or without (var) does not guarantee the optimization is performed; the compiler still uses heuristics to determine feasibility of the optimization. The NODYNAMIC_ALIGN clause disables the optimization for the loop.
G2S or NOG2S
Enables or disables the use of gather/scatter
instructions in the lexically next loop.
The G2S clause tells the optimizer to disable the
generation of gather/scatter and to transform gather/scatter into
unit-strided loads/stores plus a set of shuffles wherever
possible. The NOG2S clause tells the optimizer to enable the
generation of gather/scatter instructions and not to transform
gather/scatter into unit-strided loads/stores.
These clauses do not affect loops nested in the
specified loop.
MASK_READWRITE | NOMASK READWRITE
Enables or disables the generation of masked
load and store operations within conditional statements.
The MASK_READWRITE clause directs the compiler
to disable memory speculation, causing the generation of masked
load and store operations within conditional statements. The NOMASK_READWRITE clause directs the
compiler to enable memory speculation, causing the generation of
unmasked loads and stores within conditional statements.
TEMPORAL | NONTEMPORAL [(var1 [, var2]...)]
var |
Is an optional memory reference in the form of a variable name.
|
Controls how the "stores" of register contents to memory are performed (streaming versus non-streaming).
The TEMPORAL clause directs the compiler to use
temporal (that is, non-streaming) stores.
The NONTEMPORAL clause directs the compiler to use non-temporal (that
is, streaming) stores.
By default, the compiler automatically determines whether a
streaming store should be used for each variable.
Streaming stores may cause significant performance improvements
over non-streaming stores for large numbers on certain processors.
However, the misuse of streaming stores can significantly degrade
performance.
[NO]VECREMAINDER
VECTORLENGTH (n1 [, n2]…)
Tells the vectorizor which vector length/factor to use when generating the main vector loop. n is an integer power of 2; the value must be 2, 4, 8, 16, 32, or 64. If more than one value is specified, the vectorizor will choose one of the specified vector lengths based on a cost model decision.