Pass name cleanups
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-prof / update-loopch.c
blob2bce8a2e5ffaca4dd4c080a5d5c08af35febb781
1 /* { dg-options "-O2 -fdump-ipa-profile-blocks -fdump-tree-optimized-blocks" } */
2 int max = 33333;
3 int a[8];
4 int
5 main ()
7 int i;
8 for (i = 0; i < max; i++)
10 a[i % 8]++;
12 return 0;
14 /* Loop header copying will peel away the initial conditional, so the loop body
15 is once reached directly from entry point of function, rest via loopback
16 edge. */
17 /* { dg-final-use { scan-ipa-dump "count:33333" "profile"} } */
18 /* { dg-final-use { scan-tree-dump "count:33332" "optimized"} } */
19 /* { dg-final-use { scan-tree-dump-not "Invalid sum" "optimized"} } */
20 /* { dg-final-use { cleanup-ipa-dump "profile" } } */
21 /* { dg-final-use { cleanup-tree-dump "optimized" } } */