| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O1 -ftree-vrp -fdump-tree-dom2" } */ |
| 3 |
|
| 4 |
extern void abort (void); |
| 5 |
extern void bitmap_clear (int *); |
| 6 |
extern void bar (int *); |
| 7 |
|
| 8 |
void |
| 9 |
oof () |
| 10 |
{ |
| 11 |
int live_head; |
| 12 |
int * live = &live_head; |
| 13 |
|
| 14 |
if (live) |
| 15 |
bitmap_clear (live); |
| 16 |
} |
| 17 |
|
| 18 |
void |
| 19 |
foo(int n) |
| 20 |
{ |
| 21 |
int *space = (int *)__builtin_alloca (n); |
| 22 |
|
| 23 |
if (space == 0) |
| 24 |
abort (); |
| 25 |
else |
| 26 |
bar (space); |
| 27 |
} |
| 28 |
|
| 29 |
|
| 30 |
/* There should be no IF conditionals. */ |
| 31 |
/* { dg-final { scan-tree-dump-times "if " 0 "dom2" } } */ |