1 ; RUN: opt < %s -prune-eh -S -enable-new-pm=0 | FileCheck %s
2 ; RUN: opt < %s -passes='function-attrs,function(simplifycfg)' -S | FileCheck %s
4 declare void @nounwind() nounwind
6 define internal void @foo() {
11 ; CHECK-LABEL: @caller
12 define i32 @caller(i32 %n) personality i32 (...)* @__gxx_personality_v0 {
17 %j = phi i32 [0, %entry], [%j.inc, %inc]
18 %j.cmp = icmp slt i32 %j, %n
19 br i1 %j.cmp, label %body, label %exit, !llvm.loop !0
22 ; CHECK: call void @foo(), !llvm.mem.parallel_loop_access !0
24 to label %Normal unwind label %Except, !llvm.mem.parallel_loop_access !0
28 %j.inc = add nuw nsw i32 %j, 1
29 br label %for, !llvm.loop !0
38 landingpad { i8*, i32 }
43 declare i32 @__gxx_personality_v0(...)