Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/predict-9.c @ 118:fd00160c1b76
ifdef TARGET_64BIT
author | mir3636 |
---|---|
date | Tue, 27 Feb 2018 15:01:35 +0900 |
parents | 04ced10e8804 |
children | 84e7813d76e9 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-options "-O2 -fdisable-tree-evrp -fdump-tree-profile_estimate" } */ extern int global; extern int global2; extern int global3; void foo (int base) { int i; while (global < 10) { if(global || global2 || global3) return; for (i = base; i < 10; i++) if (i > 123) return; } } /* { dg-final { scan-tree-dump-times "first match heuristics: 3.0%" 3 "profile_estimate"} } */ /* { dg-final { scan-tree-dump-times "first match heuristics: 7.5%" 1 "profile_estimate"} } */