; LLVM IR from erthink/libmdbx :: src (api-cold)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%struct.MDBX_env = type { %union.mdbx_atomic_uint32_t, i32, i32, %struct.osal_mmap, i32, i32, %struct.osal_mmap, ptr, i16, i16, i16, i16, i16, i16, %union.mdbx_atomic_uint32_t, i8, i8, i16, i32, i32, i32, i32, %struct.anon.1, ptr, ptr, ptr, ptr, ptr, i32, i32, i32, ptr, ptr, i64, %struct.anon.2, %struct.anon.6, i8, ptr, ptr, ptr, %struct.anon.7, %union.pthread_mutex_t, i32, i32, ptr, %struct.osal_ioring, %union.pthread_mutex_t, [71 x %union.mdbx_atomic_uint64_t] }
%struct.osal_mmap = type { %union.anon, i32, i64, i64, i64 }
%union.anon = type { ptr }
%union.mdbx_atomic_uint32_t = type { i32 }
%struct.anon.1 = type { ptr, ptr, ptr, ptr }
%struct.anon.2 = type { i32, i32, i32, i32, i64, i8, i8, i8, i8, i32, i32, i8, i8, i8, %struct.anon.3, %union.anon.4 }
%struct.anon.3 = type { i16, i16, i16, i16 }
%union.anon.4 = type { i32 }
%struct.anon.6 = type { i64, i64, i64, i64, i64 }
%struct.anon.7 = type { i64 }
%struct.osal_ioring = type { i32, i32, i32, ptr, ptr, ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%union.mdbx_atomic_uint64_t = type { i64 }

@__func__.mdbx_env_set_flags = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #1

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @log_if_error(i32 noundef, ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @check_env(ptr noundef, i1 noundef zeroext) #2

; Function Attrs: cold nounwind optsize uwtable
define dso_local i32 @mdbx_env_set_flags(ptr noundef %0, i32 noundef %1, i1 noundef zeroext %2) #3 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i8, align 1
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i8, align 1
  %11 = alloca i8, align 1
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  %12 = zext i1 %2 to i8
  store i8 %12, ptr %7, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = call i32 @check_env(ptr noundef %13, i1 noundef zeroext false)
  store i32 %14, ptr %8, align 4, !tbaa !9
  %15 = load i32, ptr %8, align 4, !tbaa !9
  %16 = icmp ne i32 %15, 0
  %17 = xor i1 %16, true
  %18 = xor i1 %17, true
  %19 = zext i1 %18 to i32
  %20 = sext i32 %19 to i64
  %21 = call i64 @llvm.expect.i64(i64 %20, i64 0)
  %22 = icmp ne i64 %21, 0
  br i1 %22, label %23, label %26

23:                                               ; preds = %3
  %24 = load i32, ptr %8, align 4, !tbaa !9
  %25 = call i32 @log_if_error(i32 noundef %24, ptr noundef @__func__.mdbx_env_set_flags, i32 noundef 337)
  store i32 %25, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %115

26:                                               ; preds = %3
  %27 = load i32, ptr %6, align 4, !tbaa !9
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.MDBX_env, ptr %28, i32 0, i32 1
  %30 = load i32, ptr %29, align 4, !tbaa !13
  %31 = and i32 %30, 536870912
  %32 = icmp ne i32 %31, 0
  %33 = zext i1 %32 to i64
  %34 = select i1 %32, i32 -1259675649, i32 -1342136321
  %35 = and i32 %27, %34
  %36 = icmp ne i32 %35, 0
  %37 = xor i1 %36, true
  %38 = xor i1 %37, true
  %39 = zext i1 %38 to i32
  %40 = sext i32 %39 to i64
  %41 = call i64 @llvm.expect.i64(i64 %40, i64 0)
  %42 = icmp ne i64 %41, 0
  br i1 %42, label %43, label %45

43:                                               ; preds = %26
  %44 = call i32 @log_if_error(i32 noundef 1, ptr noundef @__func__.mdbx_env_set_flags, i32 noundef 340)
  store i32 %44, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %115

45:                                               ; preds = %26
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MDBX_env, ptr %46, i32 0, i32 1
  %48 = load i32, ptr %47, align 4, !tbaa !13
  %49 = and i32 %48, 131072
  %50 = icmp ne i32 %49, 0
  %51 = xor i1 %50, true
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i32
  %54 = sext i32 %53 to i64
  %55 = call i64 @llvm.expect.i64(i64 %54, i64 0)
  %56 = icmp ne i64 %55, 0
  br i1 %56, label %57, label %59

57:                                               ; preds = %45
  %58 = call i32 @log_if_error(i32 noundef 13, ptr noundef @__func__.mdbx_env_set_flags, i32 noundef 343)
  store i32 %58, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %115

59:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #5
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.MDBX_env, ptr %60, i32 0, i32 1
  %62 = load i32, ptr %61, align 4, !tbaa !13
  %63 = and i32 %62, 536870912
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %59
  %66 = load ptr, ptr %5, align 8, !tbaa !5
  %67 = call ptr @env_owned_wrtxn(ptr noundef %66)
  %68 = icmp ne ptr %67, null
  %69 = xor i1 %68, true
  br label %70

70:                                               ; preds = %65, %59
  %71 = phi i1 [ false, %59 ], [ %69, %65 ]
  %72 = zext i1 %71 to i8
  store i8 %72, ptr %10, align 1, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 1, ptr %11) #5
  store i8 0, ptr %11, align 1, !tbaa !11
  %73 = load i8, ptr %10, align 1, !tbaa !11, !range !24, !noundef !25
  %74 = trunc i8 %73 to i1
  br i1 %74, label %75, label %90

75:                                               ; preds = %70
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = call i32 @lck_txn_lock(ptr noundef %76, i1 noundef zeroext false)
  store i32 %77, ptr %8, align 4, !tbaa !9
  %78 = load i32, ptr %8, align 4, !tbaa !9
  %79 = icmp ne i32 %78, 0
  %80 = xor i1 %79, true
  %81 = xor i1 %80, true
  %82 = zext i1 %81 to i32
  %83 = sext i32 %82 to i64
  %84 = call i64 @llvm.expect.i64(i64 %83, i64 0)
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %89

86:                                               ; preds = %75
  %87 = load i32, ptr %8, align 4, !tbaa !9
  %88 = call i32 @log_if_error(i32 noundef %87, ptr noundef @__func__.mdbx_env_set_flags, i32 noundef 350)
  store i32 %88, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %114

89:                                               ; preds = %75
  store i8 1, ptr %11, align 1, !tbaa !11
  br label %90

90:                                               ; preds = %89, %70
  %91 = load i8, ptr %7, align 1, !tbaa !11, !range !24, !noundef !25
  %92 = trunc i8 %91 to i1
  br i1 %92, label %93, label %101

93:                                               ; preds = %90
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.MDBX_env, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !13
  %97 = load i32, ptr %6, align 4, !tbaa !9
  %98 = call i32 @combine_durability_flags(i32 noundef %96, i32 noundef %97)
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.MDBX_env, ptr %99, i32 0, i32 1
  store i32 %98, ptr %100, align 4, !tbaa !13
  br label %108

101:                                              ; preds = %90
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = xor i32 %102, -1
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.MDBX_env, ptr %104, i32 0, i32 1
  %106 = load i32, ptr %105, align 4, !tbaa !13
  %107 = and i32 %106, %103
  store i32 %107, ptr %105, align 4, !tbaa !13
  br label %108

108:                                              ; preds = %101, %93
  %109 = load i8, ptr %11, align 1, !tbaa !11, !range !24, !noundef !25
  %110 = trunc i8 %109 to i1
  br i1 %110, label %111, label %113

111:                                              ; preds = %108
  %112 = load ptr, ptr %5, align 8, !tbaa !5
  call void @lck_txn_unlock(ptr noundef %112)
  br label %113

113:                                              ; preds = %111, %108
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %114

114:                                              ; preds = %113, %86
  call void @llvm.lifetime.end.p0(i64 1, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #5
  br label %115

115:                                              ; preds = %114, %57, %43, %23
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %116 = load i32, ptr %4, align 4
  ret i32 %116
}

declare ptr @env_owned_wrtxn(ptr noundef) #4

declare i32 @lck_txn_lock(ptr noundef, i1 noundef zeroext) #4

declare i32 @combine_durability_flags(i32 noundef, i32 noundef) #4

declare void @lck_txn_unlock(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #2 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { cold nounwind optsize uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_Bool", !7, i64 0}
!13 = !{!14, !10, i64 4}
!14 = !{!"MDBX_env", !7, i64 0, !10, i64 4, !10, i64 8, !15, i64 16, !10, i64 56, !10, i64 60, !15, i64 64, !6, i64 104, !17, i64 112, !17, i64 114, !17, i64 116, !17, i64 118, !17, i64 120, !17, i64 122, !7, i64 124, !7, i64 128, !7, i64 129, !17, i64 130, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !18, i64 152, !6, i64 184, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !6, i64 240, !6, i64 248, !16, i64 256, !19, i64 264, !21, i64 320, !12, i64 360, !6, i64 368, !6, i64 376, !6, i64 384, !22, i64 392, !7, i64 400, !10, i64 440, !10, i64 444, !6, i64 448, !23, i64 456, !7, i64 496, !7, i64 536}
!15 = !{!"osal_mmap", !7, i64 0, !10, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!16 = !{!"long", !7, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!19 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !16, i64 16, !7, i64 24, !7, i64 25, !7, i64 26, !7, i64 27, !10, i64 28, !10, i64 32, !12, i64 36, !12, i64 37, !12, i64 38, !20, i64 40, !7, i64 48}
!20 = !{!"", !17, i64 0, !17, i64 2, !17, i64 4, !17, i64 6}
!21 = !{!"", !16, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32}
!22 = !{!"", !16, i64 0}
!23 = !{!"osal_ioring", !10, i64 0, !10, i64 4, !10, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!24 = !{i8 0, i8 2}
!25 = !{}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

@__func__.mdbx_env_set_flags = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @log_if_error(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden i32 @check_env(ptr noundef, i1 noundef zeroext) local_unnamed_addr #0

; Function Attrs: cold nounwind optsize uwtable
define dso_local i32 @mdbx_env_set_flags(ptr noundef %0, i32 noundef %1, i1 noundef zeroext %2) local_unnamed_addr #1 {
  %4 = tail call i32 @check_env(ptr noundef %0, i1 noundef zeroext false)
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %7, label %5, !prof !5

5:                                                ; preds = %3
  %6 = tail call i32 @log_if_error(i32 noundef %4, ptr noundef nonnull @__func__.mdbx_env_set_flags, i32 noundef 337)
  br label %36

7:                                                ; preds = %3
  %8 = getelementptr inbounds i8, ptr %0, i64 4
  %9 = load i32, ptr %8, align 4, !tbaa !6
  %10 = and i32 %9, 536870912
  %.not23 = icmp eq i32 %10, 0
  %11 = select i1 %.not23, i32 -1342136321, i32 -1259675649
  %12 = and i32 %11, %1
  %.not24 = icmp eq i32 %12, 0
  br i1 %.not24, label %15, label %13, !prof !5

13:                                               ; preds = %7
  %14 = tail call i32 @log_if_error(i32 noundef 1, ptr noundef nonnull @__func__.mdbx_env_set_flags, i32 noundef 340)
  br label %36

15:                                               ; preds = %7
  %16 = and i32 %9, 131072
  %.not25 = icmp eq i32 %16, 0
  br i1 %.not25, label %19, label %17, !prof !5

17:                                               ; preds = %15
  %18 = tail call i32 @log_if_error(i32 noundef 13, ptr noundef nonnull @__func__.mdbx_env_set_flags, i32 noundef 343)
  br label %36

19:                                               ; preds = %15
  br i1 %.not23, label %.thread, label %20

20:                                               ; preds = %19
  %21 = tail call ptr @env_owned_wrtxn(ptr noundef nonnull %0) #3
  %.not26 = icmp eq ptr %21, null
  br i1 %.not26, label %22, label %.thread

22:                                               ; preds = %20
  %23 = tail call i32 @lck_txn_lock(ptr noundef nonnull %0, i1 noundef zeroext false) #3
  %.not27 = icmp eq i32 %23, 0
  br i1 %.not27, label %.thread, label %24, !prof !5

24:                                               ; preds = %22
  %25 = tail call i32 @log_if_error(i32 noundef %23, ptr noundef nonnull @__func__.mdbx_env_set_flags, i32 noundef 350)
  br label %36

.thread:                                          ; preds = %19, %22, %20
  %26 = phi i1 [ true, %22 ], [ false, %20 ], [ false, %19 ]
  br i1 %2, label %27, label %30

27:                                               ; preds = %.thread
  %28 = load i32, ptr %8, align 4, !tbaa !6
  %29 = tail call i32 @combine_durability_flags(i32 noundef %28, i32 noundef %1) #3
  br label %34

30:                                               ; preds = %.thread
  %31 = xor i32 %1, -1
  %32 = load i32, ptr %8, align 4, !tbaa !6
  %33 = and i32 %32, %31
  br label %34

34:                                               ; preds = %30, %27
  %storemerge = phi i32 [ %33, %30 ], [ %29, %27 ]
  store i32 %storemerge, ptr %8, align 4, !tbaa !6
  br i1 %26, label %35, label %36

35:                                               ; preds = %34
  tail call void @lck_txn_unlock(ptr noundef nonnull %0) #3
  br label %36

36:                                               ; preds = %24, %35, %34, %17, %13, %5
  %.1 = phi i32 [ %6, %5 ], [ %14, %13 ], [ %18, %17 ], [ %25, %24 ], [ 0, %35 ], [ 0, %34 ]
  ret i32 %.1
}

declare ptr @env_owned_wrtxn(ptr noundef) local_unnamed_addr #2

declare i32 @lck_txn_lock(ptr noundef, i1 noundef zeroext) local_unnamed_addr #2

declare i32 @combine_durability_flags(i32 noundef, i32 noundef) local_unnamed_addr #2

declare void @lck_txn_unlock(ptr noundef) local_unnamed_addr #2

attributes #0 = { inlinehint nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { cold nounwind optsize uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!6 = !{!7, !10, i64 4}
!7 = !{!"MDBX_env", !8, i64 0, !10, i64 4, !10, i64 8, !11, i64 16, !10, i64 56, !10, i64 60, !11, i64 64, !13, i64 104, !14, i64 112, !14, i64 114, !14, i64 116, !14, i64 118, !14, i64 120, !14, i64 122, !8, i64 124, !8, i64 128, !8, i64 129, !14, i64 130, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !15, i64 152, !13, i64 184, !13, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !10, i64 224, !10, i64 228, !10, i64 232, !13, i64 240, !13, i64 248, !12, i64 256, !16, i64 264, !19, i64 320, !17, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !20, i64 392, !8, i64 400, !10, i64 440, !10, i64 444, !13, i64 448, !21, i64 456, !8, i64 496, !8, i64 536}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"osal_mmap", !8, i64 0, !10, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!12 = !{!"long", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"short", !8, i64 0}
!15 = !{!"", !13, i64 0, !13, i64 8, !13, i64 16, !13, i64 24}
!16 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !12, i64 16, !8, i64 24, !8, i64 25, !8, i64 26, !8, i64 27, !10, i64 28, !10, i64 32, !17, i64 36, !17, i64 37, !17, i64 38, !18, i64 40, !8, i64 48}
!17 = !{!"_Bool", !8, i64 0}
!18 = !{!"", !14, i64 0, !14, i64 2, !14, i64 4, !14, i64 6}
!19 = !{!"", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32}
!20 = !{!"", !12, i64 0}
!21 = !{!"osal_ioring", !10, i64 0, !10, i64 4, !10, i64 8, !13, i64 16, !13, i64 24, !13, i64 32}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass