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 tree-optimization/33562
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-11.c
blob
5483ac4e0228cab59f0b17b0a9ded33d70d2851a
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-code-hoisting -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"} } */