Medium
Auto-vectorizing `a[i] = a[i - 1] * 2 + b[i]` at -O3
Compiled with -O3 and AVX2 enabled, does this loop get auto-vectorized into SIMD instructions?
main.cpp
for (int i = 1; i < n; ++i) {
a[i] = a[i - 1] * 2 + b[i];
}13 of 47 in Computer Architecture