projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-10.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre-stats" } */
3
double
cos
(
double
);
4
void
link_error
();
5
void
f
(
double
a
)
6
{
7
double
b
=
cos
(
a
);
8
double
c
=
cos
(
a
);
9
if
(
b
!=
c
)
10
link_error
();
11
}
12
13
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre"} } */
14
/* { dg-final { cleanup-tree-dump "fre" } } */