[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
2.4.9 Loop Strides -strides <boolean>
-strides <boolean>
: this options allows (boolean=1
) to
handle non-unit strides for loop increments. This can remove a lot of
guards and make the generated code more efficient. Default value is 0.
/* Generated using a given input file and option -strides 0 */ for (i=1;i<=n;i++) { if (i%2 == 0) { S1(j = i/2) ; } if (i%4 == 0) { S2(j = i/4) ; } }
/* Generated using the same input file but option -strides 1 */ for (i=2;i<=n;i+=2) { S1(j = i/2) ; if (i%4 == 0) { S2(j = i/4) ; } }
This document was generated on August 20, 2013 using texi2html 5.0.