pr44029.ll
1.77 KB
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
58
59
60
61
62
63
; RUN: opt -loop-simplifycfg -verify-memoryssa -S < %s | FileCheck %s
; REQUIRES: asserts
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"
declare i32 @eggs(...)
declare void @spam()
; CHECK-LABEL: @f()
define void @f() personality i8* bitcast (i32 (...)* @eggs to i8*) {
bb:
invoke void @spam()
to label %bb2 unwind label %bb4
bb2: ; preds = %bb
invoke void @spam()
to label %bb8 unwind label %bb5
bb4: ; preds = %bb
%tmp = landingpad { i8*, i32 }
cleanup
resume { i8*, i32 } undef
bb5: ; preds = %bb2
%tmp6 = landingpad { i8*, i32 }
cleanup
unreachable
bb8: ; preds = %bb13, %bb2
br label %bb10
bb10: ; preds = %bb8
invoke void @spam()
to label %bb11 unwind label %bb20
bb11: ; preds = %bb10
invoke void @spam()
to label %bb12 unwind label %bb22
bb12: ; preds = %bb11
invoke void @spam()
to label %bb13 unwind label %bb24
bb13: ; preds = %bb12
br label %bb8
bb20: ; preds = %bb10
%tmp21 = landingpad { i8*, i32 }
cleanup
unreachable
bb22: ; preds = %bb11
%tmp23 = landingpad { i8*, i32 }
cleanup
unreachable
bb24: ; preds = %bb12
%tmp25 = landingpad { i8*, i32 }
cleanup
unreachable
}