2017-12-05 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / predict-9.c
blobec4675195042ea82abc95dff6081adac90f6844d
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-profile_estimate" } */
4 extern int global;
5 extern int global2;
6 extern int global3;
8 void foo (int base)
10 int i;
11 while (global < 10)
13 if(global || global2 || global3)
14 return;
16 for (i = base; i < 10; i++)
17 if (i > 123)
18 return;
22 /* { dg-final { scan-tree-dump-times "first match heuristics: 3.0%" 3 "profile_estimate"} } */
23 /* { dg-final { scan-tree-dump-times "first match heuristics: 7.5%" 1 "profile_estimate"} } */