[FFmpeg-devel] [RFC] Disable gcc auto-vectorisation

Jason Garrett-Glaser darkshikari
Tue Jul 14 01:00:10 CEST 2009


2009/7/13 M?ns Rullg?rd <mans at mansr.com>:
> Since gcc 4.3, the auto-vectoriser (-ftree-vectorize) has been enabled
> at -O3 optimisation level. ?This vectoriser is, mildly put, useless.
> When it doesn't produce outright broken code, it is a gamble whether
> the result is any faster whatsoever, and we have seen cases where it
> introduced a significant slowdown.
>
> My proposal is to disable this misfeature by adding
> -fno-tree-vectorize to the compiler flags when using gcc.
>
> Does anyone have a good reason for not doing this?

The only reason I can imagine to not do this is that it makes GCC look
less bad on default ffmpeg builds, giving us less to make fun of.

Dark Shikari



More information about the ffmpeg-devel mailing list