aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/update-cunroll.c
blob: 687fe1519d89d82b14be2083592d2b95f5f18aa2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-optimized-details-blocks" } */
int a[8];
int t()
{
	int i;
	for (i = 0; i < 3; i++)
		if (a[i])
			break;
	return i;
}
/* Currently duplicate_loop_body_to_header_edge gets wrong computation of prob_pass_wont_exit
   which assumes that the exit condition is last in the loop.  */
/* { dg-final { scan-tree-dump-times "Invalid sum" 0 "optimized" } } */