Re: gcc4.0 autovect-branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Dec 17, 2004, at 8:47 AM, 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".

Compiler is able to vectorize this loop on powerpc-darwin.

I expect to see a "LOOP VECTORIZED." (or at least "not vectorized:"), but I have nothing...

Do you see vecto.c.t53.vect ? What does it say?
If you do not see vecto.c.t53.vect then somehow vectorizer is not triggered.


-
Devang


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux