Specifies that a particular loop should never be vectorized.
novectorpragma specifies that a particular loop should never be vectorized, even if it is legal to do so. When avoiding vectorization of a loop is desirable (when vectorization results in a performance regression rather than improvement), the
novectorpragma can be used in the source text to disable vectorization of a loop. This behavior is in contrast to the
Example: Using the
When the trip count (
ub - lb) is too low to make vectorization worthwhile, you can use the
novectorpragma to tell the compiler not to vectorize, even if the loop is considered vectorizable.