; LLVM IR from erwincoumans/tiny-differentiable-simulator :: third_party/tiny_audio/b3WriteWavFile.ll (ZN14b3WriteWavFile4tickEPdi)

; 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.b3WriteWavFile = type { ptr, ptr }
%struct.b3WriteWavFileInternalData = type { ptr, i32, i32, i32, i8, i32, i32, i32, i8, i8, %"class.std::vector", %"class.std::vector.0" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, 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 @_ZN14b3WriteWavFile9flushDataEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) #1 align 2

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

18:                                               ; preds = %78, %3
  %19 = load i32, ptr %10, align 4, !tbaa !9
  %20 = load i32, ptr %6, align 4, !tbaa !9
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %23, label %22

22:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #2
  br label %81

23:                                               ; preds = %18
  store i32 0, ptr %8, align 4, !tbaa !9
  br label %24

24:                                               ; preds = %69, %23
  %25 = load i32, ptr %8, align 4, !tbaa !9
  %26 = load i32, ptr %9, align 4, !tbaa !9
  %27 = icmp slt i32 %25, %26
  br i1 %27, label %28, label %72

28:                                               ; preds = %24
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #2
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = load i32, ptr %7, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %7, align 4, !tbaa !9
  %32 = sext i32 %30 to i64
  %33 = getelementptr inbounds double, ptr %29, i64 %32
  %34 = load double, ptr %33, align 8, !tbaa !24
  store double %34, ptr %11, align 8, !tbaa !24
  %35 = load double, ptr %11, align 8, !tbaa !24
  %36 = fcmp olt double %35, -1.000000e+00
  br i1 %36, label %37, label %41

37:                                               ; preds = %28
  store double -1.000000e+00, ptr %11, align 8, !tbaa !24
  %38 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %39, i32 0, i32 8
  store i8 1, ptr %40, align 4, !tbaa !26
  br label %41

41:                                               ; preds = %37, %28
  %42 = load double, ptr %11, align 8, !tbaa !24
  %43 = fcmp ogt double %42, 1.000000e+00
  br i1 %43, label %44, label %48

44:                                               ; preds = %41
  store double 1.000000e+00, ptr %11, align 8, !tbaa !24
  %45 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !11
  %47 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %46, i32 0, i32 8
  store i8 1, ptr %47, align 4, !tbaa !26
  br label %48

48:                                               ; preds = %44, %41
  %49 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %50 = load ptr, ptr %49, align 8, !tbaa !11
  %51 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %50, i32 0, i32 3
  %52 = load i32, ptr %51, align 8, !tbaa !27
  %53 = icmp eq i32 %52, 32
  br i1 %53, label %54, label %60

54:                                               ; preds = %48
  %55 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %56 = load ptr, ptr %55, align 8, !tbaa !11
  %57 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %56, i32 0, i32 10
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #2
  %58 = load double, ptr %11, align 8, !tbaa !24
  %59 = fptrunc double %58 to float
  store float %59, ptr %12, align 4, !tbaa !28
  call void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 4 dereferenceable(4) %12)
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #2
  br label %64

60:                                               ; preds = %48
  %61 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %62, i32 0, i32 11
  call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %63, ptr noundef nonnull align 8 dereferenceable(8) %11)
  br label %64

64:                                               ; preds = %60, %54
  %65 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %66 = load ptr, ptr %65, align 8, !tbaa !11
  %67 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %66, i32 0, i32 7
  %68 = load i32, ptr %67, align 8, !tbaa !30
  call void @_ZN14b3WriteWavFile9flushDataEi(ptr noundef nonnull align 8 dereferenceable(16) %13, i32 noundef %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #2
  br label %69

69:                                               ; preds = %64
  %70 = load i32, ptr %8, align 4, !tbaa !9
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !9
  br label %24, !llvm.loop !31

72:                                               ; preds = %24
  %73 = getelementptr inbounds %class.b3WriteWavFile, ptr %13, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  %75 = getelementptr inbounds %struct.b3WriteWavFileInternalData, ptr %74, i32 0, i32 5
  %76 = load i32, ptr %75, align 8, !tbaa !33
  %77 = add nsw i32 %76, 1
  store i32 %77, ptr %75, align 8, !tbaa !33
  br label %78

78:                                               ; preds = %72
  %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 %18, !llvm.loop !34

81:                                               ; preds = %22
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #2
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) #1 align 2

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

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 = { 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 8}
!12 = !{!"_ZTS14b3WriteWavFile", !6, i64 8}
!13 = !{!14, !10, i64 8}
!14 = !{!"_ZTS26b3WriteWavFileInternalData", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !15, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !15, i64 36, !15, i64 37, !16, i64 40, !20, i64 64}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIfSaIfEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{!25, !25, i64 0}
!25 = !{!"double", !7, i64 0}
!26 = !{!14, !15, i64 36}
!27 = !{!14, !10, i64 16}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !7, i64 0}
!30 = !{!14, !10, i64 32}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!14, !10, i64 24}
!34 = distinct !{!34, !32}


; 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 @_ZN14b3WriteWavFile9flushDataEi(ptr noundef nonnull align 8 dereferenceable(16), i32 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14b3WriteWavFile4tickEPdi(ptr noundef nonnull align 8 dereferenceable(16) %0, ptr nocapture noundef readonly %1, i32 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = alloca double, align 8
  %5 = alloca float, align 4
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  %7 = load ptr, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !10
  %10 = icmp sgt i32 %2, 0
  br i1 %10, label %.preheader.lr.ph, label %._crit_edge14

.preheader.lr.ph:                                 ; preds = %3
  %11 = icmp sgt i32 %9, 0
  br i1 %11, label %.preheader.us, label %.preheader.lr.ph.split

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.013.us = phi i32 [ %42, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %.0812.us = phi i32 [ %13, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %12 = sext i32 %.0812.us to i64
  %13 = add i32 %9, %.0812.us
  br label %14

14:                                               ; preds = %.preheader.us, %34
  %indvars.iv = phi i64 [ %12, %.preheader.us ], [ %indvars.iv.next, %34 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #2
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %15 = getelementptr inbounds double, ptr %1, i64 %indvars.iv
  %16 = load double, ptr %15, align 8, !tbaa !22
  store double %16, ptr %4, align 8, !tbaa !22
  %17 = fcmp olt double %16, -1.000000e+00
  br i1 %17, label %.thread.us, label %18

18:                                               ; preds = %14
  %19 = fcmp ogt double %16, 1.000000e+00
  %.pre = load ptr, ptr %6, align 8, !tbaa !5
  br i1 %19, label %20, label %23

20:                                               ; preds = %18
  store double 1.000000e+00, ptr %4, align 8, !tbaa !22
  br label %.sink.split

.thread.us:                                       ; preds = %14
  store double -1.000000e+00, ptr %4, align 8, !tbaa !22
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  br label %.sink.split

.sink.split:                                      ; preds = %20, %.thread.us
  %.sink19 = phi ptr [ %21, %.thread.us ], [ %.pre, %20 ]
  %.ph = phi double [ -1.000000e+00, %.thread.us ], [ 1.000000e+00, %20 ]
  %22 = getelementptr inbounds i8, ptr %.sink19, i64 36
  store i8 1, ptr %22, align 4, !tbaa !24
  br label %23

23:                                               ; preds = %.sink.split, %18
  %24 = phi double [ %16, %18 ], [ %.ph, %.sink.split ]
  %25 = phi ptr [ %.pre, %18 ], [ %.sink19, %.sink.split ]
  %26 = getelementptr inbounds i8, ptr %25, i64 16
  %27 = load i32, ptr %26, align 8, !tbaa !25
  %28 = icmp eq i32 %27, 32
  br i1 %28, label %31, label %29

29:                                               ; preds = %23
  %30 = getelementptr inbounds i8, ptr %25, i64 64
  call void @_ZNSt6vectorIdSaIdEE9push_backERKd(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef nonnull align 8 dereferenceable(8) %4)
  br label %34

31:                                               ; preds = %23
  %32 = getelementptr inbounds i8, ptr %25, i64 40
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #2
  %33 = fptrunc double %24 to float
  store float %33, ptr %5, align 4, !tbaa !26
  call void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24) %32, ptr noundef nonnull align 4 dereferenceable(4) %5)
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #2
  br label %34

34:                                               ; preds = %31, %29
  %35 = load ptr, ptr %6, align 8, !tbaa !5
  %36 = getelementptr inbounds i8, ptr %35, i64 32
  %37 = load i32, ptr %36, align 8, !tbaa !28
  call void @_ZN14b3WriteWavFile9flushDataEi(ptr noundef nonnull align 8 dereferenceable(16) %0, i32 noundef %37)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #2
  %lftr.wideiv = trunc i64 %indvars.iv.next to i32
  %exitcond.not = icmp eq i32 %13, %lftr.wideiv
  br i1 %exitcond.not, label %._crit_edge.us, label %14, !llvm.loop !29

._crit_edge.us:                                   ; preds = %34
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 24
  %40 = load i32, ptr %39, align 8, !tbaa !31
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %39, align 8, !tbaa !31
  %42 = add nuw nsw i32 %.013.us, 1
  %exitcond17.not = icmp eq i32 %42, %2
  br i1 %exitcond17.not, label %._crit_edge14, label %.preheader.us, !llvm.loop !32

.preheader.lr.ph.split:                           ; preds = %.preheader.lr.ph
  %43 = getelementptr inbounds i8, ptr %7, i64 24
  %.promoted = load i32, ptr %43, align 8, !tbaa !31
  %44 = add i32 %.promoted, %2
  store i32 %44, ptr %43, align 8, !tbaa !31
  br label %._crit_edge14

._crit_edge14:                                    ; preds = %._crit_edge.us, %.preheader.lr.ph.split, %3
  ret void
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt6vectorIfSaIfEE9push_backEOf(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 4 dereferenceable(4)) local_unnamed_addr #1 align 2

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

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 = { 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 8}
!6 = !{!"_ZTS14b3WriteWavFile", !7, i64 8}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !12, i64 8}
!11 = !{!"_ZTS26b3WriteWavFileInternalData", !7, i64 0, !12, i64 8, !12, i64 12, !12, i64 16, !13, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 36, !13, i64 37, !14, i64 40, !18, i64 64}
!12 = !{!"int", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTSSt6vectorIfSaIfEE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!18 = !{!"_ZTSSt6vectorIdSaIdEE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!22 = !{!23, !23, i64 0}
!23 = !{!"double", !8, i64 0}
!24 = !{!11, !13, i64 36}
!25 = !{!11, !12, i64 16}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !8, i64 0}
!28 = !{!11, !12, i64 32}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!11, !12, i64 24}
!32 = distinct !{!32, !30}


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