This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Detect if a code is candidate for vectorization ( AVX2 )
- From: Victor Rodriguez <vm dot rod25 at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Thu, 3 Sep 2015 11:00:53 -0500
- Subject: Detect if a code is candidate for vectorization ( AVX2 )
- Authentication-results: sourceware.org; auth=none
Hi
I am trying to find if a code has functions candidates to AVX2
optimizations . I am running the following build commands but with no
luck:
gcc main.c test.c -o main -ftree-vectorizer-verbose=2
gcc main.c test.c -o main -fopt-info-vec=6
gcc main.c test.c -o main -fdump-tree-vect-details
The only one that shows me something
gcc -O2 -ftree-vectorizer-verbose=2 -fopt-info-vec-missed main.c test.c -o main
But i have to run both -ftree-vectorizer-verbose=2 and -fopt-info-vec-missed
I am trying to understand more or if I am doing something wrong
Best Regards
Victor Rodriguez