blob: b448e830d52cdbe38338cde580c346b287c8ccbf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/* { dg-do compile } */
/* { dg-options "-O1 -fdump-tree-phiprop1-details -fdump-tree-release_ssa" } */
int max(int a, int b)
{
int *ptr;
if (a > b)
ptr = &a;
else
ptr = &b;
return *ptr;
}
/* { dg-final { scan-tree-dump-times "Inserting PHI for result of load" 1 "phiprop1"} } */
/* { dg-final { scan-tree-dump-times "MAX_EXPR" 1 "release_ssa"} } */
|