blob: 971ddf6c6b75d5ad191b293857bf8e498602be2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
// PR ipa/68672
// { dg-do compile }
// { dg-options "-O3 --param=partial-inlining-entry-probability=100 -g" }
struct S { ~S () {} };
S *a, *e;
int *b;
void bar ();
void baz ();
void fn (int *);
void fn2 (S *);
static int
foo ()
{
S *c = a;
if (c)
{
bar ();
if (a)
__builtin_abort ();
baz ();
}
int p = *b;
S *f = e;
if (p)
{
fn2 (f);
fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b);
fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b);
fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b);
fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b); fn (b);
}
f->~S ();
int q = 2 * p;
int r = 3 * q;
S *d = c;
return p;
}
void
use1 ()
{
foo ();
}
void
use2 ()
{
foo ();
}
void
use3 ()
{
foo ();
}
|