; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseImageSaveJpeg.ll (ZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_m)

; 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.Simd::ImageSaver" = type { ptr, %"struct.Simd::ImageSaverParam", %"class.Simd::OutputMemoryStream" }
%"struct.Simd::ImageSaverParam" = type { i64, i64, i32, i32, i32, i32 }
%"class.Simd::OutputMemoryStream" = type { i64, ptr, i64, i64, i64, i64, i64 }
%"class.Simd::Base::ImageJpegSaver" = type { %"class.Simd::ImageSaver", %"struct.Simd::Array", ptr, ptr, ptr, ptr, ptr, i8, i32, i32, i32, [64 x float], [64 x float], [64 x i8], [64 x i8] }
%"struct.Simd::Array" = type { ptr, i64 }

@_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mE9FILL_BITS = external hidden constant [2 x i16], align 2

; 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 @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808)) #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56), i8 noundef zeroext) #2 align 2

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef, i32 noundef) #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4Base9WriteBitsERNS_18OutputMemoryStreamEPKt(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_m(ptr noundef nonnull align 8 dereferenceable(808) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) unnamed_addr #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i64, align 8
  %11 = alloca [3 x i32], align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i64 %2, ptr %8, align 8, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store i64 %4, ptr %10, align 8, !tbaa !9
  %14 = load ptr, ptr %6, align 8
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds ptr, ptr %15, i64 5
  %17 = load ptr, ptr %16, align 8
  call void %17(ptr noundef nonnull align 8 dereferenceable(808) %14)
  call void @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808) %14)
  call void @llvm.lifetime.start.p0(i64 12, ptr %11) #5
  call void @llvm.memset.p0.i64(ptr align 4 %11, i8 0, i64 12, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !13
  br label %18

18:                                               ; preds = %70, %5
  %19 = load i32, ptr %12, align 4, !tbaa !13
  %20 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 1
  %21 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %20, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !15
  %23 = trunc i64 %22 to i32
  %24 = icmp slt i32 %19, %23
  br i1 %24, label %26, label %25

25:                                               ; preds = %18
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %75

26:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %27 = load i32, ptr %12, align 4, !tbaa !13
  %28 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %14, i32 0, i32 9
  %29 = load i32, ptr %28, align 8, !tbaa !22
  %30 = add nsw i32 %27, %29
  %31 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 1
  %32 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %31, i32 0, i32 1
  %33 = load i64, ptr %32, align 8, !tbaa !15
  %34 = trunc i64 %33 to i32
  %35 = call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %30, i32 noundef %34)
  %36 = load i32, ptr %12, align 4, !tbaa !13
  %37 = sub nsw i32 %35, %36
  store i32 %37, ptr %13, align 4, !tbaa !13
  %38 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %14, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !26
  %40 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 2
  %41 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 1
  %42 = getelementptr inbounds %"struct.Simd::ImageSaverParam", ptr %41, i32 0, i32 0
  %43 = load i64, ptr %42, align 8, !tbaa !27
  %44 = trunc i64 %43 to i32
  %45 = load i32, ptr %13, align 4, !tbaa !13
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = load i64, ptr %8, align 8, !tbaa !9
  %48 = trunc i64 %47 to i32
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = load i64, ptr %10, align 8, !tbaa !9
  %51 = trunc i64 %50 to i32
  %52 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %14, i32 0, i32 11
  %53 = getelementptr inbounds [64 x float], ptr %52, i64 0, i64 0
  %54 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %14, i32 0, i32 12
  %55 = getelementptr inbounds [64 x float], ptr %54, i64 0, i64 0
  %56 = getelementptr inbounds [3 x i32], ptr %11, i64 0, i64 0
  call void %39(ptr noundef nonnull align 8 dereferenceable(56) %40, i32 noundef %44, i32 noundef %45, ptr noundef %46, i32 noundef %48, ptr noundef %49, i32 noundef %51, ptr noundef %53, ptr noundef %55, ptr noundef %56)
  %57 = load i32, ptr %13, align 4, !tbaa !13
  %58 = sext i32 %57 to i64
  %59 = load i64, ptr %8, align 8, !tbaa !9
  %60 = mul i64 %58, %59
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds i8, ptr %61, i64 %60
  store ptr %62, ptr %7, align 8, !tbaa !5
  %63 = load i32, ptr %13, align 4, !tbaa !13
  %64 = sdiv i32 %63, 2
  %65 = sext i32 %64 to i64
  %66 = load i64, ptr %10, align 8, !tbaa !9
  %67 = mul i64 %65, %66
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds i8, ptr %68, i64 %67
  store ptr %69, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %70

70:                                               ; preds = %26
  %71 = getelementptr inbounds %"class.Simd::Base::ImageJpegSaver", ptr %14, i32 0, i32 9
  %72 = load i32, ptr %71, align 8, !tbaa !22
  %73 = load i32, ptr %12, align 4, !tbaa !13
  %74 = add nsw i32 %73, %72
  store i32 %74, ptr %12, align 4, !tbaa !13
  br label %18, !llvm.loop !28

75:                                               ; preds = %25
  %76 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 2
  call void @_ZN4Simd4Base9WriteBitsERNS_18OutputMemoryStreamEPKt(ptr noundef nonnull align 8 dereferenceable(56) %76, ptr noundef @_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mE9FILL_BITS)
  %77 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 2
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %77, i8 noundef zeroext -1)
  %78 = getelementptr inbounds %"class.Simd::ImageSaver", ptr %14, i32 0, i32 2
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %78, i8 noundef zeroext -39)
  call void @llvm.lifetime.end.p0(i64 12, ptr %11) #5
  ret i1 true
}

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 = { alwaysinline 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 #3 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { alwaysinline 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 #5 = { 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 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"vtable pointer", !8, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = !{!16, !10, i64 16}
!16 = !{!"_ZTSN4Simd10ImageSaverE", !17, i64 8, !21, i64 40}
!17 = !{!"_ZTSN4Simd15ImageSaverParamE", !10, i64 0, !10, i64 8, !18, i64 16, !19, i64 20, !14, i64 24, !20, i64 28}
!18 = !{!"_ZTS19SimdPixelFormatType", !7, i64 0}
!19 = !{!"_ZTS17SimdImageFileType", !7, i64 0}
!20 = !{!"_ZTS11SimdYuvType", !7, i64 0}
!21 = !{!"_ZTSN4Simd18OutputMemoryStreamE", !10, i64 0, !6, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!22 = !{!23, !14, i64 160}
!23 = !{!"_ZTSN4Simd4Base14ImageJpegSaverE", !16, i64 0, !24, i64 96, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !25, i64 152, !14, i64 156, !14, i64 160, !14, i64 164, !7, i64 168, !7, i64 424, !7, i64 680, !7, i64 744}
!24 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!25 = !{!"bool", !7, i64 0}
!26 = !{!23, !6, i64 136}
!27 = !{!16, !10, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"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"

@_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mE9FILL_BITS = external hidden constant [2 x i16], align 2

; 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 @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808)) local_unnamed_addr #1 align 2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56), i8 noundef zeroext) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd4Base9WriteBitsERNS_18OutputMemoryStreamEPKt(ptr noundef nonnull align 8 dereferenceable(56), ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_m(ptr noundef nonnull align 8 dereferenceable(808) %0, ptr noundef %1, i64 noundef %2, ptr noundef %3, i64 noundef %4) unnamed_addr #1 align 2 {
  %6 = alloca [3 x i32], align 4
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %7, i64 40
  %9 = load ptr, ptr %8, align 8
  tail call void %9(ptr noundef nonnull align 8 dereferenceable(808) %0)
  tail call void @_ZN4Simd4Base14ImageJpegSaver11WriteHeaderEv(ptr noundef nonnull align 8 dereferenceable(808) %0)
  call void @llvm.lifetime.start.p0(i64 12, ptr nonnull %6) #5
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(12) %6, i8 0, i64 12, i1 false)
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load i64, ptr %10, align 8, !tbaa !8
  %12 = trunc i64 %11 to i32
  %13 = icmp sgt i32 %12, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %14 = getelementptr inbounds i8, ptr %0, i64 8
  %15 = getelementptr inbounds i8, ptr %0, i64 160
  %16 = getelementptr inbounds i8, ptr %0, i64 136
  %17 = getelementptr inbounds i8, ptr %0, i64 40
  %18 = trunc i64 %2 to i32
  %19 = trunc i64 %4 to i32
  %20 = getelementptr inbounds i8, ptr %0, i64 168
  %21 = getelementptr inbounds i8, ptr %0, i64 424
  %.pre = load i32, ptr %15, align 8, !tbaa !19
  br label %23

._crit_edge:                                      ; preds = %23, %5
  %22 = getelementptr inbounds i8, ptr %0, i64 40
  call void @_ZN4Simd4Base9WriteBitsERNS_18OutputMemoryStreamEPKt(ptr noundef nonnull align 8 dereferenceable(56) %22, ptr noundef nonnull @_ZZN4Simd4Base14ImageJpegSaver8ToStreamEPKhmS3_mE9FILL_BITS)
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %22, i8 noundef zeroext -1)
  call void @_ZN4Simd18OutputMemoryStream7Write8uEh(ptr noundef nonnull align 8 dereferenceable(56) %22, i8 noundef zeroext -39)
  call void @llvm.lifetime.end.p0(i64 12, ptr nonnull %6) #5
  ret i1 true

23:                                               ; preds = %.lr.ph, %23
  %24 = phi i32 [ %.pre, %.lr.ph ], [ %39, %23 ]
  %25 = phi i32 [ %12, %.lr.ph ], [ %42, %23 ]
  %.020 = phi ptr [ %1, %.lr.ph ], [ %34, %23 ]
  %.01519 = phi i32 [ 0, %.lr.ph ], [ %40, %23 ]
  %.01618 = phi ptr [ %3, %.lr.ph ], [ %38, %23 ]
  %26 = add nsw i32 %24, %.01519
  %27 = call noundef i32 @_ZN4Simd3MinIiEET_S1_S1_(i32 noundef %26, i32 noundef %25)
  %28 = sub nsw i32 %27, %.01519
  %29 = load ptr, ptr %16, align 8, !tbaa !23
  %30 = load i64, ptr %14, align 8, !tbaa !24
  %31 = trunc i64 %30 to i32
  call void %29(ptr noundef nonnull align 8 dereferenceable(56) %17, i32 noundef %31, i32 noundef %28, ptr noundef %.020, i32 noundef %18, ptr noundef %.01618, i32 noundef %19, ptr noundef nonnull %20, ptr noundef nonnull %21, ptr noundef nonnull %6)
  %32 = sext i32 %28 to i64
  %33 = mul i64 %32, %2
  %34 = getelementptr inbounds i8, ptr %.020, i64 %33
  %35 = sdiv i32 %28, 2
  %36 = sext i32 %35 to i64
  %37 = mul i64 %36, %4
  %38 = getelementptr inbounds i8, ptr %.01618, i64 %37
  %39 = load i32, ptr %15, align 8, !tbaa !19
  %40 = add nsw i32 %39, %.01519
  %41 = load i64, ptr %10, align 8, !tbaa !8
  %42 = trunc i64 %41 to i32
  %43 = icmp slt i32 %40, %42
  br i1 %43, label %23, label %._crit_edge, !llvm.loop !25
}

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 = { alwaysinline 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { alwaysinline 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 #5 = { 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 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !11, i64 16}
!9 = !{!"_ZTSN4Simd10ImageSaverE", !10, i64 8, !17, i64 40}
!10 = !{!"_ZTSN4Simd15ImageSaverParamE", !11, i64 0, !11, i64 8, !13, i64 16, !14, i64 20, !15, i64 24, !16, i64 28}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !7, i64 0}
!13 = !{!"_ZTS19SimdPixelFormatType", !12, i64 0}
!14 = !{!"_ZTS17SimdImageFileType", !12, i64 0}
!15 = !{!"int", !12, i64 0}
!16 = !{!"_ZTS11SimdYuvType", !12, i64 0}
!17 = !{!"_ZTSN4Simd18OutputMemoryStreamE", !11, i64 0, !18, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48}
!18 = !{!"any pointer", !12, i64 0}
!19 = !{!20, !15, i64 160}
!20 = !{!"_ZTSN4Simd4Base14ImageJpegSaverE", !9, i64 0, !21, i64 96, !18, i64 112, !18, i64 120, !18, i64 128, !18, i64 136, !18, i64 144, !22, i64 152, !15, i64 156, !15, i64 160, !15, i64 164, !12, i64 168, !12, i64 424, !12, i64 680, !12, i64 744}
!21 = !{!"_ZTSN4Simd5ArrayIhEE", !18, i64 0, !11, i64 8}
!22 = !{!"bool", !12, i64 0}
!23 = !{!20, !18, i64 136}
!24 = !{!9, !11, i64 8}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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