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
* tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ldist-27.c
blob
3580c65f09ba0d140ceac1e54b1e9a495a343520
1
/* { dg-do run } */
2
/* { dg-options "-O3 -ftree-loop-distribute-patterns -fdump-tree-ldist-details" } */
3
4
#define M (300)
5
#define N (200)
6
7
struct
st
8
{
9
double
a
[
M
];
10
double
b
[
M
];
11
double
c
[
M
][
N
];
12
};
13
14
int
__attribute__
((
noinline
))
foo
(
struct
st
*
s
)
15
{
16
int
i
,
j
;
17
for
(
i
=
0
;
i
!=
M
;)
18
{
19
s
->
a
[
i
] =
0.0
;
20
s
->
b
[
i
] =
1.0
;
21
for
(
j
=
0
;
1
; ++
j
)
22
{
23
if
(
j
==
N
)
goto
L2
;
24
s
->
c
[
i
][
j
] =
0.0
;
25
}
26
L2
:
27
++
i
;
28
}
29
return
0
;
30
}
31
32
int
main
(
void
)
33
{
34
struct
st s
;
35
return
foo
(&
s
);
36
}
37
38
/* { dg-final { scan-tree-dump "distributed: split to " "ldist" } } */