57 lines · plain
1; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-ALL,CHECK-INTERESTINGNESS0 --test-arg %s --test-arg --input-file %s -o %t.02; RUN: FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL0 %s < %t.03 4; RUN: llvm-reduce -abort-on-invalid-reduction --delta-passes=basic-blocks --test FileCheck --test-arg --check-prefixes=CHECK-INTERESTINGNESS1 --test-arg %s --test-arg --input-file %s -o %t.15; RUN: FileCheck --check-prefixes=CHECK-ALL,CHECK-FINAL1 %s < %t.16 7declare i32 @maybe_throwing_callee()8 9; CHECK-ALL: declare void @did_not_throw(i32)10declare void @did_not_throw(i32)11 12declare void @thrown()13 14; CHECK-ALL: define void @caller()15define void @caller() personality ptr @__gxx_personality_v0 {16; CHECK-ALL: bb:17; CHECK-FINAL1-NEXT: br label %bb118bb:19; CHECK-INTERESTINGNESS0: label %bb320; CHECK-FINAL0: br label %bb321 %i0 = invoke i32 @maybe_throwing_callee()22 to label %bb3 unwind label %bb123 24bb1:25 landingpad { ptr, i32 } catch ptr null26; CHECK-INTERESTINGNESS1: call void @thrown()27 28; CHECK-FINAL1: bb1:29; CHECK-FINAL1-NEXT: call void @thrown()30; CHECK-FINAL1-NEXT: ret void31 call void @thrown()32 br label %bb433 34; CHECK-INTERESTINGNESS0: bb3:35; CHECK-FINAL0: bb3:36bb3:37; CHECK-INTERESTINGNESS0: call void @did_not_throw(i3238; CHECK-INTERESTINGNESS0: br label %bb439 40; CHECK-FINAL0: call void @did_not_throw(i32 0)41; CHECK-FINAL0: br label %bb442 43 call void @did_not_throw(i32 %i0)44 br label %bb445 46; RESULT0: bb4:47; RESULT0-NEXT: ret void48 49; CHECK-INTERESTINGNESS0: bb4:50; CHECK-INTERESTINGNESS0-NEXT: ret void51bb4:52 ret void53}54 55 56declare i32 @__gxx_personality_v0(...)57