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 testsuite/52641
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
loadpre23.c
blob
2273accbaa75323e7726d58855cd875b19e8478f
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-pre-stats" } */
3
4
struct
{
5
int
a
;
6
int
large
[
100
];
7
}
x
;
8
9
int
foo
(
int
argc
)
10
{
11
int
b
;
12
int
c
;
13
int
i
;
14
int
d
,
e
;
15
16
for
(
i
=
0
;
i
<
argc
;
i
++)
17
{
18
e
=
x
.
a
;
19
x
.
a
=
9
;
20
}
21
return
d
+
e
;
22
}
23
24
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "pre" } } */
25
/* { dg-final { cleanup-tree-dump "pre" } } */