Working on FP SCEV Analysis

Elena,

Is this the sort of thing you are hoping to accomplish

You are given

float f = 0.01f;

for (int i = 1; i < 100; i += 1, f += 0.01f) <== B

And want to vectorize into something like this

Vector4xfloat V_f = {0.01, 0.02, 0.03, 0.04};

For (int i=1; i<100; i+=4) {

V_f += {0.01, 0.01, 0.01, 0.01};

}

If so, I don’t see what all the fuss is about

–Peter Lawrence