This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/19624] PRE pessimizes ivopts
- From: "rguenth at tat dot physik dot uni-tuebingen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 Jan 2005 14:52:35 -0000
- Subject: [Bug tree-optimization/19624] PRE pessimizes ivopts
- References: <20050125144432.19624.rguenth@tat.physik.uni-tuebingen.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rguenth at tat dot physik dot uni-tuebingen dot de 2005-01-25 14:52 -------
Oh, in principle this should compile to roughly the same as
void c_test(double *a, double *b, int ei, int ej, int stridea, int strideb)
{
for (int j=0; j<ej; ++j)
for (int i=0; i<ei; ++i)
a[i+j*stridea] = 0.5*(b[i+1+j*strideb] + b[i+(j+1)*strideb]);
}
... in principle (for the above -fno-tree-pre helps, too).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19624