This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/34011] Memory load is not eliminated from tight vectorized loop
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Sep 2009 19:25:14 -0000
- Subject: [Bug rtl-optimization/34011] Memory load is not eliminated from tight vectorized loop
- References: <bug-34011-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from ubizjak at gmail dot com 2009-09-12 19:25 -------
The testcase does not verctorize anymore, even in the modified form:
--cut here--
const int srcshift;
void good (int *restrict srcdata, int *restrict dstdata)
{
int i;
for (i = 0; i < 256; i++)
dstdata[i] = srcdata[i] << srcshift;
}
void bad (int *restrict srcdata, int *restrict dstdata)
{
int i;
for (i = 0; i < 256; i++)
{
dstdata[i] |= srcdata[i] << srcshift;
}
}
--cut here--
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34011