; LLVM IR from MaverickPeter/MR_SLAM :: Mapping/src/global_manager/src/kdtree.ll (Z11kdtree_dumpP6kdtree)

; 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.kdnode_backlog = type { ptr, i32 }
%struct.kdtree = type { ptr, i64, i64, ptr, ptr, ptr, ptr, ptr, %struct.knn_list, i32, i32 }
%struct.knn_list = type { ptr, float, ptr, ptr }
%struct.kdnode = type { i64, ptr, ptr, ptr, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 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: mustprogress uwtable
define dso_local void @_Z11kdtree_dumpP6kdtree(ptr noundef %0) #1 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca %struct.kdnode_backlog, align 8
  %6 = alloca ptr, align 8
  %7 = alloca [2 x %struct.kdnode_backlog], align 16
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #4
  store i32 0, ptr %3, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %11 = load ptr, ptr %2, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.kdtree, ptr %11, i32 0, i32 0
  %13 = load ptr, ptr %12, align 8, !tbaa !11
  store ptr %13, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %14 = getelementptr inbounds [2 x %struct.kdnode_backlog], ptr %7, i64 0, i64 0
  store ptr %14, ptr %8, align 8, !tbaa !5
  br label %15

15:                                               ; preds = %118, %1
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = icmp ne ptr %16, null
  br i1 %17, label %18, label %99

18:                                               ; preds = %15
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %25

21:                                               ; preds = %18
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.kdnode_backlog, ptr %22, i32 0, i32 1
  %24 = load i32, ptr %23, align 8, !tbaa !16
  br label %26

25:                                               ; preds = %18
  br label %26

26:                                               ; preds = %25, %21
  %27 = phi i32 [ %24, %21 ], [ 1, %25 ]
  store i32 %27, ptr %9, align 4, !tbaa !9
  store ptr null, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = call noundef i32 @_ZL7is_leafP6kdnode(ptr noundef %28)
  %30 = icmp ne i32 %29, 0
  br i1 %30, label %34, label %31

31:                                               ; preds = %26
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %39

34:                                               ; preds = %31, %26
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.kdnode_backlog, ptr %35, i32 0, i32 0
  store ptr null, ptr %36, align 8, !tbaa !18
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.kdnode_backlog, ptr %37, i32 0, i32 1
  store i32 1, ptr %38, align 8, !tbaa !16
  br label %45

39:                                               ; preds = %31
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = load ptr, ptr %8, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.kdnode_backlog, ptr %41, i32 0, i32 0
  store ptr %40, ptr %42, align 8, !tbaa !18
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.kdnode_backlog, ptr %43, i32 0, i32 1
  store i32 0, ptr %44, align 8, !tbaa !16
  br label %45

45:                                               ; preds = %39, %34
  %46 = load ptr, ptr %8, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.kdnode_backlog, ptr %46, i32 1
  store ptr %47, ptr %8, align 8, !tbaa !5
  %48 = load i32, ptr %3, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %3, align 4, !tbaa !9
  %50 = load i32, ptr %9, align 4, !tbaa !9
  %51 = icmp eq i32 %50, 1
  br i1 %51, label %52, label %86

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  store i32 1, ptr %10, align 4, !tbaa !9
  br label %53

53:                                               ; preds = %78, %52
  %54 = load i32, ptr %10, align 4, !tbaa !9
  %55 = load i32, ptr %3, align 4, !tbaa !9
  %56 = icmp slt i32 %54, %55
  br i1 %56, label %57, label %81

57:                                               ; preds = %53
  %58 = load i32, ptr %10, align 4, !tbaa !9
  %59 = load i32, ptr %3, align 4, !tbaa !9
  %60 = sub nsw i32 %59, 1
  %61 = icmp eq i32 %58, %60
  br i1 %61, label %62, label %64

62:                                               ; preds = %57
  %63 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.1)
  br label %77

64:                                               ; preds = %57
  %65 = load i32, ptr %10, align 4, !tbaa !9
  %66 = sub nsw i32 %65, 1
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds [2 x %struct.kdnode_backlog], ptr %7, i64 0, i64 %67
  %69 = getelementptr inbounds %struct.kdnode_backlog, ptr %68, i32 0, i32 0
  %70 = load ptr, ptr %69, align 16, !tbaa !18
  %71 = icmp ne ptr %70, null
  br i1 %71, label %72, label %74

