This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc4.0 autovect-branch
- From: Daniel Berlin <dberlin at dberlin dot org>
- To: Villemin Ryusuke <ryu at buf dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 17 Dec 2004 12:04:00 -0500
- Subject: Re: gcc4.0 autovect-branch
- References: <200412171647.iBHGlp3d018377@srv1.pantin.buf.fr>
On Fri, 2004-12-17 at 17:47 +0100, Villemin Ryusuke wrote:
> Hi,
>
> I might be missing something simple and obvious, but I can't find out what :
> I picked up gcc4.0 in the autovect-branch, compiled it successfully but can t make it vectorize anything.
>
> int a[256], b[256], c[256];
>
> foo () {
> int i;
> for (i=0; i<256; i++){
> a[i] = b[i] + c[i];
> }
> }
>
> compiled with :
> "gcc -O2 -msse2 -ftree-vectorize -fdump-tree-vect-stats vecto.c".
>
> I expect to see a "LOOP VECTORIZED." (or at least "not vectorized:"), but I have nothing...
>
> Any ideas ?
>
I get
;; Function foo (foo)
loop at /home/dberlin/vect.c:7: if (ivtmp.23_38 < 64) goto <L5>; else
goto <L2>;
loop at /home/dberlin/vect.c:7: LOOP VECTORIZED.
in the dump file for the vectorizer.
What do you see?