OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
PR middle-end/20256
[pf3gnuchains/gcc-fork.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-11.c
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" } } */