This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/50789] Gather vectorization
- From: "andrey.turetskiy at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 17 Apr 2013 08:31:29 +0000
- Subject: [Bug tree-optimization/50789] Gather vectorization
- Auto-submitted: auto-generated
- References: <bug-50789-4 at http dot gcc dot gnu dot org/bugzilla/>
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.