Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 684 Bytes

auto-vectorization-clang.md

File metadata and controls

27 lines (16 loc) · 684 Bytes

Auto Vectorization

From: LLVM{: .button}

  • 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.

See Also

References