72:                                               ; preds = %64
  %73 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.2)
  br label %76

74:                                               ; preds = %64
  %75 = call i32 (ptr, ...) @printf(ptr noundef @.str, ptr noundef @.str.3)
  br label %76

76:                                               ; preds = %74, %72
  br label %77

77:                                               ; preds = %76, %62
  br label %78

78:                                               ; preds = %77
  %79 = load i32, ptr %10, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %10, align 4, !tbaa !9
  br label %53, !llvm.loop !19

81:                                               ; preds = %53
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load ptr, ptr %2, align 8, !tbaa !5
  %84 = getelementptr inbounds %struct.kdtree, ptr %83, i32 0, i32 9
  %85 = load i32, ptr %84, align 8, !tbaa !21
  call void @_ZL11kdnode_dumpP6kdnodei(ptr noundef %82, i32 noundef %85)
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  br label %86

86:                                               ; preds = %81, %45
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = icmp eq i32 %87, 0
  br i1 %88, label %89, label %93

89:                                               ; preds = %86
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.kdnode, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  br label %97

93:                                               ; preds = %86
  %94 = load ptr, ptr %4, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.kdnode, ptr %94, i32 0, i32 3
  %96 = load ptr, ptr %95, align 8, !tbaa !24
  br label %97

97:                                               ; preds = %93, %89
  %98 = phi ptr [ %92, %89 ], [ %96, %93 ]
  store ptr %98, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %118

99:                                               ; preds = %15
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds [2 x %struct.kdnode_backlog], ptr %7, i64 0, i64 0
  %102 = icmp eq ptr %100, %101
  br i1 %102, label %103, label %104

103:                                              ; preds = %99
  br label %107

104:                                              ; preds = %99
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.kdnode_backlog, ptr %105, i32 -1
  store ptr %106, ptr %8, align 8, !tbaa !5
  br label %107

107:                                              ; preds = %104, %103
  %108 = phi ptr [ null, %103 ], [ %106, %104 ]
  store ptr %108, ptr %6, align 8, !tbaa !5
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = icmp eq ptr %109, null
  br i1 %110, label %111, label %112

111:                                              ; preds = %107
  br label %119

112:                                              ; preds = %107
  %113 = load ptr, ptr %6, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.kdnode_backlog, ptr %113, i32 0, i32 0
  %115 = load ptr, ptr %114, align 8, !tbaa !18
  store ptr %115, ptr %4, align 8, !tbaa !5
  %116 = load i32, ptr %3, align 4, !tbaa !9
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %3, align 4, !tbaa !9
  br label %118

118:                                              ; preds = %112, %97
  br label %15, !llvm.loop !25

119:                                              ; preds = %111
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #4
  ret void
}

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

declare i32 @printf(ptr noundef, ...) #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11kdnode_dumpP6kdnodei(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 mustprogress 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 }

!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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"_ZTS6kdtree", !6, i64 0, !13, i64 8, !13, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !10, i64 96, !10, i64 100}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS8knn_list", !6, i64 0, !15, i64 8, !6, i64 16, !6, i64 24}
!15 = !{!"float", !7, i64 0}
!16 = !{!17, !10, i64 8}
!17 = !{!"_ZTS14kdnode_backlog", !6, i64 0, !10, i64 8}
!18 = !{!17, !6, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!12, !10, i64 96}
!22 = !{!23, !6, i64 16}
!23 = !{!"_ZTS6kdnode", !13, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !10, i64 32}
!24 = !{!23, !6, i64 24}
!25 = distinct !{!25, !20}


; 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.kdnode_backlog = type { ptr, i32 }

