------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-13 18:14 ------- Here is the reduced testcase for the problem, it has nothing to do with loops at all: void fcpy(float *restrict a, float *restrict b, float *restrict aa, float *restrict bb, unsigned n) { aa[n]=a[n]; bb[n]=b[n]; }
DOM is doing CSE of n*4 which is the right thing to do. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18463