Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove -ftree-vectorize from CFLAGS_GCC_OPTI #15

Open
Artoria2e5 opened this issue May 25, 2024 · 0 comments
Open

Remove -ftree-vectorize from CFLAGS_GCC_OPTI #15

Artoria2e5 opened this issue May 25, 2024 · 0 comments

Comments

@Artoria2e5
Copy link
Member

Both the loop and SLP vectorizers are now enabled by -O2 in gcc 12 -- that's the same as enabling -ftree-vectorize. As a result, there is probably no effect in specifying it explicitly. https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-ftree-loop-vectorize

This might also mean that we are starting to accidentally vectorize the retro arches, since instead of asking for -fno-tree-XXX-vectorize, we only took -ftree-vectorize out.

P.S. GCC 12 also introduced a "very-cheap" cost model so it does not over-vectorize at -O2. https://www.phoronix.com/news/GCC-12-Auto-Vec-O2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant