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
Merge -r 127928:132243 from trunk
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-dse-11.c
blob
bd66bc2a78e60c6278bb224c3fbae1ac4f8c34b2
1
/* { dg-do compile } */
2
/* { dg-options "-O -fdump-tree-dse1-details" } */
3
4
extern
void
abort
(
void
);
5
void
foo
(
int
*
p
)
6
{
7
while
(
1
)
8
{
9
*
p
=
0
;
10
*
p
=
0
;
11
}
12
}
13
void
bar
(
int
*
p
)
14
{
15
*
p
=
0
;
16
*
p
=
0
;
17
abort
();
18
}
19
20
/* { dg-final { scan-tree-dump-times "Deleted dead store" 2 "dse1" } } */
21
/* { dg-final { cleanup-tree-dump "dse1" } } */