Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/ldist-14.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fno-strict-aliasing -ftree-loop-distribution -fdump-tree-ldist-details" } */ struct desc { int i; void * __restrict__ data; int j; } a, b; float foo (int n) { int i; float * __restrict__ x, * __restrict__ y, tmp = 0.0; x = (float * __restrict__)a.data; y = (float * __restrict__)b.data; for (i = 0; i < n; ++i) { x[i] = 0.0; tmp += y[i]; } return tmp; } /* Distributing the loop doesn't expose more parallelism. */ /* { dg-final { scan-tree-dump-not "Loop 1 distributed: split to 2 loops" "ldist" } } */