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
PR testsuite/52641
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-11.c
blob
26c47b1830ba52aaf7363a9c9521f939c16266a5
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
double
cos
(
double
);
4
double
f
(
double
a
)
5
{
6
double
b
;
7
double
c
,
d
;
8
if
(
a
<
2.0
)
9
{
10
c
=
cos
(
a
);
11
}
12
else
13
{
14
c
=
1.0
;
15
}
16
d
=
cos
(
a
);
17
return
d
+
c
;
18
}
19
20
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre"} } */
21
/* { dg-final { cleanup-tree-dump "pre" } } */