; LLVM IR from drohmer/cgp :: library/third_party/src/jpeg/jpgd.ll (ZN4jpgd12jpeg_decoder5allocEmb)

; 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.jpgd::jpeg_decoder" = type <{ [1 x %struct.__jmp_buf_tag], ptr, i32, i32, ptr, i32, [8 x i8], [4 x i8], [8 x ptr], [8 x ptr], [4 x ptr], i32, i32, [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], [4 x i32], i32, [4 x i32], [4 x i32], [4 x i32], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, [8 x ptr], [4 x ptr], [4 x ptr], i32, [4 x i32], [4 x i8], ptr, i32, i32, i8, [128 x i8], [8320 x i8], [128 x i8], [3 x i8], i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8, [3 x i8], i32, [4 x i32], [4 x i8], ptr, [10 x i32], ptr, [256 x i32], [256 x i32], [256 x i32], [256 x i32], ptr, ptr, i32, i8, [3 x i8], i32, [4 x i8] }>
%struct.__jmp_buf_tag = type { [8 x i64], i32, %struct.__sigset_t }
%struct.__sigset_t = type { [16 x i64] }
%"struct.jpgd::jpeg_decoder::mem_block" = type { ptr, i64, i64, [1 x i8] }

; 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 noreturn uwtable
declare dso_local void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13652), i32 noundef) #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4jpgd12jpeg_decoder5allocEmb(ptr noundef nonnull align 8 dereferenceable(13652) %0, i64 noundef %1, i1 noundef zeroext %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i8, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  %12 = zext i1 %2 to i8
  store i8 %12, ptr %6, align 1, !tbaa !11
  %13 = load ptr, ptr %4, align 8
  %14 = load i64, ptr %5, align 8, !tbaa !9
  %15 = icmp ugt i64 %14, 1
  br i1 %15, label %16, label %18

16:                                               ; preds = %3
  %17 = load i64, ptr %5, align 8, !tbaa !9
  br label %19

18:                                               ; preds = %3
  br label %19

19:                                               ; preds = %18, %16
  %20 = phi i64 [ %17, %16 ], [ 1, %18 ]
  %21 = add i64 %20, 3
  %22 = and i64 %21, -4
  store i64 %22, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store ptr null, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %23 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %13, i32 0, i32 1
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  store ptr %24, ptr %8, align 8, !tbaa !5
  br label %25

25:                                               ; preds = %53, %19
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = icmp ne ptr %26, null
  br i1 %27, label %29, label %28

28:                                               ; preds = %25
  store i32 2, ptr %9, align 4
  br label %57

29:                                               ; preds = %25
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %30, i32 0, i32 1
  %32 = load i64, ptr %31, align 8, !tbaa !17
  %33 = load i64, ptr %5, align 8, !tbaa !9
  %34 = add i64 %32, %33
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %35, i32 0, i32 2
  %37 = load i64, ptr %36, align 8, !tbaa !19
  %38 = icmp ule i64 %34, %37
  br i1 %38, label %39, label %52

39:                                               ; preds = %29
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %40, i32 0, i32 3
  %42 = getelementptr inbounds [1 x i8], ptr %41, i64 0, i64 0
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %43, i32 0, i32 1
  %45 = load i64, ptr %44, align 8, !tbaa !17
  %46 = getelementptr inbounds i8, ptr %42, i64 %45
  store ptr %46, ptr %7, align 8, !tbaa !5
  %47 = load i64, ptr %5, align 8, !tbaa !9
  %48 = load ptr, ptr %8, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %48, i32 0, i32 1
  %50 = load i64, ptr %49, align 8, !tbaa !17
  %51 = add i64 %50, %47
  store i64 %51, ptr %49, align 8, !tbaa !17
  store i32 2, ptr %9, align 4
  br label %57

52:                                               ; preds = %29
  br label %53

53:                                               ; preds = %52
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %54, i32 0, i32 0
  %56 = load ptr, ptr %55, align 8, !tbaa !20
  store ptr %56, ptr %8, align 8, !tbaa !5
  br label %25, !llvm.loop !21

57:                                               ; preds = %39, %28
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %58

58:                                               ; preds = %57
  %59 = load ptr, ptr %7, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %98, label %61

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %62 = load i64, ptr %5, align 8, !tbaa !9
  %63 = add i64 %62, 2047
  %64 = and i64 %63, -2048
  %65 = icmp ugt i64 32512, %64
  br i1 %65, label %66, label %67

66:                                               ; preds = %61
  br label %71

67:                                               ; preds = %61
  %68 = load i64, ptr %5, align 8, !tbaa !9
  %69 = add i64 %68, 2047
  %70 = and i64 %69, -2048
  br label %71

