Intel® C++ Compiler XE 13.1 User and Reference Guides

nofusion

Prevents a loop from fusing with adjacent loops.

Syntax

#pragma nofusion

Description

#pragma nofusion lets you fine tune your program on a loop-by-loop basis. This pragma should be placed immediately before the loop that should not be fused.

Example:

#define SIZE 1024

int sub ()
{
int B[SIZE], A[SIZE];
           
  int i, j, k=0;
  for(j=0; j<SIZE; j++)
    A[j] = A[j] + B[j];
#pragma nofusion
  for (i=0; i<SIZE; i++)
    k += A[i] + 1;
  
  return k;
}

Submit feedback on this help topic