1 /* { dg-do compile } */ 2 /* { dg-options "-O2 -fdump-tree-profile_estimate" } */ 3 4 extern int global; 5 6 int bar(int); 7 foo(int bound)8void foo (int bound) 9 { 10 int i, ret = 0; 11 for (i = 0; i < 10; i++) 12 { 13 if (i < 5) 14 global += bar (i); 15 } 16 } 17 18 /* { dg-final { scan-tree-dump "loop iv compare heuristics: 50.0%" "profile_estimate"} } */ 19 /* { dg-final { cleanup-tree-dump "profile_estimate" } } */ 20