Comment

Comment by TApplencourt

In HPC, we use `#pragma omp simd`.

`#pragma omp imd` should force the vectorization, but maybe not the hoisting, I don't know. Could be nice to check.

Edit:

Clang fail: ``` <source>:5:5: warning: loop not vectorized: the optimizer was unable to perform the requested transformation; the transformation might be disabled or specified as part of an unsupported transformation ordering [-Wpass-failed=transform-warning]

    #pragma omp simd 

    ^
1 warning generated. Compiler returned: 0 ```

But ICC seems happy with it.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton