; LLVM IR from NervanaSystems/ngraph :: doc/examples/mnist_mlp/mnist_loader.ll (ZN15MNistDataLoader4loadEv)

; 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.MNistDataLoader = type { i64, %class.MNistImageLoader, %class.MNistLabelLoader, i32, i64, i64, %"class.std::unique_ptr", %"class.std::unique_ptr", i64 }
%class.MNistImageLoader = type { %class.MNistLoader, i32, i32 }
%class.MNistLoader = type { ptr, %"class.std::__cxx11::basic_string", ptr, i32, i32, %struct._G_fpos_t }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct._G_fpos_t = type { i64, %struct.__mbstate_t }
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%class.MNistLabelLoader = type { %class.MNistLoader }
%"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.3" }
%"struct.std::_Head_base.3" = type { ptr }

; 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
declare dso_local void @_ZN11MNistLoader4readIfEEvPT_m(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11MNistLoader11read_scaledEPfm(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15MNistDataLoader6rewindEv(ptr noundef nonnull align 8 dereferenceable(208)) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15MNistDataLoader4loadEv(ptr noundef nonnull align 8 dereferenceable(208) %0) #1 align 2 {
  %2 = alloca ptr, align 8
  %3 = alloca i64, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %9 = load ptr, ptr %2, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #4
  %10 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 0
  %11 = load i64, ptr %10, align 8, !tbaa !9
  store i64 %11, ptr %3, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #4
  %12 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 6
  %13 = call noundef ptr @_ZNKSt10unique_ptrIA_fSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  store ptr %13, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %14 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 7
  %15 = call noundef ptr @_ZNKSt10unique_ptrIA_fSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  store ptr %15, ptr %5, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %57, %55, %1
  %17 = load i64, ptr %3, align 8, !tbaa !26
  %18 = icmp ugt i64 %17, 0
  br i1 %18, label %19, label %58

19:                                               ; preds = %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %20 = call noundef i64 @_ZN15MNistDataLoader9get_itemsEv(ptr noundef nonnull align 8 dereferenceable(208) %9)
  %21 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 4
  %22 = load i64, ptr %21, align 8, !tbaa !27
  %23 = sub i64 %20, %22
  store i64 %23, ptr %6, align 8, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull align 8 dereferenceable(8) %3)
  %25 = load i64, ptr %24, align 8, !tbaa !26
  store i64 %25, ptr %7, align 8, !tbaa !26
  %26 = load i64, ptr %7, align 8, !tbaa !26
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %28, label %29

28:                                               ; preds = %19
  call void @_ZN15MNistDataLoader6rewindEv(ptr noundef nonnull align 8 dereferenceable(208) %9)
  store i32 2, ptr %8, align 4
  br label %55, !llvm.loop !28

29:                                               ; preds = %19
  %30 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 1
  %31 = load ptr, ptr %4, align 8, !tbaa !5
  %32 = load i64, ptr %7, align 8, !tbaa !26
  %33 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 8
  %34 = load i64, ptr %33, align 8, !tbaa !30
  %35 = mul i64 %32, %34
  call void @_ZN11MNistLoader11read_scaledEPfm(ptr noundef nonnull align 8 dereferenceable(72) %30, ptr noundef %31, i64 noundef %35)
  %36 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 2
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load i64, ptr %7, align 8, !tbaa !26
  call void @_ZN11MNistLoader4readIfEEvPT_m(ptr noundef nonnull align 8 dereferenceable(72) %36, ptr noundef %37, i64 noundef %38)
  %39 = load i64, ptr %7, align 8, !tbaa !26
  %40 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 8
  %41 = load i64, ptr %40, align 8, !tbaa !30
  %42 = mul i64 %39, %41
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds float, ptr %43, i64 %42
  store ptr %44, ptr %4, align 8, !tbaa !5
  %45 = load i64, ptr %7, align 8, !tbaa !26
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds float, ptr %46, i64 %45
  store ptr %47, ptr %5, align 8, !tbaa !5
  %48 = load i64, ptr %7, align 8, !tbaa !26
  %49 = getelementptr inbounds %class.MNistDataLoader, ptr %9, i32 0, i32 4
  %50 = load i64, ptr %49, align 8, !tbaa !27
  %51 = add i64 %50, %48
  store i64 %51, ptr %49, align 8, !tbaa !27
  %52 = load i64, ptr %7, align 8, !tbaa !26
  %53 = load i64, ptr %3, align 8, !tbaa !26
  %54 = sub i64 %53, %52
  store i64 %54, ptr %3, align 8, !tbaa !26
  store i32 0, ptr %8, align 4
  br label %55

55:                                               ; preds = %29, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  %56 = load i32, ptr %8, align 4
  switch i32 %56, label %59 [
    i32 0, label %57
    i32 2, label %16
  ]

57:                                               ; preds = %55
  br label %16, !llvm.loop !28

58:                                               ; preds = %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void

59:                                               ; preds = %55
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIA_fSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15MNistDataLoader9get_itemsEv(ptr noundef nonnull align 8 dereferenceable(208)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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 = { 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 = { 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 #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, !11, i64 0}
!10 = !{!"_ZTS15MNistDataLoader", !11, i64 0, !12, i64 8, !19, i64 88, !16, i64 160, !11, i64 168, !11, i64 176, !20, i64 184, !20, i64 192, !11, i64 200}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTS16MNistImageLoader", !13, i64 0, !16, i64 72, !16, i64 76}
!13 = !{!"_ZTS11MNistLoader", !14, i64 8, !6, i64 40, !16, i64 48, !16, i64 52, !17, i64 56}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !15, i64 0, !11, i64 8, !7, i64 16}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTS9_G_fpos_t", !11, i64 0, !18, i64 8}
!18 = !{!"_ZTS11__mbstate_t", !16, i64 0, !7, i64 4}
!19 = !{!"_ZTS16MNistLabelLoader", !13, i64 0}
!20 = !{!"_ZTSSt10unique_ptrIA_fSt14default_deleteIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_dataIfSt14default_deleteIA_fELb1ELb1EE", !22, i64 0}
!22 = !{!"_ZTSSt15__uniq_ptr_implIfSt14default_deleteIA_fEE", !23, i64 0}
!23 = !{!"_ZTSSt5tupleIJPfSt14default_deleteIA_fEEE", !24, i64 0}
!24 = !{!"_ZTSSt11_Tuple_implILm0EJPfSt14default_deleteIA_fEEE", !25, i64 0}
!25 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !6, i64 0}
!26 = !{!11, !11, i64 0}
!27 = !{!10, !11, i64 168}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !11, i64 200}


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

; 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
declare dso_local void @_ZN11MNistLoader4readIfEEvPT_m(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN11MNistLoader11read_scaledEPfm(ptr noundef nonnull align 8 dereferenceable(72), ptr noundef, i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN15MNistDataLoader6rewindEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN15MNistDataLoader4loadEv(ptr noundef nonnull align 8 dereferenceable(208) %0) local_unnamed_addr #1 align 2 {
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #4
  %4 = load i64, ptr %0, align 8, !tbaa !5
  store i64 %4, ptr %2, align 8, !tbaa !25
  %5 = getelementptr inbounds i8, ptr %0, i64 184
  %6 = tail call noundef ptr @_ZNKSt10unique_ptrIA_fSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #4
  %7 = getelementptr inbounds i8, ptr %0, i64 192
  %8 = tail call noundef ptr @_ZNKSt10unique_ptrIA_fSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #4
  %.not14 = icmp eq i64 %4, 0
  br i1 %.not14, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  %10 = getelementptr inbounds i8, ptr %0, i64 8
  %11 = getelementptr inbounds i8, ptr %0, i64 200
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  br label %13

13:                                               ; preds = %.lr.ph, %32
  %.016 = phi ptr [ %6, %.lr.ph ], [ %.1, %32 ]
  %.01115 = phi ptr [ %8, %.lr.ph ], [ %.112, %32 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %14 = call noundef i64 @_ZN15MNistDataLoader9get_itemsEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %15 = load i64, ptr %9, align 8, !tbaa !26
  %16 = sub i64 %14, %15
  store i64 %16, ptr %3, align 8, !tbaa !25
  %17 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull align 8 dereferenceable(8) %2)
  %18 = load i64, ptr %17, align 8, !tbaa !25
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %20, label %21

20:                                               ; preds = %13
  call void @_ZN15MNistDataLoader6rewindEv(ptr noundef nonnull align 8 dereferenceable(208) %0)
  %.pre = load i64, ptr %2, align 8, !tbaa !25
  br label %32, !llvm.loop !27

21:                                               ; preds = %13
  %22 = load i64, ptr %11, align 8, !tbaa !29
  %23 = mul i64 %22, %18
  call void @_ZN11MNistLoader11read_scaledEPfm(ptr noundef nonnull align 8 dereferenceable(72) %10, ptr noundef %.016, i64 noundef %23)
  call void @_ZN11MNistLoader4readIfEEvPT_m(ptr noundef nonnull align 8 dereferenceable(72) %12, ptr noundef %.01115, i64 noundef %18)
  %24 = load i64, ptr %11, align 8, !tbaa !29
  %25 = mul i64 %24, %18
  %26 = getelementptr inbounds float, ptr %.016, i64 %25
  %27 = getelementptr inbounds float, ptr %.01115, i64 %18
  %28 = load i64, ptr %9, align 8, !tbaa !26
  %29 = add i64 %28, %18
  store i64 %29, ptr %9, align 8, !tbaa !26
  %30 = load i64, ptr %2, align 8, !tbaa !25
  %31 = sub i64 %30, %18
  store i64 %31, ptr %2, align 8, !tbaa !25
  br label %32

32:                                               ; preds = %21, %20
  %33 = phi i64 [ %.pre, %20 ], [ %31, %21 ]
  %.112 = phi ptr [ %.01115, %20 ], [ %27, %21 ]
  %.1 = phi ptr [ %.016, %20 ], [ %26, %21 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  %.not = icmp eq i64 %33, 0
  br i1 %.not, label %._crit_edge, label %13

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZNKSt10unique_ptrIA_fSt14default_deleteIS0_EE3getEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN15MNistDataLoader9get_itemsEv(ptr noundef nonnull align 8 dereferenceable(208)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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 = { 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 = { 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 #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 = !{!"_ZTS15MNistDataLoader", !7, i64 0, !10, i64 8, !18, i64 88, !15, i64 160, !7, i64 168, !7, i64 176, !19, i64 184, !19, i64 192, !7, i64 200}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS16MNistImageLoader", !11, i64 0, !15, i64 72, !15, i64 76}
!11 = !{!"_ZTS11MNistLoader", !12, i64 8, !14, i64 40, !15, i64 48, !15, i64 52, !16, i64 56}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !13, i64 0, !7, i64 8, !8, i64 16}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !14, i64 0}
!14 = !{!"any pointer", !8, i64 0}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS9_G_fpos_t", !7, i64 0, !17, i64 8}
!17 = !{!"_ZTS11__mbstate_t", !15, i64 0, !8, i64 4}
!18 = !{!"_ZTS16MNistLabelLoader", !11, i64 0}
!19 = !{!"_ZTSSt10unique_ptrIA_fSt14default_deleteIS0_EE", !20, i64 0}
!20 = !{!"_ZTSSt15__uniq_ptr_dataIfSt14default_deleteIA_fELb1ELb1EE", !21, i64 0}
!21 = !{!"_ZTSSt15__uniq_ptr_implIfSt14default_deleteIA_fEE", !22, i64 0}
!22 = !{!"_ZTSSt5tupleIJPfSt14default_deleteIA_fEEE", !23, i64 0}
!23 = !{!"_ZTSSt11_Tuple_implILm0EJPfSt14default_deleteIA_fEEE", !24, i64 0}
!24 = !{!"_ZTSSt10_Head_baseILm0EPfLb0EE", !14, i64 0}
!25 = !{!7, !7, i64 0}
!26 = !{!6, !7, i64 168}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!6, !7, i64 200}


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