| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5 |
| ; RUN: opt -S --passes=slp-vectorizer -mtriple=x86_64-pc-windows-msvc19.40.33811 < %s | FileCheck %s |
| |
| %"class.boost::execution_exception" = type { i32, %"class.boost::unit_test::basic_cstring", %"struct.boost::execution_exception::location" } |
| %"class.boost::unit_test::basic_cstring" = type { ptr, ptr } |
| %"struct.boost::execution_exception::location" = type { %"class.boost::unit_test::basic_cstring", i64, %"class.boost::unit_test::basic_cstring" } |
| |
| define void @test() personality ptr null { |
| ; CHECK-LABEL: define void @test() personality ptr null { |
| ; CHECK-NEXT: [[ENTRY:.*]]: |
| ; CHECK-NEXT: br label %[[FOR_COND109:.*]] |
| ; CHECK: [[FOR_COND109]]: |
| ; CHECK-NEXT: [[TMP0:%.*]] = phi <2 x ptr> [ zeroinitializer, %[[ENTRY]] ], [ zeroinitializer, %[[IF_END153:.*]] ] |
| ; CHECK-NEXT: br label %[[INIT_ATTEMPT_I664:.*]] |
| ; CHECK: [[INIT_ATTEMPT_I664]]: |
| ; CHECK-NEXT: [[CALL_I666:%.*]] = invoke ptr null(ptr null) |
| ; CHECK-NEXT: to label %[[INVOKE_CONT_I668:.*]] unwind label %[[CATCH_DISPATCH:.*]] |
| ; CHECK: [[INVOKE_CONT_I668]]: |
| ; CHECK-NEXT: ret void |
| ; CHECK: [[CATCH_DISPATCH]]: |
| ; CHECK-NEXT: [[TMP1:%.*]] = catchswitch within none [label %catch] unwind to caller |
| ; CHECK: [[CATCH:.*]]: |
| ; CHECK-NEXT: [[TMP2:%.*]] = catchpad within [[TMP1]] [ptr null, i32 0, ptr null] |
| ; CHECK-NEXT: br i1 false, label %[[IF_END153]], label %[[INVOKE_CONT149:.*]] |
| ; CHECK: [[INVOKE_CONT149]]: |
| ; CHECK-NEXT: [[TMP3:%.*]] = load <2 x ptr>, ptr null, align 8 |
| ; CHECK-NEXT: br label %[[IF_END153]] |
| ; CHECK: [[IF_END153]]: |
| ; CHECK-NEXT: [[TMP4:%.*]] = phi <2 x ptr> [ [[TMP0]], %[[CATCH]] ], [ [[TMP3]], %[[INVOKE_CONT149]] ] |
| ; CHECK-NEXT: catchret from [[TMP2]] to label %[[FOR_COND109]] |
| ; |
| entry: |
| br label %for.cond109 |
| |
| for.cond109: |
| %setup_error.sroa.0.1 = phi ptr [ null, %entry ], [ null, %if.end153 ] |
| %setup_error.sroa.6.1 = phi ptr [ null, %entry ], [ null, %if.end153 ] |
| br label %init.attempt.i664 |
| |
| init.attempt.i664: |
| %call.i666 = invoke ptr null(ptr null) |
| to label %invoke.cont.i668 unwind label %catch.dispatch |
| |
| invoke.cont.i668: |
| ret void |
| |
| catch.dispatch: |
| %0 = catchswitch within none [label %catch] unwind to caller |
| |
| catch: |
| %1 = catchpad within %0 [ptr null, i32 0, ptr null] |
| br i1 false, label %if.end153, label %invoke.cont149 |
| |
| invoke.cont149: |
| %m_begin2.i.i = getelementptr %"class.boost::execution_exception", ptr null, i64 0, i32 1, i32 0 |
| %2 = load ptr, ptr %m_begin2.i.i, align 8 |
| %3 = load ptr, ptr null, align 8 |
| br label %if.end153 |
| |
| if.end153: |
| %setup_error.sroa.0.2 = phi ptr [ %setup_error.sroa.0.1, %catch ], [ %2, %invoke.cont149 ] |
| %setup_error.sroa.6.2 = phi ptr [ %setup_error.sroa.6.1, %catch ], [ %3, %invoke.cont149 ] |
| catchret from %1 to label %for.cond109 |
| } |