blob: 3d2daae6f4705d994813cdd0668643e3be1c09a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* { dg-do compile } */
/* { dg-options "-O2 -fdump-tree-phiopt1-details -fdump-tree-tailc-details" } */
int f(int i)
{
int result;
result = t(i);
if (result)
return result;
return 0;
}
/* We should convert one COND_EXPRs into straightline code. */
/* { dg-final { scan-tree-dump-times "straightline" 1 "phiopt1" } } */
/* Also we should have found that the call to t is tail called. */
/* { dg-final { scan-tree-dump-times "Found tail call" 1 "tailc" } } */
|