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
/
pr20913.c
1
/* PR tree-optimization/20913
2
COPY-PROP did not fold COND_EXPR, blocking some copy propagation
3
opportunities. */
4
5
/* { dg-do link } */
6
/* { dg-options "-O2 -fno-tree-dominator-opts" } */
7
8
int
9
foo
(
int
a
,
int
b
,
int
c
,
int
d
)
10
{
11
int
x
,
y
;
12
13
b
=
a
;
14
if
(
a
==
b
)
15
x
=
c
;
16
else
17
{
18
link_error
();
19
x
=
d
;
20
}
21
22
if
(
x
==
c
)
23
return
a
;
24
else
25
{
26
link_error
();
27
return
b
;
28
}
29
}
30
31
main
()
32
{
33
foo
(
1
,
2
,
3
,
4
);
34
}