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-optimization/113080 - missing final value replacement
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
sccp-3.c
blob
b8c67427f16ea68be603f9665fdc9703f4e29908
1
/* PR/113080 */
2
/* { dg-do compile } */
3
/* { dg-options "-O2 -fdump-tree-optimized" } */
4
5
int
a
,
b
,
n
;
6
int
w
;
7
void
fun1
(
int
t
)
8
{
9
for
(
int
i
=
0
;
i
<
100
;
i
++)
10
{
11
a
+=
w
;
12
b
-=
w
;
13
t
+=
a
+
b
;
14
}
15
n
=
t
;
16
}
17
18
/* We should apply final value replacement to all reductions and
19
elide the loop. */
20
/* { dg-final { scan-tree-dump-times "<bb" 1 "optimized" } } */