; LLVM IR from ohler55/agoo :: ext/agoo (con)

; 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._agooServer = type { i8, i8, i32, i8, i8, i8, i8, i64, %struct._agooQueue, ptr, ptr, ptr, %struct._agooQueue, ptr, i32, i32, %struct._agooAtom, ptr, ptr, %union.pthread_mutex_t, i32, ptr, ptr, %struct._agooAtom }
%struct._agooQueue = type { ptr, ptr, %struct._agooAtom, %struct._agooAtom, i8, i8, %struct._agooAtom, %struct._agooAtom, %struct._agooAtom, i32, i32 }
%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 }
%struct._agooAtom = type { ptr, %union.pthread_mutex_t }
%struct._agooLogCat = type { ptr, [32 x i8], ptr, i32, i8 }
%struct._agooCon = type { ptr, i32, ptr, ptr, i64, [46 x i8], [8192 x i8], i64, i64, i64, double, i8, i8, i8, ptr, ptr, ptr, %union.pthread_mutex_t, ptr, ptr, ptr }
%struct._agooBind = type { ptr, i32, i32, i16, %union.anon.0, ptr, ptr, ptr, ptr, ptr, i32 }
%union.anon.0 = type { %struct.in6_addr }
%struct.in6_addr = type { %union.anon }
%union.anon = type { [4 x i32] }
%struct._agooRes = type { ptr, ptr, ptr, %union.pthread_mutex_t, i8, i32, i8, i8, i8 }

