shortloop

Date:

02-06-2023

NAME

shortloop, shortloop128 - (Deprecated) Identify loops that execute with a minimum iteration count of 1 and a maximum iteration count of either 64 (shortloop) or 128 (shortloop128).

SYNOPSIS

#pragma _CRI shortloop
#pragma _CRI shortloop128
! DIR$ LOOP_INFO MIN_TRIPS(1) MAX_TRIPS(64)
! DIR$ LOOP_INFO MIN_TRIPS(1) MAX_TRIPS(128)

DESCRIPTION

Scope: Local

The shortloop compiler directive identifies loops that execute with a maximum iteration count of 64 and a minimum iteration count of 1. The shortloop128 compiler directive identifies loops that execute with a maximum iteration count of 128 and a minimum iteration count of 1. If the iteration count is outside the range for the directive, results are unpredictable. The compiler will diagnose misuse at compile time (when able) or at run time if option -hdir_check is specified.

The shortloop and shortloop128 directives are exactly equivalent to #pragma _CRI loop_info min_trips(1) max_trips(64) and #pragma _CRI loop_info min_trips(1) max_trips(128), respectively. The loop_info pragma is the preferred form.

EXAMPLES

Example 1: Using the shortloop directive

#pragma _CRI shortloop
for (i = 0; i < n; i++) {  /* 0 < = n < = 63 */
    a[i] = b[i] + c[i];
}

Example 2: Using the shortloop128 directive

#pragma _CRI shortloop128
for (i = 0; i < n; i++) { /* 0 < = n < = 127 */
    a[i] = b[i] + c[i];
}

SEE ALSO

intro_directives(1)