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/33562
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ifc-12.c
blob
89d42b4d6fd0add66e53d35742aee8778a266cca
1
/* { dg-do compile } */
2
/* { dg-options "-Ofast -fdump-tree-ifcvt-stats" } */
3
/* { dg-require-visibility "" } */
4
5
struct
st
6
{
7
int
a
[
1024
];
8
int
b
[
1024
];
9
};
10
11
struct
st s
= {
0
};
12
int
foo
(
int
x
)
13
{
14
int
i
;
15
struct
st
*
p
= &
s
;
16
17
for
(
i
=
0
;
i
<
1024
;
i
++)
18
{
19
if
(
x
>
i
)
20
p
->
a
[
i
] =
p
->
b
[
i
];
21
}
22
23
return
0
;
24
}
25
/* { dg-final { scan-tree-dump-times "Applying if-conversion" 1 "ifcvt" } } */