manpagez: man pages & more
info cloog
Home | html | info | man
[ << ] [ < ] [ Up ] [ > ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.4.2 First Depth to Optimize Control -f <depth>

-f <depth>: this option sets the first loop depth to be optimized in control. The lower this depth, the less control overhead (and the longer the generated code). For instance, with some input file, a user can generate different pseudo-codes with different depth values as shown below. The minimum value for depth is 1, and the maximum value is -1 (infinity). Default value is 1.

/* Generated using a given input file and option -f 3 */
for (i=1;i<=N;i++) {
  for (j=1;j<=M;j++) {
    S1 ;
    if (j >= 10) {
      S2 ;
    }
  }
}
/* Generated using the same input file but option -f 2 */
for (i=1;i<=N;i++) {
  for (j=1;j<=9;j++) {
    S1 ;
  }
  for (j=10;j<=M;j++) {
    S1 ;
    S2 ;
  }
}

This document was generated on August 20, 2013 using texi2html 5.0.

© manpagez.com 2000-2024
Individual documents may contain additional copyright information.