; LLVM IR from buresjan/optim_lbm :: nomad/src/Math/ArrayOfDouble.ll (ZN9NOMAD_4_313ArrayOfDouble3setEmPKNS_6DoubleE)

; 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.NOMAD_4_3::ArrayOfDouble" = type { ptr, i64, ptr }
%"class.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>

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

declare i32 @__gxx_personality_v0(...)

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

declare void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #1

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #4

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #5

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_313ArrayOfDouble3setEmPKNS_6DoubleE(ptr noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr noundef %2) #6 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  %11 = load ptr, ptr %4, align 8
  %12 = load i64, ptr %5, align 8, !tbaa !9
  %13 = icmp eq i64 %12, 0
  br i1 %13, label %17, label %14

14:                                               ; preds = %3
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = icmp ne ptr %15, null
  br i1 %16, label %18, label %17

17:                                               ; preds = %14, %3
  br label %95

18:                                               ; preds = %14
  %19 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %20 = load i64, ptr %19, align 8, !tbaa !11
  %21 = load i64, ptr %5, align 8, !tbaa !9
  %22 = icmp ne i64 %20, %21
  br i1 %22, label %23, label %74

23:                                               ; preds = %18
  %24 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !13
  %26 = icmp eq ptr %25, null
  br i1 %26, label %39, label %27

27:                                               ; preds = %23
  %28 = getelementptr inbounds i8, ptr %25, i64 -8
  %29 = load i64, ptr %28, align 8
  %30 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %25, i64 %29
  %31 = icmp eq ptr %25, %30
  br i1 %31, label %36, label %32

32:                                               ; preds = %32, %27
  %33 = phi ptr [ %30, %27 ], [ %34, %32 ]
  %34 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %33, i64 -1
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %34) #7
  %35 = icmp eq ptr %34, %25
  br i1 %35, label %36, label %32

36:                                               ; preds = %32, %27
  %37 = mul i64 24, %29
  %38 = add i64 %37, 8
  call void @_ZdaPvm(ptr noundef %28, i64 noundef %38) #8
  br label %39

39:                                               ; preds = %36, %23
  %40 = load i64, ptr %5, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  store i64 %40, ptr %41, align 8, !tbaa !11
  %42 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %43, i64 24)
  %45 = extractvalue { i64, i1 } %44, 1
  %46 = extractvalue { i64, i1 } %44, 0
  %47 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %46, i64 8)
  %48 = extractvalue { i64, i1 } %47, 1
  %49 = or i1 %45, %48
  %50 = extractvalue { i64, i1 } %47, 0
  %51 = select i1 %49, i64 -1, i64 %50
  %52 = call noalias noundef nonnull ptr @_Znam(i64 noundef %51) #9
  store i64 %43, ptr %52, align 16
  %53 = getelementptr inbounds i8, ptr %52, i64 8
  %54 = icmp eq i64 %43, 0
  br i1 %54, label %62, label %55

55:                                               ; preds = %39
  %56 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %53, i64 %43
  br label %57

57:                                               ; preds = %59, %55
  %58 = phi ptr [ %53, %55 ], [ %60, %59 ]
  invoke void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %58)
          to label %59 unwind label %64

59:                                               ; preds = %57
  %60 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %58, i64 1
  %61 = icmp eq ptr %60, %56
  br i1 %61, label %62, label %57

62:                                               ; preds = %59, %39
  %63 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  store ptr %53, ptr %63, align 8, !tbaa !13
  br label %74

64:                                               ; preds = %57
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %7, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %8, align 4
  %68 = icmp eq ptr %53, %58
  br i1 %68, label %73, label %69

69:                                               ; preds = %69, %64
  %70 = phi ptr [ %58, %64 ], [ %71, %69 ]
  %71 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %70, i64 -1
  call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %71) #7
  %72 = icmp eq ptr %71, %53
  br i1 %72, label %73, label %69

73:                                               ; preds = %69, %64
  call void @_ZdaPvm(ptr noundef %52, i64 noundef %51) #8
  br label %96

