This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42617] TARGET_MEM_REF and plain INDIRECT_REFs are not handled by the RTL oracle
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Jan 2010 15:24:10 -0000
- Subject: [Bug rtl-optimization/42617] TARGET_MEM_REF and plain INDIRECT_REFs are not handled by the RTL oracle
- References: <bug-42617-8137@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-01-22 15:24 -------
With these patches I get for
void foo(int * __restrict__ a, int * __restrict__ b, int * __restrict__ c,
int N)
{
int i;
for (i = 0; i < N; ++i)
a[i] = b[i] + c[i];
}
and -O2 -funroll-all-loops all stores scheduled to the bottom of the loop
and all adds to the top of the loop.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42617