; LLVM IR from BlueBrain/CoreNeuron :: coreneuron/utils/memory_utils.ll (ZN10coreneuron16report_mem_usageEPKcb)

; 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.coreneuron::corenrn_parameters" = type { %"struct.coreneuron::corenrn_parameters_data", %"class.std::unique_ptr" }
%"struct.coreneuron::corenrn_parameters_data" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, double, double, double, double, double, double, double, double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"struct.coreneuron::mpi_function" = type { %"struct.coreneuron::mpi_function_base" }
%"struct.coreneuron::mpi_function_base" = type { ptr, ptr }

@_ZN10coreneuron13corenrn_paramE = external global %"struct.coreneuron::corenrn_parameters", align 8
@_ZN10coreneuron20nrnmpi_dbl_allreduceE = external global %"struct.coreneuron::mpi_function", align 8
@_ZN10coreneuron15nrnmpi_numprocsE = external global i32, align 4
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@_ZN10coreneuron11nrnmpi_myidE = external global i32, align 4
@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@stdout = external global ptr, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN10coreneuron12nrn_mallinfoEv() #0

; 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: mustprogress uwtable
define dso_local void @_ZN10coreneuron16report_mem_usageEPKcb(ptr noundef %0, i1 noundef zeroext %1) #0 {
  %3 = alloca ptr, align 8
  %4 = alloca i8, align 1
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %12 = zext i1 %1 to i8
  store i8 %12, ptr %4, align 1, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %13 = call noundef double @_ZN10coreneuron12nrn_mallinfoEv()
  store double %13, ptr %8, align 8, !tbaa !11
  %14 = load i8, ptr getelementptr inbounds (%"struct.coreneuron::corenrn_parameters_data", ptr @_ZN10coreneuron13corenrn_paramE, i32 0, i32 10), align 8, !tbaa !13, !range !20, !noundef !21
  %15 = trunc i8 %14 to i1
  br i1 %15, label %16, label %23

16:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  store i32 1, ptr %9, align 4, !tbaa !22
  %17 = call noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN10coreneuron20nrnmpi_dbl_allreduceE, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %9)
  %18 = load i32, ptr @_ZN10coreneuron15nrnmpi_numprocsE, align 4, !tbaa !22
  %19 = sitofp i32 %18 to double
  %20 = fdiv double %17, %19
  store double %20, ptr %7, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  store i32 2, ptr %10, align 4, !tbaa !22
  %21 = call noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN10coreneuron20nrnmpi_dbl_allreduceE, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %10)
  store double %21, ptr %5, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #3
  store i32 3, ptr %11, align 4, !tbaa !22
  %22 = call noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN10coreneuron20nrnmpi_dbl_allreduceE, ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef nonnull align 4 dereferenceable(4) %11)
  store double %22, ptr %6, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #3
  br label %25

23:                                               ; preds = %2
  %24 = load double, ptr %8, align 8, !tbaa !11
  store double %24, ptr %6, align 8, !tbaa !11
  store double %24, ptr %5, align 8, !tbaa !11
  store double %24, ptr %7, align 8, !tbaa !11
  br label %25

25:                                               ; preds = %23, %16
  %26 = load i8, ptr %4, align 1, !tbaa !9, !range !20, !noundef !21
  %27 = trunc i8 %26 to i1
  br i1 %27, label %28, label %36

28:                                               ; preds = %25
  %29 = load i32, ptr @_ZN10coreneuron11nrnmpi_myidE, align 4, !tbaa !22
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = load double, ptr %8, align 8, !tbaa !11
  %32 = load double, ptr %5, align 8, !tbaa !11
  %33 = load double, ptr %6, align 8, !tbaa !11
  %34 = load double, ptr %7, align 8, !tbaa !11
  %35 = call i32 (ptr, ...) @printf(ptr noundef @.str.1, i32 noundef %29, ptr noundef %30, double noundef %31, double noundef %32, double noundef %33, double noundef %34)
  br label %46

36:                                               ; preds = %25
  %37 = load i32, ptr @_ZN10coreneuron11nrnmpi_myidE, align 4, !tbaa !22
  %38 = icmp eq i32 %37, 0
  br i1 %38, label %39, label %45

39:                                               ; preds = %36
  %40 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = load double, ptr %5, align 8, !tbaa !11
  %42 = load double, ptr %6, align 8, !tbaa !11
  %43 = load double, ptr %7, align 8, !tbaa !11
  %44 = call i32 (ptr, ...) @printf(ptr noundef @.str.2, ptr noundef %40, double noundef %41, double noundef %42, double noundef %43)
  br label %45

45:                                               ; preds = %39, %36
  br label %46

46:                                               ; preds = %45, %28
  %47 = load ptr, ptr @stdout, align 8, !tbaa !5
  %48 = call i32 @fflush(ptr noundef %47)
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) #0 align 2

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