74:                                               ; preds = %62, %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  %75 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 2
  %76 = load ptr, ptr %75, align 8, !tbaa !13
  store ptr %76, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  store i64 0, ptr %10, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %87, %74
  %78 = load i64, ptr %10, align 8, !tbaa !9
  %79 = getelementptr inbounds %"class.NOMAD_4_3::ArrayOfDouble", ptr %11, i32 0, i32 1
  %80 = load i64, ptr %79, align 8, !tbaa !11
  %81 = icmp ult i64 %78, %80
  br i1 %81, label %83, label %82

82:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  br label %94

83:                                               ; preds = %77
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load ptr, ptr %9, align 8, !tbaa !5
  %86 = call noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %85, ptr noundef nonnull align 8 dereferenceable(17) %84)
  br label %87

87:                                               ; preds = %83
  %88 = load i64, ptr %10, align 8, !tbaa !9
  %89 = add i64 %88, 1
  store i64 %89, ptr %10, align 8, !tbaa !9
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %90, i32 1
  store ptr %91, ptr %9, align 8, !tbaa !5
  %92 = load ptr, ptr %6, align 8, !tbaa !5
  %93 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %92, i32 1
  store ptr %93, ptr %6, align 8, !tbaa !5
  br label %77, !llvm.loop !14

94:                                               ; preds = %82
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  br label %95

95:                                               ; preds = %94, %17
  ret void

96:                                               ; preds = %73
  %97 = load ptr, ptr %7, align 8
  %98 = load i32, ptr %8, align 4
  %99 = insertvalue { ptr, i32 } poison, ptr %97, 0
  %100 = insertvalue { ptr, i32 } %99, i32 %98, 1
  resume { ptr, i32 } %100
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nobuiltin 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 #5 = { nobuiltin 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 #6 = { 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 #7 = { nounwind }
attributes #8 = { builtin nounwind }
attributes #9 = { builtin 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 8}
!12 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !10, i64 8, !6, i64 16}
!13 = !{!12, !6, i64 16}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}


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

%"class.NOMAD_4_3::Double" = type <{ ptr, double, i8, [7 x i8] }>

declare i32 @__gxx_personality_v0(...)

declare void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17)) unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #4

declare noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(17)) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9NOMAD_4_313ArrayOfDouble3setEmPKNS_6DoubleE(ptr nocapture noundef nonnull align 8 dereferenceable(24) %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #5 align 2 personality ptr @__gxx_personality_v0 {
  %4 = icmp ne i64 %1, 0
  %5 = icmp ne ptr %2, null
  %or.cond = and i1 %4, %5
  br i1 %or.cond, label %6, label %.loopexit

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load i64, ptr %7, align 8, !tbaa !5
  %.not = icmp eq i64 %8, %1
  %.phi.trans.insert = getelementptr inbounds i8, ptr %0, i64 16
  %.pre = load ptr, ptr %.phi.trans.insert, align 8, !tbaa !11
  br i1 %.not, label %.lr.ph.preheader, label %9

9:                                                ; preds = %6
  %10 = icmp eq ptr %.pre, null
  br i1 %10, label %21, label %11

11:                                               ; preds = %9
  %12 = getelementptr inbounds i8, ptr %.pre, i64 -8
  %13 = load i64, ptr %12, align 8
  %14 = icmp eq i64 %13, 0
  br i1 %14, label %.loopexit29, label %.preheader28.preheader

.preheader28.preheader:                           ; preds = %11
  %15 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %.pre, i64 %13
  br label %.preheader28

.preheader28:                                     ; preds = %.preheader28.preheader, %.preheader28
  %16 = phi ptr [ %17, %.preheader28 ], [ %15, %.preheader28.preheader ]
  %17 = getelementptr inbounds i8, ptr %16, i64 -24
  tail call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %17) #6
  %18 = icmp eq ptr %17, %.pre
  br i1 %18, label %.loopexit29, label %.preheader28

.loopexit29:                                      ; preds = %.preheader28, %11
  %19 = mul i64 %13, 24
  %20 = add i64 %19, 8
  tail call void @_ZdaPvm(ptr noundef nonnull %12, i64 noundef %20) #7
  br label %21

21:                                               ; preds = %.loopexit29, %9
  store i64 %1, ptr %7, align 8, !tbaa !5
  %22 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %1, i64 24)
  %23 = extractvalue { i64, i1 } %22, 1
  %24 = extractvalue { i64, i1 } %22, 0
  %25 = tail call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %24, i64 8)
  %26 = extractvalue { i64, i1 } %25, 1
  %27 = or i1 %23, %26
  %28 = extractvalue { i64, i1 } %25, 0
  %29 = select i1 %27, i64 -1, i64 %28
  %30 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %29) #8
  store i64 %1, ptr %30, align 16
  %.ptr22 = getelementptr inbounds i8, ptr %30, i64 8
  %31 = getelementptr inbounds %"class.NOMAD_4_3::Double", ptr %.ptr22, i64 %1
  br label %32

32:                                               ; preds = %33, %21
  %.idx = phi i64 [ 8, %21 ], [ %.add, %33 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %30, i64 %.idx
  invoke void @_ZN9NOMAD_4_36DoubleC1Ev(ptr noundef nonnull align 8 dereferenceable(17) %.ptr.ptr)
          to label %33 unwind label %35

33:                                               ; preds = %32
  %.add = add nuw nsw i64 %.idx, 24
  %.ptr21 = getelementptr inbounds i8, ptr %30, i64 %.add
  %34 = icmp eq ptr %.ptr21, %31
  br i1 %34, label %39, label %32

35:                                               ; preds = %32
  %36 = landingpad { ptr, i32 }
          cleanup
  %37 = icmp eq i64 %.idx, 8
  br i1 %37, label %.loopexit27, label %.preheader

.preheader:                                       ; preds = %35, %.preheader
  %.idx23 = phi i64 [ %.add24, %.preheader ], [ %.idx, %35 ]
  %.add24 = add nsw i64 %.idx23, -24
  %.ptr26 = getelementptr inbounds i8, ptr %30, i64 %.add24
  tail call void @_ZN9NOMAD_4_36DoubleD1Ev(ptr noundef nonnull align 8 dereferenceable(17) %.ptr26) #6
  %38 = icmp eq i64 %.add24, 8
  br i1 %38, label %.loopexit27, label %.preheader

.loopexit27:                                      ; preds = %.preheader, %35
  tail call void @_ZdaPvm(ptr noundef nonnull %30, i64 noundef %29) #7
  resume { ptr, i32 } %36

39:                                               ; preds = %33
  store ptr %.ptr22, ptr %.phi.trans.insert, align 8, !tbaa !11
  %.pre36 = load i64, ptr %7, align 8, !tbaa !5
  %40 = icmp eq i64 %.pre36, 0
  br i1 %40, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %6, %39
  %.01332.ph = phi ptr [ %.ptr22, %39 ], [ %.pre, %6 ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %.033 = phi i64 [ %42, %.lr.ph ], [ 0, %.lr.ph.preheader ]
  %.01332 = phi ptr [ %43, %.lr.ph ], [ %.01332.ph, %.lr.ph.preheader ]
  %.01431 = phi ptr [ %44, %.lr.ph ], [ %2, %.lr.ph.preheader ]
  %41 = tail call noundef nonnull align 8 dereferenceable(17) ptr @_ZN9NOMAD_4_36DoubleaSERKS0_(ptr noundef nonnull align 8 dereferenceable(17) %.01332, ptr noundef nonnull align 8 dereferenceable(17) %.01431)
  %42 = add nuw i64 %.033, 1
  %43 = getelementptr inbounds i8, ptr %.01332, i64 24
  %44 = getelementptr inbounds i8, ptr %.01431, i64 24
  %45 = load i64, ptr %7, align 8, !tbaa !5
  %46 = icmp ult i64 %42, %45
  br i1 %46, label %.lr.ph, label %.loopexit, !llvm.loop !12

.loopexit:                                        ; preds = %.lr.ph, %39, %3
  ret void
}

attributes #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 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin 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 #4 = { nobuiltin 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 #5 = { 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 #6 = { nounwind }
attributes #7 = { builtin nounwind }
attributes #8 = { builtin 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, !7, i64 8}
!6 = !{!"_ZTSN9NOMAD_4_313ArrayOfDoubleE", !7, i64 8, !10, i64 16}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


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