1; RUN: opt < %s -inline -loop-rotate -verify-dom-info -verify-loop-info -disable-output
2; PR3601
3declare void @solve()
4
5define internal fastcc void @read() {
6	br label %bb4
7
8bb3:
9	br label %bb4
10
11bb4:
12	call void @solve()
13	br i1 false, label %bb5, label %bb3
14
15bb5:
16	unreachable
17}
18
19define internal fastcc void @parse() {
20	call fastcc void @read()
21	ret void
22}
23
24define void @main() personality i32 (...)* @__gxx_personality_v0 {
25	invoke fastcc void @parse()
26			to label %invcont unwind label %lpad
27
28invcont:
29	unreachable
30
31lpad:
32        %exn = landingpad {i8*, i32}
33                 cleanup
34	unreachable
35}
36declare i32 @__gxx_personality_v0(...)
37