; LLVM IR from balintbalazs/B3D :: source/src/B3D_cudaCompress/scan/scan_plan.ll (ZN12cudaCompress8ScanPlan8allocateEmmmm)

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

%"class.cudaCompress::ScanPlan" = type { i64, i64, ptr, i64, i64, ptr }

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12cudaCompress8ScanPlan8allocateEmmmm(ptr noundef nonnull align 8 dereferenceable(48) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) #0 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i64 %1, ptr %7, align 8, !tbaa !9
  store i64 %2, ptr %8, align 8, !tbaa !9
  store i64 %3, ptr %9, align 8, !tbaa !9
  store i64 %4, ptr %10, align 8, !tbaa !9
  %17 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 1024, ptr %11, align 8, !tbaa !9
  %18 = load i64, ptr %8, align 8, !tbaa !9
  %19 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 0
  store i64 %18, ptr %19, align 8, !tbaa !11
  %20 = load i64, ptr %9, align 8, !tbaa !9
  %21 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 4
  store i64 %20, ptr %21, align 8, !tbaa !13
  %22 = load i64, ptr %7, align 8, !tbaa !9
  %23 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 1
  store i64 %22, ptr %23, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  %24 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 0
  %25 = load i64, ptr %24, align 8, !tbaa !11
  store i64 %25, ptr %13, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %38, %5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  %27 = load i64, ptr %13, align 8, !tbaa !9
  %28 = add i64 %27, 1024
  %29 = sub i64 %28, 1
  %30 = udiv i64 %29, 1024
  store i64 %30, ptr %14, align 8, !tbaa !9
  %31 = load i64, ptr %14, align 8, !tbaa !9
  %32 = icmp ugt i64 %31, 1
  br i1 %32, label %33, label %36

33:                                               ; preds = %26
  %34 = load i64, ptr %12, align 8, !tbaa !9
  %35 = add i64 %34, 1
  store i64 %35, ptr %12, align 8, !tbaa !9
  br label %36

36:                                               ; preds = %33, %26
  %37 = load i64, ptr %14, align 8, !tbaa !9
  store i64 %37, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %38

38:                                               ; preds = %36
  %39 = load i64, ptr %13, align 8, !tbaa !9
  %40 = icmp ugt i64 %39, 1
  br i1 %40, label %26, label %41, !llvm.loop !15

41:                                               ; preds = %38
  %42 = load i64, ptr %12, align 8, !tbaa !9
  %43 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 3
  store i64 %42, ptr %43, align 8, !tbaa !17
  %44 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 3
  %45 = load i64, ptr %44, align 8, !tbaa !17
  %46 = mul i64 %45, 8
  %47 = call noalias ptr @malloc(i64 noundef %46) #6
  %48 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 2
  store ptr %47, ptr %48, align 8, !tbaa !18
  %49 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 4
  %50 = load i64, ptr %49, align 8, !tbaa !13
  %51 = icmp ugt i64 %50, 1
  br i1 %51, label %52, label %63

52:                                               ; preds = %41
  %53 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 3
  %54 = load i64, ptr %53, align 8, !tbaa !17
  %55 = add i64 %54, 1
  %56 = mul i64 %55, 8
  %57 = call noalias ptr @malloc(i64 noundef %56) #6
  %58 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 5
  store ptr %57, ptr %58, align 8, !tbaa !19
  %59 = load i64, ptr %10, align 8, !tbaa !9
  %60 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 5
  %61 = load ptr, ptr %60, align 8, !tbaa !19
  %62 = getelementptr inbounds i64, ptr %61, i64 0
  store i64 %59, ptr %62, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %52, %41
  %64 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 0
  %65 = load i64, ptr %64, align 8, !tbaa !11
  store i64 %65, ptr %13, align 8, !tbaa !9
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %66

66:                                               ; preds = %112, %63
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %67 = load i64, ptr %13, align 8, !tbaa !9
  %68 = add i64 %67, 1024
  %69 = sub i64 %68, 1
  %70 = udiv i64 %69, 1024
  store i64 %70, ptr %15, align 8, !tbaa !9
  %71 = load i64, ptr %15, align 8, !tbaa !9
  %72 = icmp ugt i64 %71, 1
  br i1 %72, label %73, label %110