declare i32 @fflush(ptr noundef) #2

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 = { "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 = !{!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 = !{!"bool", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !10, i64 40}
!14 = !{!"_ZTSN10coreneuron23corenrn_parameters_dataE", !15, i64 0, !15, i64 4, !15, i64 8, !15, i64 12, !15, i64 16, !15, i64 20, !15, i64 24, !15, i64 28, !15, i64 32, !15, i64 36, !10, i64 40, !10, i64 41, !10, i64 42, !10, i64 43, !10, i64 44, !10, i64 45, !10, i64 46, !10, i64 47, !10, i64 48, !16, i64 52, !12, i64 56, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !17, i64 120, !17, i64 152, !17, i64 184, !17, i64 216, !17, i64 248, !17, i64 280, !17, i64 312, !17, i64 344, !17, i64 376}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN10coreneuron23corenrn_parameters_data13verbose_levelE", !7, i64 0}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !19, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{i8 0, i8 2}
!21 = !{}
!22 = !{!15, !15, i64 0}


; 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.coreneuron::corenrn_parameters" = type { %"struct.coreneuron::corenrn_parameters_data", %"class.std::unique_ptr" }
%"struct.coreneuron::corenrn_parameters_data" = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, i8, i8, i8, i8, i8, i8, i8, i8, i32, double, double, double, double, double, double, double, double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon.0 }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon.0 = type { i64, [8 x i8] }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.2" }
%"struct.std::_Head_base.2" = type { ptr }
%"struct.coreneuron::mpi_function" = type { %"struct.coreneuron::mpi_function_base" }
%"struct.coreneuron::mpi_function_base" = type { ptr, ptr }

@_ZN10coreneuron13corenrn_paramE = external local_unnamed_addr global %"struct.coreneuron::corenrn_parameters", align 8
@_ZN10coreneuron20nrnmpi_dbl_allreduceE = external global %"struct.coreneuron::mpi_function", align 8
@_ZN10coreneuron15nrnmpi_numprocsE = external local_unnamed_addr global i32, align 4
@.str.1 = external hidden unnamed_addr constant [81 x i8], align 1
@_ZN10coreneuron11nrnmpi_myidE = external local_unnamed_addr global i32, align 4
@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN10coreneuron12nrn_mallinfoEv() local_unnamed_addr #0

; 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 uwtable
define dso_local void @_ZN10coreneuron16report_mem_usageEPKcb(ptr noundef %0, i1 noundef zeroext %1) local_unnamed_addr #0 {
  %3 = alloca double, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #3
  %7 = tail call noundef double @_ZN10coreneuron12nrn_mallinfoEv()
  store double %7, ptr %3, align 8, !tbaa !5
  %8 = load i8, ptr getelementptr inbounds (i8, ptr @_ZN10coreneuron13corenrn_paramE, i64 40), align 8, !tbaa !9, !range !18, !noundef !19
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %17

10:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %4) #3
  store i32 1, ptr %4, align 4, !tbaa !20
  %11 = call noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN10coreneuron20nrnmpi_dbl_allreduceE, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %4)
  %12 = load i32, ptr @_ZN10coreneuron15nrnmpi_numprocsE, align 4, !tbaa !20
  %13 = sitofp i32 %12 to double
  %14 = fdiv double %11, %13
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %4) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #3
  store i32 2, ptr %5, align 4, !tbaa !20
  %15 = call noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN10coreneuron20nrnmpi_dbl_allreduceE, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #3
  store i32 3, ptr %6, align 4, !tbaa !20
  %16 = call noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16) @_ZN10coreneuron20nrnmpi_dbl_allreduceE, ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 4 dereferenceable(4) %6)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #3
  br label %17

17:                                               ; preds = %2, %10
  %.09 = phi double [ %15, %10 ], [ %7, %2 ]
  %.08 = phi double [ %16, %10 ], [ %7, %2 ]
  %.0 = phi double [ %14, %10 ], [ %7, %2 ]
  %18 = load i32, ptr @_ZN10coreneuron11nrnmpi_myidE, align 4, !tbaa !20
  br i1 %1, label %19, label %22

19:                                               ; preds = %17
  %20 = load double, ptr %3, align 8, !tbaa !5
  %21 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1, i32 noundef %18, ptr noundef %0, double noundef %20, double noundef %.09, double noundef %.08, double noundef %.0)
  br label %26

22:                                               ; preds = %17
  %23 = icmp eq i32 %18, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %22
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2, ptr noundef %0, double noundef %.09, double noundef %.08, double noundef %.0)
  br label %26

26:                                               ; preds = %22, %24, %19
  %27 = load ptr, ptr @stdout, align 8, !tbaa !21
  %28 = call i32 @fflush(ptr noundef %27)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK10coreneuron12mpi_functionISt17integral_constantIPFddiEXadL_Z25nrnmpi_dbl_allreduce_implEEEEclIJRdiEEEDaDpOT_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #0 align 2

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

; Function Attrs: nofree nounwind
declare noundef i32 @fflush(ptr nocapture noundef) local_unnamed_addr #2

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 = { 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 #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 = !{!6, !6, i64 0}
!6 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 40}
!10 = !{!"_ZTSN10coreneuron23corenrn_parameters_dataE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !12, i64 40, !12, i64 41, !12, i64 42, !12, i64 43, !12, i64 44, !12, i64 45, !12, i64 46, !12, i64 47, !12, i64 48, !13, i64 52, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !14, i64 120, !14, i64 152, !14, i64 184, !14, i64 216, !14, i64 248, !14, i64 280, !14, i64 312, !14, i64 344, !14, i64 376}
!11 = !{!"int", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTSN10coreneuron23corenrn_parameters_data13verbose_levelE", !7, i64 0}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !17, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !16, i64 0}
!16 = !{!"any pointer", !7, i64 0}
!17 = !{!"long", !7, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!11, !11, i64 0}
!21 = !{!16, !16, i64 0}


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