Full Loop Unrolling
i = 0;
while (i < n) {
b[i] =
a[n-i-1];
i++;
}
If n is static and has the value 3, the specializer produces:
b[0] = a[2];
b[1] = a[1];
b[2] = a[0];
Previous slide
Next slide
Back to first slide
View graphic version