71:                                               ; preds = %67, %66
  %72 = phi i64 [ 32512, %66 ], [ %70, %67 ]
  %73 = trunc i64 %72 to i32
  store i32 %73, ptr %10, align 4, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %74 = load i32, ptr %10, align 4, !tbaa !23
  %75 = sext i32 %74 to i64
  %76 = add i64 32, %75
  %77 = call noundef ptr @_ZN4jpgdL11jpgd_mallocEm(i64 noundef %76)
  store ptr %77, ptr %11, align 8, !tbaa !5
  %78 = load ptr, ptr %11, align 8, !tbaa !5
  %79 = icmp ne ptr %78, null
  br i1 %79, label %81, label %80

80:                                               ; preds = %71
  call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13652) %13, i32 noundef -224) #6
  unreachable

81:                                               ; preds = %71
  %82 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %13, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !13
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %84, i32 0, i32 0
  store ptr %83, ptr %85, align 8, !tbaa !20
  %86 = load ptr, ptr %11, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.jpgd::jpeg_decoder", ptr %13, i32 0, i32 1
  store ptr %86, ptr %87, align 8, !tbaa !13
  %88 = load i64, ptr %5, align 8, !tbaa !9
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %89, i32 0, i32 1
  store i64 %88, ptr %90, align 8, !tbaa !17
  %91 = load i32, ptr %10, align 4, !tbaa !23
  %92 = sext i32 %91 to i64
  %93 = load ptr, ptr %11, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %93, i32 0, i32 2
  store i64 %92, ptr %94, align 8, !tbaa !19
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %"struct.jpgd::jpeg_decoder::mem_block", ptr %95, i32 0, i32 3
  %97 = getelementptr inbounds [1 x i8], ptr %96, i64 0, i64 0
  store ptr %97, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %98

98:                                               ; preds = %81, %58
  %99 = load i8, ptr %6, align 1, !tbaa !11, !range !24, !noundef !25
  %100 = trunc i8 %99 to i1
  br i1 %100, label %101, label %104

101:                                              ; preds = %98
  %102 = load ptr, ptr %7, align 8, !tbaa !5
  %103 = load i64, ptr %5, align 8, !tbaa !9
  call void @llvm.memset.p0.i64(ptr align 1 %102, i8 0, i64 %103, i1 false)
  br label %104

104:                                              ; preds = %101, %98
  %105 = load ptr, ptr %7, align 8, !tbaa !5
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret ptr %105
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN4jpgdL11jpgd_mallocEm(i64 noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress noreturn 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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { nounwind }
attributes #6 = { noreturn }

!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 = !{!"bool", !7, i64 0}
!13 = !{!14, !6, i64 200}
!14 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !6, i64 200, !15, i64 208, !15, i64 212, !6, i64 216, !15, i64 224, !7, i64 228, !7, i64 240, !7, i64 304, !7, i64 368, !15, i64 400, !15, i64 404, !7, i64 408, !7, i64 424, !7, i64 440, !7, i64 456, !7, i64 472, !7, i64 488, !15, i64 504, !7, i64 508, !7, i64 524, !7, i64 540, !15, i64 556, !15, i64 560, !15, i64 564, !15, i64 568, !15, i64 572, !15, i64 576, !15, i64 580, !15, i64 584, !15, i64 588, !15, i64 592, !7, i64 596, !15, i64 636, !15, i64 640, !15, i64 644, !15, i64 648, !15, i64 652, !7, i64 656, !7, i64 720, !7, i64 752, !15, i64 784, !7, i64 788, !6, i64 808, !15, i64 816, !15, i64 820, !12, i64 824, !7, i64 825, !7, i64 953, !7, i64 9273, !15, i64 9404, !15, i64 9408, !15, i64 9412, !15, i64 9416, !15, i64 9420, !15, i64 9424, !15, i64 9428, !15, i64 9432, !15, i64 9436, !15, i64 9440, !12, i64 9444, !15, i64 9448, !7, i64 9452, !6, i64 9472, !7, i64 9480, !6, i64 9520, !7, i64 9528, !7, i64 10552, !7, i64 11576, !7, i64 12600, !6, i64 13624, !6, i64 13632, !16, i64 13640, !12, i64 13644, !15, i64 13648}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"_ZTSN4jpgd12jpeg_decoder9mem_blockE", !6, i64 0, !10, i64 8, !10, i64 16, !7, i64 24}
!19 = !{!18, !10, i64 16}
!20 = !{!18, !6, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!15, !15, i64 0}
!24 = !{i8 0, i8 2}
!25 = !{}


; 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 noreturn uwtable
declare dso_local void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13652), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef nonnull ptr @_ZN4jpgd12jpeg_decoder5allocEmb(ptr noundef nonnull align 8 dereferenceable(13652) %0, i64 noundef %1, i1 noundef zeroext %2) local_unnamed_addr #1 align 2 {
  %4 = tail call i64 @llvm.umax.i64(i64 %1, i64 1)
  %5 = add i64 %4, 3
  %6 = and i64 %5, -4
  %7 = getelementptr inbounds i8, ptr %0, i64 200
  br label %8

8:                                                ; preds = %9, %3
  %.027.in = phi ptr [ %7, %3 ], [ %.027, %9 ]
  %.027 = load ptr, ptr %.027.in, align 8, !tbaa !5
  %.not = icmp eq ptr %.027, null
  br i1 %.not, label %19, label %9