73:                                               ; preds = %66
  %74 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 4
  %75 = load i64, ptr %74, align 8, !tbaa !13
  %76 = icmp ugt i64 %75, 1
  br i1 %76, label %77, label %97

77:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  %78 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 2
  %79 = load ptr, ptr %78, align 8, !tbaa !18
  %80 = load i64, ptr %12, align 8, !tbaa !9
  %81 = getelementptr inbounds ptr, ptr %79, i64 %80
  %82 = load i64, ptr %15, align 8, !tbaa !9
  %83 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 1
  %84 = load i64, ptr %83, align 8, !tbaa !14
  %85 = mul i64 %82, %84
  %86 = load i64, ptr %9, align 8, !tbaa !9
  %87 = call i32 @cudaMallocPitch(ptr noundef %81, ptr noundef %16, i64 noundef %85, i64 noundef %86)
  call void @_Z14__cudaSafeCall9cudaErrorPKci(i32 noundef %87, ptr noundef @.str, i32 noundef 81)
  %88 = load i64, ptr %16, align 8, !tbaa !9
  %89 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 1
  %90 = load i64, ptr %89, align 8, !tbaa !14
  %91 = udiv i64 %88, %90
  %92 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 5
  %93 = load ptr, ptr %92, align 8, !tbaa !19
  %94 = load i64, ptr %12, align 8, !tbaa !9
  %95 = add i64 %94, 1
  %96 = getelementptr inbounds i64, ptr %93, i64 %95
  store i64 %91, ptr %96, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %107

97:                                               ; preds = %73
  %98 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 2
  %99 = load ptr, ptr %98, align 8, !tbaa !18
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = getelementptr inbounds ptr, ptr %99, i64 %100
  %102 = load i64, ptr %15, align 8, !tbaa !9
  %103 = getelementptr inbounds %"class.cudaCompress::ScanPlan", ptr %17, i32 0, i32 1
  %104 = load i64, ptr %103, align 8, !tbaa !14
  %105 = mul i64 %102, %104
  %106 = call i32 @cudaMalloc(ptr noundef %101, i64 noundef %105)
  call void @_Z14__cudaSafeCall9cudaErrorPKci(i32 noundef %106, ptr noundef @.str, i32 noundef 86)
  br label %107

107:                                              ; preds = %97, %77
  %108 = load i64, ptr %12, align 8, !tbaa !9
  %109 = add i64 %108, 1
  store i64 %109, ptr %12, align 8, !tbaa !9
  br label %110

110:                                              ; preds = %107, %66
  %111 = load i64, ptr %15, align 8, !tbaa !9
  store i64 %111, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %112

112:                                              ; preds = %110
  %113 = load i64, ptr %13, align 8, !tbaa !9
  %114 = icmp ugt i64 %113, 1
  br i1 %114, label %66, label %115, !llvm.loop !20

115:                                              ; preds = %112
  call void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef @.str.1, ptr noundef @.str, i32 noundef 93)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  ret void
}

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

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

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14__cudaSafeCall9cudaErrorPKci(i32 noundef, ptr noundef, i32 noundef) #3

declare i32 @cudaMallocPitch(ptr noundef, ptr noundef, i64 noundef, i64 noundef) #4

declare i32 @cudaMalloc(ptr noundef, i64 noundef) #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef, ptr noundef, i32 noundef) #3

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

!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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_ZTSN12cudaCompress8ScanPlanE", !10, i64 0, !10, i64 8, !6, i64 16, !10, i64 24, !10, i64 32, !6, i64 40}
!13 = !{!12, !10, i64 32}
!14 = !{!12, !10, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !10, i64 24}
!18 = !{!12, !6, i64 16}
!19 = !{!12, !6, i64 40}
!20 = distinct !{!20, !16}


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

