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
/
predcom-8.c
blob
c4562768398b50a3d35e7d1d237e235988d963e8
1
/* { dg-do compile } */
2
/* { dg-options "-O3 -fdump-tree-pcom-details" } */
3
4
int
is_sorted
(
int
*
a
,
int
n
)
5
{
6
for
(
int
i
=
0
;
i
<
n
-
1
;
i
++)
7
if
(
a
[
i
] >
a
[
i
+
1
])
8
return
0
;
9
return
1
;
10
}
11
12
/* { dg-final { scan-tree-dump "Executing predictive commoning without unrolling" "pcom" } } */