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
libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-ccp-42.c
blob
b4e5c0f73f20f775c328e80513951471a1e994c3
1
/* { dg-do compile } */
2
/* { dg-options "-fgimple -O -fdump-tree-ccp1" } */
3
4
__GIMPLE
(
ssa
,
startwith
(
"ccp"
))
int
foo
(
int
n
)
5
{
6
int
i
;
7
int
j
;
8
9
__BB
(
2
):
10
i_1
=
0
;
11
goto
__BB3
;
12
13
__BB
(
3
):
14
i_2
=
__PHI
(
__BB2
:
i_1
,
__BB3
:
i_4
);
15
j_3
=
i_2
;
16
i_4
=
i_2
+
1
;
17
if
(
i_4
<
n_5
(
D
))
18
goto
__BB3
;
19
else
20
goto
__BB4
;
21
22
__BB
(
4
):
23
return
j_3
;
24
}
25
26
/* { dg-final { scan-tree-dump "return i_2;" "ccp1" } } */