Intel® C++ Compiler 16.0 User and Reference Guide

nofusion

Prevents a loop from fusing with adjacent loops.

Syntax

#pragma nofusion

Arguments

None

Description

The nofusion pragma 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;
}