This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/50789] Gather vectorization


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50789

Andrey Turetskiy <andrey.turetskiy at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrey.turetskiy at gmail
                   |                            |dot com

--- Comment #11 from Andrey Turetskiy <andrey.turetskiy at gmail dot com> 2013-04-17 08:31:29 UTC ---
It looks like gathers can be used for vectorization in cases like:

#define N 1024

float x[4*N], y[N];

void foo ()
{
  int i;
  for (i = 0; i < N; i++)
    y[i] = x[179 + 3*i];
}

Now this code isn't vectorized.
In addition there are a lot of such exampes in SPECS 2006. Vectorization with
gathers can give noticeable gain.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]