@.str = external hidden unnamed_addr constant [5 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [2 x i8], align 1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z11kdtree_dumpP6kdtree(ptr nocapture noundef readonly %0) local_unnamed_addr #1 {
  %2 = alloca [2 x %struct.kdnode_backlog], align 16
  %3 = load ptr, ptr %0, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #4
  %4 = getelementptr inbounds i8, ptr %0, i64 96
  br label %5

5:                                                ; preds = %34, %1
  %.035 = phi ptr [ %3, %1 ], [ %.136, %34 ]
  %.033 = phi ptr [ null, %1 ], [ %.134, %34 ]
  %.031 = phi ptr [ %2, %1 ], [ %.2, %34 ]
  %.030 = phi i32 [ 0, %1 ], [ %.1, %34 ]
  %.not = icmp eq ptr %.035, null
  br i1 %.not, label %29, label %6

6:                                                ; preds = %5
  %.not38 = icmp eq ptr %.033, null
  br i1 %.not38, label %10, label %7

7:                                                ; preds = %6
  %8 = getelementptr inbounds i8, ptr %.033, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !14
  br label %10

10:                                               ; preds = %6, %7
  %11 = phi i32 [ %9, %7 ], [ 1, %6 ]
  %12 = call noundef i32 @_ZL7is_leafP6kdnode(ptr noundef nonnull %.035)
  %13 = icmp ne i32 %12, 0
  %14 = icmp eq i32 %11, 0
  %or.cond = select i1 %13, i1 true, i1 %14
  %spec.select = select i1 %or.cond, ptr null, ptr %.035
  %spec.select45 = zext i1 %or.cond to i32
  store ptr %spec.select, ptr %.031, align 8
  %15 = getelementptr inbounds i8, ptr %.031, i64 8
  store i32 %spec.select45, ptr %15, align 8
  %16 = getelementptr inbounds i8, ptr %.031, i64 16
  %17 = add i32 %.030, 1
  %18 = icmp eq i32 %11, 1
  br i1 %18, label %.preheader, label %28

.preheader:                                       ; preds = %10
  %.not3942 = icmp slt i32 %.030, 1
  br i1 %.not3942, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader
  %19 = zext nneg i32 %.030 to i64
  %wide.trip.count = zext i32 %17 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %25
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %25 ]
  %20 = icmp eq i64 %indvars.iv, %19
  br i1 %20, label %25, label %21

21:                                               ; preds = %.lr.ph
  %22 = add nsw i64 %indvars.iv, -1
  %23 = getelementptr inbounds [2 x %struct.kdnode_backlog], ptr %2, i64 0, i64 %22
  %24 = load ptr, ptr %23, align 16, !tbaa !16
  %.not40 = icmp eq ptr %24, null
  %.str.3..str.2 = select i1 %.not40, ptr @.str.3, ptr @.str.2
  br label %25

25:                                               ; preds = %21, %.lr.ph
  %.str.1.sink = phi ptr [ @.str.1, %.lr.ph ], [ %.str.3..str.2, %21 ]
  %26 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str, ptr noundef nonnull %.str.1.sink)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !17

._crit_edge:                                      ; preds = %25, %.preheader
  %27 = load i32, ptr %4, align 8, !tbaa !19
  call void @_ZL11kdnode_dumpP6kdnodei(ptr noundef nonnull %.035, i32 noundef %27)
  br label %28

28:                                               ; preds = %._crit_edge, %10
  %.in.v = select i1 %14, i64 16, i64 24
  %.in = getelementptr inbounds i8, ptr %.035, i64 %.in.v
  br label %34

29:                                               ; preds = %5
  %30 = icmp eq ptr %.031, %2
  br i1 %30, label %35, label %31

31:                                               ; preds = %29
  %32 = getelementptr inbounds i8, ptr %.031, i64 -16
  %33 = add nsw i32 %.030, -1
  br label %34

34:                                               ; preds = %31, %28
  %.136.in = phi ptr [ %.in, %28 ], [ %32, %31 ]
  %.134 = phi ptr [ null, %28 ], [ %32, %31 ]
  %.2 = phi ptr [ %16, %28 ], [ %32, %31 ]
  %.1 = phi i32 [ %17, %28 ], [ %33, %31 ]
  %.136 = load ptr, ptr %.136.in, align 8, !tbaa !20
  br label %5, !llvm.loop !21

35:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #4
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef i32 @_ZL7is_leafP6kdnode(ptr noundef) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #3

; Function Attrs: mustprogress uwtable
declare hidden void @_ZL11kdnode_dumpP6kdnodei(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 mustprogress 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 = { nofree 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 #4 = { 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 0}
!6 = !{!"_ZTS6kdtree", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !11, i64 64, !13, i64 96, !13, i64 100}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"long", !8, i64 0}
!11 = !{!"_ZTS8knn_list", !7, i64 0, !12, i64 8, !7, i64 16, !7, i64 24}
!12 = !{!"float", !8, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !13, i64 8}
!15 = !{!"_ZTS14kdnode_backlog", !7, i64 0, !13, i64 8}
!16 = !{!15, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!6, !13, i64 96}
!20 = !{!7, !7, i64 0}
!21 = distinct !{!21, !18}


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