4 ms·
Do you have a code example of the constexpr operator[] you mention? I am having a hard time following it. MSVC has an auto-vectorizer, with /Qvec-report:2 it w
by tboerstad 7y ago
Do you have a code example of the constexpr operator[] you mention? I am having a hard time following it.
MSVC has an auto-vectorizer, with /Qvec-report:2 it will give you information on why it doesn't auto-vectorize a specific loop.
It's well documented, though I'm not particularly fond of it.
Here is an example where the auto-vectorizer works:
https://godbolt.org/z/crTLUY https://godbolt.org/z/crTLUY
Here is the documentation:
https://docs.microsoft.com/en-us/cpp/parallel/auto-parallelization-and-auto-vectorization?view=vs-2019 https://docs.microsoft.com/en-us/cpp/parallel/auto-paralleli...