Auto Vectorization
Auto Vectorization
From: LLVM
ffast-math
- Float reduction needs this flag to be turned on
Hinting the compiler to auto vectorize
#pragma clang loop vectorize(enable)
Loop Vectorization Report
-Rpass=loop-vectorize identifies loops that were successfully vectorized.
-Rpass-missed=loop-vectorize identifies loops that failed vectorization and indicates if vectorization was specified.
-Rpass-analysis=loop-vectorize identifies the statements that caused vectorization to fail.