1 ; RUN: opt < %s -passes=loop-simplify -S | FileCheck %s
4 @catchtypeinfo = external unnamed_addr constant { ptr, ptr, ptr }
6 define void @main() uwtable ssp personality ptr @__gxx_personality_v0 {
9 to label %try.cont19 unwind label %catch
11 ; CHECK: catch.preheader:
12 ; CHECK-NEXT: landingpad
13 ; CHECK: br label %catch
15 ; CHECK: catch.preheader.split-lp:
16 ; CHECK-NEXT: landingpad
17 ; CHECK: br label %catch
19 catch: ; preds = %if.else, %entry
20 %0 = landingpad { ptr, i32 }
21 catch ptr @catchtypeinfo
23 to label %if.else unwind label %eh.resume
25 if.else: ; preds = %catch
27 to label %try.cont19 unwind label %catch
29 try.cont19: ; preds = %if.else, %entry
32 eh.resume: ; preds = %catch
33 %1 = landingpad { ptr, i32 }
35 catch ptr @catchtypeinfo
36 resume { ptr, i32 } undef
39 declare i32 @__gxx_personality_v0(...)