https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99414

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|s235 benchmark of TSVC is   |s235 and s233 benchmarks of
                   |vectorized better by icc    |TSVC is vectorized better
                   |than gcc (loop interchange) |by icc than gcc (loop
                   |                            |interchange)

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
another testcase

typedef float real_t;

#define iterations 100000
#define LEN_1D 32000
#define LEN_2D 256
// array definitions

real_t
aa[LEN_2D][LEN_2D],bb[LEN_2D][LEN_2D],cc[LEN_2D][LEN_2D],tt[LEN_2D][LEN_2D];

int main(struct args_t * func_args)
{
//    loop interchange
//    interchanging with one of two inner loops

    for (int nl = 0; nl < 100*(iterations/LEN_2D); nl++) {
        for (int i = 1; i < LEN_2D; i++) {
            for (int j = 1; j < LEN_2D; j++) {
                aa[j][i] = aa[j-1][i] + cc[j][i];
            }
            for (int j = 1; j < LEN_2D; j++) {
                bb[j][i] = bb[j][i-1] + cc[j][i];
            }
        }
        dummy();
    }

   return aa[0][0];
}

Reply via email to