[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.4.4 Simple Convex Hull -sh <boolean>
-sh <boolean>
: this option enables (boolean=1
)
or forbids (boolean=0
) the use of an overapproximation
of the convex hull that may be easier to compute
(especially in the isl backend) and that may result in
simpler bounds.
This option works only for generated code without
code duplication (it means, you have to tune -f
and
-l
options first to generate only a loop nest with internal
guards). For instance, with the input file test/union.cloog
, a user
can generate different pseudo-codes as shown below.
Default value is 0.
/* Generated using test/union.cloog and option -f -1 -l 2 -override */ for (i=0;i<=11;i++) { for (j=max(0,5*i-50);j<=min(15,5*i+10);j++) { if ((i <= 10) && (j <= 10)) { S1 ; } if ((i >= 1) && (j >= 5)) { S2 ; } } }
/* Generated using the same input file but option -sh 1 -f -1 -l 2 -override */ for (i=0;i<=11;i++) { for (j=0;j<=15;j++) { if ((i <= 10) && (j <= 10)) { S1 ; } if ((i >= 1) && (j >= 5)) { S2 ; } } }
This document was generated on August 20, 2013 using texi2html 5.0.