Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/slsr-41.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
/* Verify straight-line strength reduction in using alternative base expr to record and look for the potential candidate. */ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-slsr-details" } */ typedef int arr_2[50][50]; void foo (arr_2 a2, int v1) { int i, j; i = v1 + 5; j = i; a2 [i-10] [j] = 2; a2 [i] [j++] = i; a2 [i+20] [j++] = i; a2 [i-3] [i-1] += 1; return; } /* { dg-final { scan-tree-dump-times "Replacing reference: " 5 "slsr" } } */