Medium
A loop with a runtime trip count
n is a runtime parameter, unknown at compile time. Does that alone stop the compiler from vectorizing this loop at -O3?
main.cpp
void scale(float* __restrict a, float factor, int n) {
for (int i = 0; i < n; ++i) {
a[i] *= factor;
}
}12 of 44 in Compilers