1 ; RUN: opt < %s -prune-eh -S | FileCheck %s
3 declare void @nounwind() nounwind
5 define internal void @foo() {
10 ; CHECK-LABEL: @caller
11 define i32 @caller(i32 %n) personality i32 (...)* @__gxx_personality_v0 {
16 %j = phi i32 [0, %entry], [%j.inc, %inc]
17 %j.cmp = icmp slt i32 %j, %n
18 br i1 %j.cmp, label %body, label %exit, !llvm.loop !0
21 ; CHECK: call void @foo(), !llvm.mem.parallel_loop_access !0
23 to label %Normal unwind label %Except, !llvm.mem.parallel_loop_access !0
27 %j.inc = add nuw nsw i32 %j, 1
28 br label %for, !llvm.loop !0
37 landingpad { i8*, i32 }
42 declare i32 @__gxx_personality_v0(...)