@.str = external hidden unnamed_addr constant [97 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [19 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12cudaCompress8ScanPlan8allocateEmmmm(ptr nocapture noundef nonnull align 8 dereferenceable(48) %0, i64 noundef %1, i64 noundef %2, i64 noundef %3, i64 noundef %4) local_unnamed_addr #0 align 2 {
  %6 = alloca i64, align 8
  store i64 %2, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  store i64 %3, ptr %7, align 8, !tbaa !11
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  store i64 %1, ptr %8, align 8, !tbaa !12
  br label %9

9:                                                ; preds = %9, %5
  %.021 = phi i64 [ %2, %5 ], [ %11, %9 ]
  %.0 = phi i64 [ 0, %5 ], [ %13, %9 ]
  %10 = add i64 %.021, 1023
  %11 = lshr i64 %10, 10
  %12 = icmp ugt i64 %10, 2047
  %13 = add i64 %.0, 1
  br i1 %12, label %9, label %14, !llvm.loop !13

14:                                               ; preds = %9
  %15 = getelementptr inbounds i8, ptr %0, i64 24
  store i64 %.0, ptr %15, align 8, !tbaa !15
  %16 = shl i64 %.0, 3
  %17 = tail call noalias ptr @malloc(i64 noundef %16) #5
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  store ptr %17, ptr %18, align 8, !tbaa !16
  %19 = icmp ugt i64 %3, 1
  br i1 %19, label %20, label %24

20:                                               ; preds = %14
  %21 = add i64 %16, 8
  %22 = tail call noalias ptr @malloc(i64 noundef %21) #5
  %23 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %22, ptr %23, align 8, !tbaa !17
  store i64 %4, ptr %22, align 8, !tbaa !18
  br label %24

24:                                               ; preds = %20, %14
  %25 = add i64 %2, 1023
  %26 = icmp ugt i64 %25, 2047
  br i1 %26, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %24
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  br label %28

28:                                               ; preds = %.lr.ph, %50
  %.in = phi i64 [ %25, %.lr.ph ], [ %52, %50 ]
  %.227 = phi i64 [ 0, %.lr.ph ], [ %51, %50 ]
  %29 = lshr i64 %.in, 10
  %30 = load i64, ptr %7, align 8, !tbaa !11
  %31 = icmp ugt i64 %30, 1
  br i1 %31, label %32, label %44

32:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %33 = load ptr, ptr %18, align 8, !tbaa !16
  %34 = getelementptr inbounds ptr, ptr %33, i64 %.227
  %35 = load i64, ptr %8, align 8, !tbaa !12
  %36 = mul i64 %35, %29
  %37 = call i32 @cudaMallocPitch(ptr noundef %34, ptr noundef nonnull %6, i64 noundef %36, i64 noundef %3)
  call void @_Z14__cudaSafeCall9cudaErrorPKci(i32 noundef %37, ptr noundef nonnull @.str, i32 noundef 81)
  %38 = load i64, ptr %6, align 8, !tbaa !18
  %39 = load i64, ptr %8, align 8, !tbaa !12
  %40 = udiv i64 %38, %39
  %41 = load ptr, ptr %27, align 8, !tbaa !17
  %42 = getelementptr i64, ptr %41, i64 %.227
  %43 = getelementptr i8, ptr %42, i64 8
  store i64 %40, ptr %43, align 8, !tbaa !18
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  br label %50

44:                                               ; preds = %28
  %45 = load ptr, ptr %18, align 8, !tbaa !16
  %46 = getelementptr inbounds ptr, ptr %45, i64 %.227
  %47 = load i64, ptr %8, align 8, !tbaa !12
  %48 = mul i64 %47, %29
  %49 = call i32 @cudaMalloc(ptr noundef %46, i64 noundef %48)
  call void @_Z14__cudaSafeCall9cudaErrorPKci(i32 noundef %49, ptr noundef nonnull @.str, i32 noundef 86)
  br label %50

50:                                               ; preds = %32, %44
  %51 = add i64 %.227, 1
  %52 = add nuw nsw i64 %29, 1023
  %53 = icmp ugt i64 %.in, 1049599
  br i1 %53, label %28, label %._crit_edge, !llvm.loop !19

._crit_edge:                                      ; preds = %50, %24
  call void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str, i32 noundef 93)
  ret void
}

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14__cudaSafeCall9cudaErrorPKci(i32 noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @cudaMallocPitch(ptr noundef, ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #4

declare i32 @cudaMalloc(ptr noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z14__cudaCheckMsgPKcS0_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(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 #3 = { inlinehint 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 #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 allocsize(0) }
attributes #6 = { 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 = !{!"_ZTSN12cudaCompress8ScanPlanE", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !10, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 32}
!12 = !{!6, !7, i64 8}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!6, !7, i64 24}
!16 = !{!6, !10, i64 16}
!17 = !{!6, !10, i64 40}
!18 = !{!7, !7, i64 0}
!19 = distinct !{!19, !14}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass