; LLVM IR from xboot/libcg :: src (cg)

; 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.cg_gradient_t = type { i32, i32, %struct.cg_matrix_t, [6 x double], double, %struct.anon }
%struct.cg_matrix_t = type { double, double, double, double, double, double }
%struct.anon = type { ptr, i32, i32 }
%struct.cg_gradient_stop_t = type { double, %struct.cg_color_t }
%struct.cg_color_t = type { double, double, double, double }

; 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: nounwind uwtable
define dso_local void @cg_gradient_add_stop_rgba(ptr noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) #1 {
  %7 = alloca ptr, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca ptr, align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store double %1, ptr %8, align 8, !tbaa !9
  store double %2, ptr %9, align 8, !tbaa !9
  store double %3, ptr %10, align 8, !tbaa !9
  store double %4, ptr %11, align 8, !tbaa !9
  store double %5, ptr %12, align 8, !tbaa !9
  %19 = load double, ptr %8, align 8, !tbaa !9
  %20 = fcmp olt double %19, 0.000000e+00
  br i1 %20, label %21, label %22

21:                                               ; preds = %6
  store double 0.000000e+00, ptr %8, align 8, !tbaa !9
  br label %22

22:                                               ; preds = %21, %6
  %23 = load double, ptr %8, align 8, !tbaa !9
  %24 = fcmp ogt double %23, 1.000000e+00
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store double 1.000000e+00, ptr %8, align 8, !tbaa !9
  br label %26

26:                                               ; preds = %25, %22
  br label %27

27:                                               ; preds = %26
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.cg_gradient_t, ptr %28, i32 0, i32 5
  %30 = getelementptr inbounds %struct.anon, ptr %29, i32 0, i32 1
  %31 = load i32, ptr %30, align 8, !tbaa !11
  %32 = add nsw i32 %31, 1
  %33 = load ptr, ptr %7, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.cg_gradient_t, ptr %33, i32 0, i32 5
  %35 = getelementptr inbounds %struct.anon, ptr %34, i32 0, i32 2
  %36 = load i32, ptr %35, align 4, !tbaa !16
  %37 = icmp sgt i32 %32, %36
  br i1 %37, label %38, label %80

38:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %39 = load ptr, ptr %7, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.cg_gradient_t, ptr %39, i32 0, i32 5
  %41 = getelementptr inbounds %struct.anon, ptr %40, i32 0, i32 1
  %42 = load i32, ptr %41, align 8, !tbaa !11
  %43 = add nsw i32 %42, 1
  store i32 %43, ptr %13, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %44 = load ptr, ptr %7, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.cg_gradient_t, ptr %44, i32 0, i32 5
  %46 = getelementptr inbounds %struct.anon, ptr %45, i32 0, i32 2
  %47 = load i32, ptr %46, align 4, !tbaa !16
  %48 = icmp eq i32 %47, 0
  br i1 %48, label %49, label %50

49:                                               ; preds = %38
  br label %55

50:                                               ; preds = %38
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.cg_gradient_t, ptr %51, i32 0, i32 5
  %53 = getelementptr inbounds %struct.anon, ptr %52, i32 0, i32 2
  %54 = load i32, ptr %53, align 4, !tbaa !16
  br label %55

55:                                               ; preds = %50, %49
  %56 = phi i32 [ 8, %49 ], [ %54, %50 ]
  store i32 %56, ptr %14, align 4, !tbaa !17
  br label %57

57:                                               ; preds = %61, %55
  %58 = load i32, ptr %14, align 4, !tbaa !17
  %59 = load i32, ptr %13, align 4, !tbaa !17
  %60 = icmp slt i32 %58, %59
  br i1 %60, label %61, label %64

61:                                               ; preds = %57
  %62 = load i32, ptr %14, align 4, !tbaa !17
  %63 = shl i32 %62, 1
  store i32 %63, ptr %14, align 4, !tbaa !17
  br label %57, !llvm.loop !18

64:                                               ; preds = %57
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.cg_gradient_t, ptr %65, i32 0, i32 5
  %67 = getelementptr inbounds %struct.anon, ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !20
  %69 = load i32, ptr %14, align 4, !tbaa !17
  %70 = sext i32 %69 to i64
  %71 = mul i64 %70, 40
  %72 = call ptr @realloc(ptr noundef %68, i64 noundef %71) #6
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.cg_gradient_t, ptr %73, i32 0, i32 5
  %75 = getelementptr inbounds %struct.anon, ptr %74, i32 0, i32 0
  store ptr %72, ptr %75, align 8, !tbaa !20
  %76 = load i32, ptr %14, align 4, !tbaa !17
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.cg_gradient_t, ptr %77, i32 0, i32 5
  %79 = getelementptr inbounds %struct.anon, ptr %78, i32 0, i32 2
  store i32 %76, ptr %79, align 4, !tbaa !16
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %80

80:                                               ; preds = %64, %27
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.cg_gradient_t, ptr %82, i32 0, i32 5
  %84 = getelementptr inbounds %struct.anon, ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !20
  store ptr %85, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %86 = load ptr, ptr %7, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.cg_gradient_t, ptr %86, i32 0, i32 5
  %88 = getelementptr inbounds %struct.anon, ptr %87, i32 0, i32 1
  %89 = load i32, ptr %88, align 8, !tbaa !11
  store i32 %89, ptr %16, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  store i32 0, ptr %17, align 4, !tbaa !17
  br label %90

90:                                               ; preds = %119, %81
  %91 = load i32, ptr %17, align 4, !tbaa !17
  %92 = load i32, ptr %16, align 4, !tbaa !17
  %93 = icmp slt i32 %91, %92
  br i1 %93, label %94, label %122

94:                                               ; preds = %90
  %95 = load double, ptr %8, align 8, !tbaa !9
  %96 = load ptr, ptr %15, align 8, !tbaa !5
  %97 = load i32, ptr %17, align 4, !tbaa !17
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %96, i64 %98
  %100 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %99, i32 0, i32 0
  %101 = load double, ptr %100, align 8, !tbaa !21
  %102 = fcmp olt double %95, %101
  br i1 %102, label %103, label %118

103:                                              ; preds = %94
  %104 = load ptr, ptr %15, align 8, !tbaa !5
  %105 = load i32, ptr %17, align 4, !tbaa !17
  %106 = add nsw i32 %105, 1
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %104, i64 %107
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = load i32, ptr %17, align 4, !tbaa !17
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %109, i64 %111
  %113 = load i32, ptr %16, align 4, !tbaa !17
  %114 = load i32, ptr %17, align 4, !tbaa !17
  %115 = sub nsw i32 %113, %114
  %116 = sext i32 %115 to i64
  %117 = mul i64 %116, 40
  call void @llvm.memmove.p0.p0.i64(ptr align 8 %108, ptr align 8 %112, i64 %117, i1 false)
  br label %122

118:                                              ; preds = %94
  br label %119

119:                                              ; preds = %118
  %120 = load i32, ptr %17, align 4, !tbaa !17
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %17, align 4, !tbaa !17
  br label %90, !llvm.loop !24

122:                                              ; preds = %103, %90
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %123 = load ptr, ptr %15, align 8, !tbaa !5
  %124 = load i32, ptr %17, align 4, !tbaa !17
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %123, i64 %125
  store ptr %126, ptr %18, align 8, !tbaa !5
  %127 = load double, ptr %8, align 8, !tbaa !9
  %128 = load ptr, ptr %18, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %128, i32 0, i32 0
  store double %127, ptr %129, align 8, !tbaa !21
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %130, i32 0, i32 1
  %132 = load double, ptr %9, align 8, !tbaa !9
  %133 = load double, ptr %10, align 8, !tbaa !9
  %134 = load double, ptr %11, align 8, !tbaa !9
  %135 = load double, ptr %12, align 8, !tbaa !9
  call void @cg_color_init_rgba(ptr noundef %131, double noundef %132, double noundef %133, double noundef %134, double noundef %135)
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.cg_gradient_t, ptr %136, i32 0, i32 5
  %138 = getelementptr inbounds %struct.anon, ptr %137, i32 0, i32 1
  %139 = load i32, ptr %138, align 8, !tbaa !11
  %140 = add nsw i32 %139, 1
  store i32 %140, ptr %138, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  ret void
}

; Function Attrs: nounwind allocsize(1)
declare ptr @realloc(ptr noundef, i64 noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #3

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cg_color_init_rgba(ptr noundef, double noundef, double noundef, double noundef, double noundef) #4

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

!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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !13, i64 120}
!12 = !{!"cg_gradient_t", !13, i64 0, !13, i64 4, !14, i64 8, !7, i64 56, !10, i64 104, !15, i64 112}
!13 = !{!"int", !7, i64 0}
!14 = !{!"cg_matrix_t", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40}
!15 = !{!"", !6, i64 0, !13, i64 8, !13, i64 12}
!16 = !{!12, !13, i64 124}
!17 = !{!13, !13, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !6, i64 112}
!21 = !{!22, !10, i64 0}
!22 = !{!"cg_gradient_stop_t", !10, i64 0, !23, i64 8}
!23 = !{!"cg_color_t", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!24 = distinct !{!24, !19}


; 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.cg_gradient_stop_t = type { double, %struct.cg_color_t }
%struct.cg_color_t = type { double, double, double, double }

; Function Attrs: nounwind uwtable
define dso_local void @cg_gradient_add_stop_rgba(ptr nocapture noundef %0, double noundef %1, double noundef %2, double noundef %3, double noundef %4, double noundef %5) local_unnamed_addr #0 {
  %7 = fcmp olt double %1, 0.000000e+00
  %.0 = select i1 %7, double 0.000000e+00, double %1
  %8 = fcmp ogt double %.0, 1.000000e+00
  %.1 = select i1 %8, double 1.000000e+00, double %.0
  %9 = getelementptr inbounds i8, ptr %0, i64 112
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = load i32, ptr %10, align 8, !tbaa !5
  %12 = getelementptr inbounds i8, ptr %0, i64 124
  %13 = load i32, ptr %12, align 4, !tbaa !14
  %.not = icmp slt i32 %11, %13
  br i1 %.not, label %._crit_edge, label %14

._crit_edge:                                      ; preds = %6
  %.pre = load ptr, ptr %9, align 8, !tbaa !15
  br label %23

14:                                               ; preds = %6
  %15 = icmp eq i32 %13, 0
  %spec.select = select i1 %15, i32 8, i32 %13
  br label %16

16:                                               ; preds = %16, %14
  %.039 = phi i32 [ %spec.select, %14 ], [ %17, %16 ]
  %.not44 = icmp sgt i32 %.039, %11
  %17 = shl i32 %.039, 1
  br i1 %.not44, label %18, label %16, !llvm.loop !16

18:                                               ; preds = %16
  %19 = load ptr, ptr %9, align 8, !tbaa !15
  %20 = sext i32 %.039 to i64
  %21 = mul nsw i64 %20, 40
  %22 = tail call ptr @realloc(ptr noundef %19, i64 noundef %21) #4
  store ptr %22, ptr %9, align 8, !tbaa !15
  store i32 %.039, ptr %12, align 4, !tbaa !14
  %.pre52 = load i32, ptr %10, align 8, !tbaa !5
  br label %23

23:                                               ; preds = %._crit_edge, %18
  %24 = phi i32 [ %11, %._crit_edge ], [ %.pre52, %18 ]
  %25 = phi ptr [ %.pre, %._crit_edge ], [ %22, %18 ]
  %26 = icmp sgt i32 %24, 0
  br i1 %26, label %.lr.ph.preheader, label %.loopexit

.lr.ph.preheader:                                 ; preds = %23
  %wide.trip.count = zext nneg i32 %24 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %36
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %36 ]
  %27 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %25, i64 %indvars.iv
  %28 = load double, ptr %27, align 8, !tbaa !18
  %29 = fcmp olt double %.1, %28
  br i1 %29, label %30, label %36

30:                                               ; preds = %.lr.ph
  %31 = trunc nuw nsw i64 %indvars.iv to i32
  %32 = getelementptr inbounds i8, ptr %27, i64 40
  %33 = sub nsw i32 %24, %31
  %34 = sext i32 %33 to i64
  %35 = mul nsw i64 %34, 40
  tail call void @llvm.memmove.p0.p0.i64(ptr nonnull align 8 %32, ptr nonnull align 8 %27, i64 %35, i1 false)
  br label %.loopexit

36:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph, !llvm.loop !21

.loopexit:                                        ; preds = %36, %23, %30
  %.03846 = phi i32 [ %31, %30 ], [ 0, %23 ], [ %24, %36 ]
  %37 = zext nneg i32 %.03846 to i64
  %38 = getelementptr inbounds %struct.cg_gradient_stop_t, ptr %25, i64 %37
  store double %.1, ptr %38, align 8, !tbaa !18
  %39 = getelementptr inbounds i8, ptr %38, i64 8
  tail call void @cg_color_init_rgba(ptr noundef nonnull %39, double noundef %2, double noundef %3, double noundef %4, double noundef %5)
  %40 = load i32, ptr %10, align 8, !tbaa !5
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %10, align 8, !tbaa !5
  ret void
}

; Function Attrs: mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, inaccessiblemem: readwrite)
declare noalias noundef ptr @realloc(ptr allocptr nocapture noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @cg_color_init_rgba(ptr noundef, double noundef, double noundef, double noundef, double noundef) local_unnamed_addr #3

attributes #0 = { 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 #1 = { mustprogress nounwind willreturn allockind("realloc") allocsize(1) memory(argmem: readwrite, 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 #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint 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 allocsize(1) }

!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 120}
!6 = !{!"cg_gradient_t", !7, i64 0, !7, i64 4, !10, i64 8, !8, i64 56, !11, i64 104, !12, i64 112}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"cg_matrix_t", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40}
!11 = !{!"double", !8, i64 0}
!12 = !{!"", !13, i64 0, !7, i64 8, !7, i64 12}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !7, i64 124}
!15 = !{!6, !13, i64 112}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!19, !11, i64 0}
!19 = !{!"cg_gradient_stop_t", !11, i64 0, !20, i64 8}
!20 = !{!"cg_color_t", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24}
!21 = distinct !{!21, !17}


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