9:                                                ; preds = %8
  %10 = getelementptr inbounds i8, ptr %.027, i64 8
  %11 = load i64, ptr %10, align 8, !tbaa !9
  %12 = add i64 %11, %6
  %13 = getelementptr inbounds i8, ptr %.027, i64 16
  %14 = load i64, ptr %13, align 8, !tbaa !12
  %.not30 = icmp ugt i64 %12, %14
  br i1 %.not30, label %8, label %15, !llvm.loop !13

15:                                               ; preds = %9
  %16 = getelementptr inbounds i8, ptr %.027, i64 8
  %17 = getelementptr inbounds i8, ptr %.027, i64 24
  %18 = getelementptr inbounds i8, ptr %17, i64 %11
  store i64 %12, ptr %16, align 8, !tbaa !9
  br label %32

19:                                               ; preds = %8
  %20 = add i64 %6, 2047
  %21 = and i64 %20, -2048
  %22 = tail call i64 @llvm.umax.i64(i64 %21, i64 32512)
  %sext = shl i64 %22, 32
  %23 = ashr exact i64 %sext, 32
  %24 = or disjoint i64 %23, 32
  %25 = tail call noundef ptr @_ZN4jpgdL11jpgd_mallocEm(i64 noundef %24)
  %.not32 = icmp eq ptr %25, null
  br i1 %.not32, label %26, label %27

26:                                               ; preds = %19
  tail call void @_ZN4jpgd12jpeg_decoder13stop_decodingENS_11jpgd_statusE(ptr noundef nonnull align 8 dereferenceable(13652) %0, i32 noundef -224) #5
  unreachable

27:                                               ; preds = %19
  %28 = load ptr, ptr %7, align 8, !tbaa !15
  store ptr %28, ptr %25, align 8, !tbaa !20
  store ptr %25, ptr %7, align 8, !tbaa !15
  %29 = getelementptr inbounds i8, ptr %25, i64 8
  store i64 %6, ptr %29, align 8, !tbaa !9
  %30 = getelementptr inbounds i8, ptr %25, i64 16
  store i64 %23, ptr %30, align 8, !tbaa !12
  %31 = getelementptr inbounds i8, ptr %25, i64 24
  br label %32

32:                                               ; preds = %15, %27
  %.1 = phi ptr [ %18, %15 ], [ %31, %27 ]
  br i1 %2, label %33, label %34

33:                                               ; preds = %32
  tail call void @llvm.memset.p0.i64(ptr nonnull align 1 %.1, i8 0, i64 %6, i1 false)
  br label %34

34:                                               ; preds = %33, %32
  ret ptr %.1
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden noundef ptr @_ZN4jpgdL11jpgd_mallocEm(i64 noundef) local_unnamed_addr #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: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #4

attributes #0 = { mustprogress noreturn 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 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 = { 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 #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { noreturn }

!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 8}
!10 = !{!"_ZTSN4jpgd12jpeg_decoder9mem_blockE", !6, i64 0, !11, i64 8, !11, i64 16, !7, i64 24}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = !{!16, !6, i64 200}
!16 = !{!"_ZTSN4jpgd12jpeg_decoderE", !7, i64 0, !6, i64 200, !17, i64 208, !17, i64 212, !6, i64 216, !17, i64 224, !7, i64 228, !7, i64 240, !7, i64 304, !7, i64 368, !17, i64 400, !17, i64 404, !7, i64 408, !7, i64 424, !7, i64 440, !7, i64 456, !7, i64 472, !7, i64 488, !17, i64 504, !7, i64 508, !7, i64 524, !7, i64 540, !17, i64 556, !17, i64 560, !17, i64 564, !17, i64 568, !17, i64 572, !17, i64 576, !17, i64 580, !17, i64 584, !17, i64 588, !17, i64 592, !7, i64 596, !17, i64 636, !17, i64 640, !17, i64 644, !17, i64 648, !17, i64 652, !7, i64 656, !7, i64 720, !7, i64 752, !17, i64 784, !7, i64 788, !6, i64 808, !17, i64 816, !17, i64 820, !18, i64 824, !7, i64 825, !7, i64 953, !7, i64 9273, !17, i64 9404, !17, i64 9408, !17, i64 9412, !17, i64 9416, !17, i64 9420, !17, i64 9424, !17, i64 9428, !17, i64 9432, !17, i64 9436, !17, i64 9440, !18, i64 9444, !17, i64 9448, !7, i64 9452, !6, i64 9472, !7, i64 9480, !6, i64 9520, !7, i64 9528, !7, i64 10552, !7, i64 11576, !7, i64 12600, !6, i64 13624, !6, i64 13632, !19, i64 13640, !18, i64 13644, !17, i64 13648}
!17 = !{!"int", !7, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{!"_ZTSN4jpgd11jpgd_statusE", !7, i64 0}
!20 = !{!10, !6, i64 0}


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