blob: d6ceb208258cdec32da17f6519c10c10b6a6a066 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-sccp-scev" } */
struct struct_t
{
int* data;
};
void foo (struct struct_t* sp, int start, int end)
{
int i;
for (i = 1000; i+start > end; i--)
sp->data[i+start] = 0;
}
/* { dg-final { scan-tree-dump-times "Simplify PEELED_CHREC into POLYNOMIAL_CHREC" 1 "sccp" } } */
/* { dg-final { cleanup-tree-dump "sccp" } } */
|