@agoo_server = external global %struct._agooServer, align 8
@agoo_con_cat = external global %struct._agooLogCat, align 8
@.str.2 = external hidden unnamed_addr constant [24 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(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nounwind uwtable
define dso_local void @agoo_con_destroy(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %4 = call i32 @atomic_fetch_sub(ptr noundef getelementptr inbounds (%struct._agooServer, ptr @agoo_server, i32 0, i32 16), i32 noundef 1)
  %5 = load ptr, ptr %2, align 8, !tbaa !5
  %6 = getelementptr inbounds %struct._agooCon, ptr %5, i32 0, i32 2
  %7 = load ptr, ptr %6, align 8, !tbaa !9
  %8 = getelementptr inbounds %struct._agooBind, ptr %7, i32 0, i32 10
  %9 = load i32, ptr %8, align 8, !tbaa !15
  %10 = icmp eq i32 87, %9
  br i1 %10, label %18, label %11

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct._agooCon, ptr %12, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %struct._agooBind, ptr %14, i32 0, i32 10
  %16 = load i32, ptr %15, align 8, !tbaa !15
  %17 = icmp eq i32 83, %16
  br i1 %17, label %18, label %20

18:                                               ; preds = %11, %1
  %19 = load ptr, ptr %2, align 8, !tbaa !5
  call void @agoo_ws_req_close(ptr noundef %19)
  br label %20

20:                                               ; preds = %18, %11
  %21 = load ptr, ptr %2, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct._agooCon, ptr %21, i32 0, i32 1
  %23 = load i32, ptr %22, align 8, !tbaa !18
  %24 = icmp slt i32 0, %23
  br i1 %24, label %25, label %32

25:                                               ; preds = %20
  %26 = load ptr, ptr %2, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct._agooCon, ptr %26, i32 0, i32 1
  %28 = load i32, ptr %27, align 8, !tbaa !18
  %29 = call i32 @close(i32 noundef %28)
  %30 = load ptr, ptr %2, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct._agooCon, ptr %30, i32 0, i32 1
  store i32 0, ptr %31, align 8, !tbaa !18
  br label %32

32:                                               ; preds = %25, %20
  %33 = load ptr, ptr %2, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct._agooCon, ptr %33, i32 0, i32 14
  %35 = load ptr, ptr %34, align 8, !tbaa !19
  %36 = icmp ne ptr null, %35
  br i1 %36, label %37, label %41

37:                                               ; preds = %32
  %38 = load ptr, ptr %2, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct._agooCon, ptr %38, i32 0, i32 14
  %40 = load ptr, ptr %39, align 8, !tbaa !19
  call void @agoo_req_destroy(ptr noundef %40)
  br label %41

41:                                               ; preds = %37, %32
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct._agooCon, ptr %42, i32 0, i32 18
  %44 = load ptr, ptr %43, align 8, !tbaa !20
  %45 = icmp ne ptr null, %44
  br i1 %45, label %46, label %52

46:                                               ; preds = %41
  %47 = load ptr, ptr %2, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct._agooCon, ptr %47, i32 0, i32 18
  %49 = load ptr, ptr %48, align 8, !tbaa !20
  call void @agoo_upgraded_release_con(ptr noundef %49)
  %50 = load ptr, ptr %2, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct._agooCon, ptr %50, i32 0, i32 18
  store ptr null, ptr %51, align 8, !tbaa !20
  br label %52

52:                                               ; preds = %46, %41
  %53 = load ptr, ptr %2, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct._agooCon, ptr %53, i32 0, i32 19
  %55 = load ptr, ptr %54, align 8, !tbaa !21
  %56 = icmp ne ptr null, %55
  br i1 %56, label %57, label %66

57:                                               ; preds = %52
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._agooCon, ptr %58, i32 0, i32 19
  %60 = load ptr, ptr %59, align 8, !tbaa !21
  call void @agoo_server_del_gsub(ptr noundef %60)
  %61 = load ptr, ptr %2, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct._agooCon, ptr %61, i32 0, i32 19
  %63 = load ptr, ptr %62, align 8, !tbaa !21
  call void @gql_sub_destroy(ptr noundef %63)
  %64 = load ptr, ptr %2, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct._agooCon, ptr %64, i32 0, i32 19
  store ptr null, ptr %65, align 8, !tbaa !21
  br label %66

66:                                               ; preds = %57, %52
  %67 = load ptr, ptr %2, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._agooCon, ptr %67, i32 0, i32 4
  %69 = load i64, ptr %68, align 8, !tbaa !22
  call void (ptr, ptr, ...) @agoo_log_cat(ptr noundef @agoo_con_cat, ptr noundef @.str.2, i64 noundef %69)
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  br label %70

70:                                               ; preds = %75, %66
  %71 = load ptr, ptr %2, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct._agooCon, ptr %71, i32 0, i32 15
  %73 = load ptr, ptr %72, align 8, !tbaa !23
  store ptr %73, ptr %3, align 8, !tbaa !5
  %74 = icmp ne ptr null, %73
  br i1 %74, label %75, label %82

75:                                               ; preds = %70
  %76 = load ptr, ptr %3, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct._agooRes, ptr %76, i32 0, i32 0
  %78 = load ptr, ptr %77, align 8, !tbaa !24
  %79 = load ptr, ptr %2, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct._agooCon, ptr %79, i32 0, i32 15
  store ptr %78, ptr %80, align 8, !tbaa !23
  %81 = load ptr, ptr %3, align 8, !tbaa !5
  call void @free(ptr noundef %81) #5
  br label %70, !llvm.loop !26

82:                                               ; preds = %70
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct._agooCon, ptr %83, i32 0, i32 17
  %85 = call i32 @pthread_mutex_destroy(ptr noundef %84) #5
  %86 = load ptr, ptr %2, align 8, !tbaa !5
  call void @free(ptr noundef %86) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  ret void
}

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

declare void @agoo_ws_req_close(ptr noundef) #3

declare i32 @close(i32 noundef) #3

declare void @agoo_req_destroy(ptr noundef) #3

declare void @agoo_upgraded_release_con(ptr noundef) #3

declare void @agoo_server_del_gsub(ptr noundef) #3

declare void @gql_sub_destroy(ptr noundef) #3

declare void @agoo_log_cat(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind
declare void @free(ptr noundef) #4

; Function Attrs: nounwind
declare i32 @pthread_mutex_destroy(ptr noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #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 = { "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 = { nounwind "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, !6, i64 16}
!10 = !{!"_agooCon", !6, i64 0, !11, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !7, i64 40, !7, i64 86, !12, i64 8280, !12, i64 8288, !12, i64 8296, !13, i64 8304, !14, i64 8312, !14, i64 8313, !14, i64 8314, !6, i64 8320, !6, i64 8328, !6, i64 8336, !7, i64 8344, !6, i64 8384, !6, i64 8392, !6, i64 8400}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!"_Bool", !7, i64 0}
!15 = !{!16, !11, i64 80}
!16 = !{!"_agooBind", !6, i64 0, !11, i64 8, !11, i64 12, !17, i64 16, !7, i64 20, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !11, i64 80}
!17 = !{!"short", !7, i64 0}
!18 = !{!10, !11, i64 8}
!19 = !{!10, !6, i64 8320}
!20 = !{!10, !6, i64 8384}
!21 = !{!10, !6, i64 8392}
!22 = !{!10, !12, i64 32}
!23 = !{!10, !6, i64 8328}
!24 = !{!25, !6, i64 0}
!25 = !{!"_agooRes", !6, i64 0, !6, i64 8, !6, i64 16, !7, i64 24, !14, i64 64, !11, i64 68, !14, i64 72, !14, i64 73, !14, i64 74}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}


; 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"

%struct._agooServer = type { i8, i8, i32, i8, i8, i8, i8, i64, %struct._agooQueue, ptr, ptr, ptr, %struct._agooQueue, ptr, i32, i32, %struct._agooAtom, ptr, ptr, %union.pthread_mutex_t, i32, ptr, ptr, %struct._agooAtom }
%struct._agooQueue = type { ptr, ptr, %struct._agooAtom, %struct._agooAtom, i8, i8, %struct._agooAtom, %struct._agooAtom, %struct._agooAtom, i32, i32 }
%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 }
%struct._agooAtom = type { ptr, %union.pthread_mutex_t }
%struct._agooLogCat = type { ptr, [32 x i8], ptr, i32, i8 }

@agoo_server = external global %struct._agooServer, align 8
@agoo_con_cat = external global %struct._agooLogCat, align 8
@.str.2 = external hidden unnamed_addr constant [24 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local void @agoo_con_destroy(ptr noundef %0) local_unnamed_addr #0 {
  %2 = tail call i32 @atomic_fetch_sub(ptr noundef nonnull getelementptr inbounds (i8, ptr @agoo_server, i64 608), i32 noundef 1)
  %3 = getelementptr inbounds i8, ptr %0, i64 16
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 80
  %6 = load i32, ptr %5, align 8, !tbaa !14
  switch i32 %6, label %8 [
    i32 87, label %7
    i32 83, label %7
  ]

7:                                                ; preds = %1, %1
  tail call void @agoo_ws_req_close(ptr noundef nonnull %0) #5
  br label %8

8:                                                ; preds = %1, %7
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load i32, ptr %9, align 8, !tbaa !17
  %11 = icmp sgt i32 %10, 0
  br i1 %11, label %12, label %14

12:                                               ; preds = %8
  %13 = tail call i32 @close(i32 noundef %10) #5
  store i32 0, ptr %9, align 8, !tbaa !17
  br label %14

14:                                               ; preds = %12, %8
  %15 = getelementptr inbounds i8, ptr %0, i64 8320
  %16 = load ptr, ptr %15, align 8, !tbaa !18
  %.not = icmp eq ptr %16, null
  br i1 %.not, label %18, label %17

17:                                               ; preds = %14
  tail call void @agoo_req_destroy(ptr noundef nonnull %16) #5
  br label %18

18:                                               ; preds = %17, %14
  %19 = getelementptr inbounds i8, ptr %0, i64 8384
  %20 = load ptr, ptr %19, align 8, !tbaa !19
  %.not27 = icmp eq ptr %20, null
  br i1 %.not27, label %22, label %21

21:                                               ; preds = %18
  tail call void @agoo_upgraded_release_con(ptr noundef nonnull %20) #5
  store ptr null, ptr %19, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %21, %18
  %23 = getelementptr inbounds i8, ptr %0, i64 8392
  %24 = load ptr, ptr %23, align 8, !tbaa !20
  %.not28 = icmp eq ptr %24, null
  br i1 %.not28, label %27, label %25

25:                                               ; preds = %22
  tail call void @agoo_server_del_gsub(ptr noundef nonnull %24) #5
  %26 = load ptr, ptr %23, align 8, !tbaa !20
  tail call void @gql_sub_destroy(ptr noundef %26) #5
  store ptr null, ptr %23, align 8, !tbaa !20
  br label %27

27:                                               ; preds = %25, %22
  %28 = getelementptr inbounds i8, ptr %0, i64 32
  %29 = load i64, ptr %28, align 8, !tbaa !21
  tail call void (ptr, ptr, ...) @agoo_log_cat(ptr noundef nonnull @agoo_con_cat, ptr noundef nonnull @.str.2, i64 noundef %29) #5
  %30 = getelementptr inbounds i8, ptr %0, i64 8328
  %31 = load ptr, ptr %30, align 8, !tbaa !22
  %.not2930 = icmp eq ptr %31, null
  br i1 %.not2930, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %27, %.lr.ph
  %32 = phi ptr [ %34, %.lr.ph ], [ %31, %27 ]
  %33 = load ptr, ptr %32, align 8, !tbaa !23
  store ptr %33, ptr %30, align 8, !tbaa !22
  tail call void @free(ptr noundef nonnull %32) #5
  %34 = load ptr, ptr %30, align 8, !tbaa !22
  %.not29 = icmp eq ptr %34, null
  br i1 %.not29, label %._crit_edge, label %.lr.ph, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph, %27
  %35 = getelementptr inbounds i8, ptr %0, i64 8344
  %36 = tail call i32 @pthread_mutex_destroy(ptr noundef nonnull %35) #5
  tail call void @free(ptr noundef nonnull %0) #5
  ret void
}

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

declare void @agoo_ws_req_close(ptr noundef) local_unnamed_addr #2

declare i32 @close(i32 noundef) local_unnamed_addr #2

declare void @agoo_req_destroy(ptr noundef) local_unnamed_addr #2

declare void @agoo_upgraded_release_con(ptr noundef) local_unnamed_addr #2

declare void @agoo_server_del_gsub(ptr noundef) local_unnamed_addr #2

declare void @gql_sub_destroy(ptr noundef) local_unnamed_addr #2

declare void @agoo_log_cat(ptr noundef, ptr noundef, ...) local_unnamed_addr #2

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #3

; Function Attrs: nounwind
declare i32 @pthread_mutex_destroy(ptr noundef) local_unnamed_addr #4

attributes #0 = { 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 = { 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 #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 = { mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind "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, !7, i64 16}
!6 = !{!"_agooCon", !7, i64 0, !10, i64 8, !7, i64 16, !7, i64 24, !11, i64 32, !8, i64 40, !8, i64 86, !11, i64 8280, !11, i64 8288, !11, i64 8296, !12, i64 8304, !13, i64 8312, !13, i64 8313, !13, i64 8314, !7, i64 8320, !7, i64 8328, !7, i64 8336, !8, i64 8344, !7, i64 8384, !7, i64 8392, !7, i64 8400}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!"double", !8, i64 0}
!13 = !{!"_Bool", !8, i64 0}
!14 = !{!15, !10, i64 80}
!15 = !{!"_agooBind", !7, i64 0, !10, i64 8, !10, i64 12, !16, i64 16, !8, i64 20, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !10, i64 80}
!16 = !{!"short", !8, i64 0}
!17 = !{!6, !10, i64 8}
!18 = !{!6, !7, i64 8320}
!19 = !{!6, !7, i64 8384}
!20 = !{!6, !7, i64 8392}
!21 = !{!6, !11, i64 32}
!22 = !{!6, !7, i64 8328}
!23 = !{!24, !7, i64 0}
!24 = !{!"_agooRes", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !13, i64 64, !10, i64 68, !13, i64 72, !13, i64 73, !13, i64 74}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass