1 ; RUN: opt -S -verify-memoryssa -passes=loop-sink < %s | FileCheck %s
2 ; RUN: opt -S -verify-memoryssa -aa-pipeline=basic-aa -passes=loop-sink < %s | FileCheck %s
4 target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"
5 target triple = "x86_64-pc-windows-msvc19.13.26128"
7 %struct.FontInfoData = type { ptr }
8 %struct.S = type { i8 }
11 ; Make sure not to assert by trying to sink into catch.dispatch.
13 define void @pr38462(ptr %this) personality ptr @__C_specific_handler !prof !1 {
16 %call6 = call i32 @f()
17 %tobool7 = icmp eq i32 %call6, 0
18 br i1 %tobool7, label %for.body.lr.ph, label %for.cond.cleanup
23 for.cond.cleanup.loopexit:
24 br label %for.cond.cleanup
30 %call2 = invoke i32 @f() to label %__try.cont unwind label %catch.dispatch
33 %0 = catchswitch within none [label %__except] unwind to caller
36 %1 = catchpad within %0 [ptr null]
37 catchret from %1 to label %__except3
40 call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %s)
41 %call.i = call zeroext i1 @g(ptr nonnull %s)
42 br i1 %call.i, label %if.then.i, label %exit
45 %call2.i = call i32 @f()
49 call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %s)
54 %tobool = icmp eq i32 %call, 0
55 br i1 %tobool, label %for.body, label %for.cond.cleanup.loopexit
58 declare i32 @__C_specific_handler(...)
60 declare zeroext i1 @g(ptr)
61 declare void @llvm.lifetime.start.p0(i64, ptr nocapture)
62 declare void @llvm.lifetime.end.p0(i64, ptr nocapture)
64 !1 = !{!"function_entry_count", i64 1}