Auto Vectorization

Back

Vectorizing float operations

  • funsafe-math-optimizations - Float reduction needs this flag to be turned on

Flags to promote auto vectorization

  1. -ftree-loop-distribution - Performs loop distribution

Auto Vectorization Report

Enable vectorization with -ftree-vectorize

add verbose flags -ftree-vectorizer-verbose=6 -fopt-info-vec-missed

References