Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/tree-ssa/scev-4.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fgimple -fdump-tree-ivopts" } */ typedef struct { int x; int y; } S; int *a_p; S a[1000]; void __GIMPLE (ssa, startwith ("loop")) f (int k) { int i; int * _1; __BB(2): i_5 = k_4(D); if (i_5 <= 999) goto __BB4; else goto __BB3; __BB(3): return; __BB(4): goto __BB5; __BB(5): i_12 = __PHI (__BB6: i_9, __BB4: i_5); _1 = &a[i_12].y; a_p = _1; __MEM <S[1000]> ((int *)&a)[i_12].y = 100; i_9 = i_5 + i_12; if (i_9 <= 999) goto __BB6; else goto __BB3; __BB(6): ; goto __BB5; } /* { dg-final { scan-tree-dump-times "&a" 1 "ivopts" } } */