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 middle-end/77357 - strlen of constant strings not folded
[official-gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
ssa-pre-7.c
blob
7023818b17a418a4c67cfa212f360a8b5119ff2f
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fno-tree-dominator-opts -fdump-tree-fre1-stats" } */
3
int
4
foo
(
int
*
array
)
5
{
6
if
(
array
[
1
] !=
0
)
7
return
array
[
1
];
8
return
0
;
9
}
10
/* We should eliminate one load. */
11
/* { dg-final { scan-tree-dump-times "Eliminated: 1" 1 "fre1"} } */