repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Let tree_single_nonzero_warnv_p use range information
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
predict-4.c
blob
2ac2ec5721d2a00a9ea886b0076111338e083781
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-profile_estimate" } */
3
4
extern
int
global
;
5
6
int
bar
(
int
);
7
8
void
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 of edge\[^:\]*: 50.0%" "profile_estimate"} } */