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 tree-optimization/84740
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
autopar
/
pr47060.c
blob
e8cdfd6677e38220858be0baf42985533e1554d5
1
/* PR tree-optimization/47060 */
2
/* { dg-do compile } */
3
/* { dg-options "-O -ffast-math -ftree-parallelize-loops=2 -fno-tree-dce" } */
4
5
struct
S
6
{
7
int
n
;
8
float
*
a
;
9
};
10
11
float
12
foo
(
struct
S
*
b
)
13
{
14
float
c
,
d
;
15
int
j
;
16
for
(
j
=
0
;
j
<
b
->
n
;
j
++)
17
d
+=
b
->
a
[
j
];
18
for
(
j
=
0
;
j
<
b
->
n
;
j
++)
19
c
+=
b
->
a
[
j
];
20
return
d
;
21
}