projects
/
gcc.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
re PR tree-optimization/33291 (a+=2; a+=2 not simplified to a+=4; with -O3 ...
[gcc.git]
/
gcc
/
testsuite
/
gcc.dg
/
tree-ssa
/
pr21086.c
1
/* { dg-do compile } */
2
/* { dg-options "-O2 -fdump-tree-vrp1" } */
3
4
int
5
foo
(
int
*
p
)
6
{
7
int
a
= *
p
;
8
int
b
=
p
!=
0
;
9
10
*
p
=
b
;
11
12
if
(
b
)
13
return
a
;
14
else
15
return
0
;
16
}
17
18
/* { dg-final { scan-tree-dump-times "Folding predicate " 2 "vrp1" } } */
19
/* { dg-final { cleanup-tree-dump "vrp1" } } */