Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/ldist-25.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O3 -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */ #define k 1335 double a[k][k]; double b[k][k]; double c[k][k]; int x; int y; void foo (void) { for (int j = 0; j < x; j++) { for (int i = 0; i < y; i++) { c[j][i] = b[j][i] - a[j][i]; a[j][i] = b[j][i]; } } } /* { dg-final { scan-tree-dump "Loop . not distributed" "ldist" } } */