2 ms·
You study autovectorizers, then you enable autovectorization warning flags, and carefully read your compilers output. If the compiler says autovectorization fa
by dragontamer 4y ago
You study autovectorizers, then you enable autovectorization warning flags, and carefully read your compilers output.
If the compiler says autovectorization failed, you rewrite the code until the autovectorizer works.
https://docs.microsoft.com/en-us/cpp/build/reference/qvec-report-auto-vectorizer-reporting-level?view=msvc-170 https://docs.microsoft.com/en-us/cpp/build/reference/qvec-re...
- janwas 4y agohm, I have had limited success with such nudging - it's certainly not a programming model with a predictable outcome. And as soon as the compiler or its flags are updated, maybe the situation changes.