; LLVM IR from EyalAr/lwip :: src/lib/jpeg (jdhuff)

; 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.jpeg_decompress_struct = type { ptr, ptr, ptr, ptr, i32, i32, ptr, i32, i32, i32, i32, i32, i32, i32, double, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, [4 x ptr], [4 x ptr], [4 x ptr], i32, ptr, i32, i32, i32, [16 x i8], [16 x i8], [16 x i8], i32, i32, i8, i8, i8, i16, i16, i32, i8, i32, i32, ptr, i32, i32, i32, i32, i32, ptr, i32, [4 x ptr], i32, i32, i32, [10 x i32], i32, i32, i32, i32, i32, ptr, i32, i32, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%struct.jpeg_memory_mgr = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64, i64 }
%struct.huff_entropy_decoder = type { %struct.jpeg_entropy_decoder, %struct.bitread_perm_state, %struct.savable_state, i32, i32, [4 x ptr], ptr, [4 x ptr], [4 x ptr], [10 x ptr], [10 x ptr], [10 x i32] }
%struct.jpeg_entropy_decoder = type { ptr, ptr, ptr }
%struct.bitread_perm_state = type { i64, i32 }
%struct.savable_state = type { i32, [4 x i32] }

; Function Attrs: nounwind uwtable
define dso_local void @jinit_huff_decoder(ptr noundef %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #2
  %7 = load ptr, ptr %2, align 8, !tbaa !5
  %8 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %7, i32 0, i32 1
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %9, i32 0, i32 0
  %11 = load ptr, ptr %10, align 8, !tbaa !14
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = call ptr %11(ptr noundef %12, i32 noundef 1, i64 noundef 376)
  store ptr %13, ptr %3, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.huff_entropy_decoder, ptr %14, i32 0, i32 0
  %16 = load ptr, ptr %2, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %16, i32 0, i32 89
  store ptr %15, ptr %17, align 8, !tbaa !17
  %18 = load ptr, ptr %3, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.huff_entropy_decoder, ptr %18, i32 0, i32 0
  %20 = getelementptr inbounds %struct.jpeg_entropy_decoder, ptr %19, i32 0, i32 0
  store ptr @start_pass_huff_decoder, ptr %20, align 8, !tbaa !18
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.huff_entropy_decoder, ptr %21, i32 0, i32 0
  %23 = getelementptr inbounds %struct.jpeg_entropy_decoder, ptr %22, i32 0, i32 2
  store ptr @finish_pass_huff, ptr %23, align 8, !tbaa !23
  %24 = load ptr, ptr %2, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %24, i32 0, i32 46
  %26 = load i32, ptr %25, align 4, !tbaa !24
  %27 = icmp ne i32 %26, 0
  br i1 %27, label %28, label %83

28:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #2
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  %29 = load ptr, ptr %2, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !9
  %32 = getelementptr inbounds %struct.jpeg_memory_mgr, ptr %31, i32 0, i32 0
  %33 = load ptr, ptr %32, align 8, !tbaa !14
  %34 = load ptr, ptr %2, align 8, !tbaa !5
  %35 = load ptr, ptr %2, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %35, i32 0, i32 9
  %37 = load i32, ptr %36, align 8, !tbaa !25
  %38 = mul nsw i32 %37, 64
  %39 = sext i32 %38 to i64
  %40 = mul i64 %39, 4
  %41 = call ptr %33(ptr noundef %34, i32 noundef 1, i64 noundef %40)
  %42 = load ptr, ptr %2, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %42, i32 0, i32 39
  store ptr %41, ptr %43, align 8, !tbaa !26
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %44, i32 0, i32 39
  %46 = load ptr, ptr %45, align 8, !tbaa !26
  %47 = getelementptr inbounds [64 x i32], ptr %46, i64 0
  %48 = getelementptr inbounds [64 x i32], ptr %47, i64 0, i64 0
  store ptr %48, ptr %5, align 8, !tbaa !5
  store i32 0, ptr %6, align 4, !tbaa !27
  br label %49

49:                                               ; preds = %66, %28
  %50 = load i32, ptr %6, align 4, !tbaa !27
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.jpeg_decompress_struct, ptr %51, i32 0, i32 9
  %53 = load i32, ptr %52, align 8, !tbaa !25
  %54 = icmp slt i32 %50, %53
  br i1 %54, label %55, label %69

55:                                               ; preds = %49
  store i32 0, ptr %4, align 4, !tbaa !27
  br label %56

56:                                               ; preds = %62, %55
  %57 = load i32, ptr %4, align 4, !tbaa !27
  %58 = icmp slt i32 %57, 64
  br i1 %58, label %59, label %65

59:                                               ; preds = %56
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds i32, ptr %60, i32 1
  store ptr %61, ptr %5, align 8, !tbaa !5
  store i32 -1, ptr %60, align 4, !tbaa !27
  br label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %4, align 4, !tbaa !27
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %4, align 4, !tbaa !27
  br label %56, !llvm.loop !28

65:                                               ; preds = %56
  br label %66

66:                                               ; preds = %65
  %67 = load i32, ptr %6, align 4, !tbaa !27
  %68 = add nsw i32 %67, 1
  store i32 %68, ptr %6, align 4, !tbaa !27
  br label %49, !llvm.loop !30

69:                                               ; preds = %49
  store i32 0, ptr %4, align 4, !tbaa !27
  br label %70

70:                                               ; preds = %79, %69
  %71 = load i32, ptr %4, align 4, !tbaa !27
  %72 = icmp slt i32 %71, 4
  br i1 %72, label %73, label %82

73:                                               ; preds = %70
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.huff_entropy_decoder, ptr %74, i32 0, i32 5
  %76 = load i32, ptr %4, align 4, !tbaa !27
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [4 x ptr], ptr %75, i64 0, i64 %77
  store ptr null, ptr %78, align 8, !tbaa !5
  br label %79

79:                                               ; preds = %73
  %80 = load i32, ptr %4, align 4, !tbaa !27
  %81 = add nsw i32 %80, 1
  store i32 %81, ptr %4, align 4, !tbaa !27
  br label %70, !llvm.loop !31

82:                                               ; preds = %70
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #2
  br label %102

83:                                               ; preds = %1
  store i32 0, ptr %4, align 4, !tbaa !27
  br label %84

84:                                               ; preds = %98, %83
  %85 = load i32, ptr %4, align 4, !tbaa !27
  %86 = icmp slt i32 %85, 4
  br i1 %86, label %87, label %101

87:                                               ; preds = %84
  %88 = load ptr, ptr %3, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.huff_entropy_decoder, ptr %88, i32 0, i32 8
  %90 = load i32, ptr %4, align 4, !tbaa !27
  %91 = sext i32 %90 to i64
  %92 = getelementptr inbounds [4 x ptr], ptr %89, i64 0, i64 %91
  store ptr null, ptr %92, align 8, !tbaa !5
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.huff_entropy_decoder, ptr %93, i32 0, i32 7
  %95 = load i32, ptr %4, align 4, !tbaa !27
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds [4 x ptr], ptr %94, i64 0, i64 %96
  store ptr null, ptr %97, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %87
  %99 = load i32, ptr %4, align 4, !tbaa !27
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %4, align 4, !tbaa !27
  br label %84, !llvm.loop !32

101:                                              ; preds = %84
  br label %102

102:                                              ; preds = %101, %82
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #2
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #2
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @start_pass_huff_decoder(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @finish_pass_huff(ptr noundef) #0

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !6, i64 8}
!10 = !{!"jpeg_decompress_struct", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !11, i64 36, !6, i64 40, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !12, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156, !6, i64 160, !11, i64 168, !11, i64 172, !11, i64 176, !11, i64 180, !11, i64 184, !6, i64 192, !7, i64 200, !7, i64 232, !7, i64 264, !11, i64 296, !6, i64 304, !11, i64 312, !11, i64 316, !11, i64 320, !7, i64 324, !7, i64 340, !7, i64 356, !11, i64 372, !11, i64 376, !7, i64 380, !7, i64 381, !7, i64 382, !13, i64 384, !13, i64 386, !11, i64 388, !7, i64 392, !11, i64 396, !11, i64 400, !6, i64 408, !11, i64 416, !11, i64 420, !11, i64 424, !11, i64 428, !11, i64 432, !6, i64 440, !11, i64 448, !7, i64 456, !11, i64 488, !11, i64 492, !11, i64 496, !7, i64 500, !11, i64 540, !11, i64 544, !11, i64 548, !11, i64 552, !11, i64 556, !6, i64 560, !11, i64 568, !11, i64 572, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !6, i64 608, !6, i64 616, !6, i64 624, !6, i64 632, !6, i64 640, !6, i64 648, !6, i64 656}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!"short", !7, i64 0}
!14 = !{!15, !6, i64 0}
!15 = !{!"jpeg_memory_mgr", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !16, i64 88, !16, i64 96}
!16 = !{!"long", !7, i64 0}
!17 = !{!10, !6, i64 624}
!18 = !{!19, !6, i64 0}
!19 = !{!"", !20, i64 0, !21, i64 24, !22, i64 40, !11, i64 60, !11, i64 64, !7, i64 72, !6, i64 104, !7, i64 112, !7, i64 144, !7, i64 176, !7, i64 256, !7, i64 336}
!20 = !{!"jpeg_entropy_decoder", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"", !16, i64 0, !11, i64 8}
!22 = !{!"", !11, i64 0, !7, i64 4}
!23 = !{!19, !6, i64 16}
!24 = !{!10, !11, i64 316}
!25 = !{!10, !11, i64 56}
!26 = !{!10, !6, i64 192}
!27 = !{!11, !11, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = distinct !{!30, !29}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}


; 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: nounwind uwtable
define dso_local void @jinit_huff_decoder(ptr noundef %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 8
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = load ptr, ptr %3, align 8, !tbaa !13
  %5 = tail call ptr %4(ptr noundef %0, i32 noundef 1, i64 noundef 376) #2
  %6 = getelementptr inbounds i8, ptr %0, i64 624
  store ptr %5, ptr %6, align 8, !tbaa !16
  store ptr @start_pass_huff_decoder, ptr %5, align 8, !tbaa !17
  %7 = getelementptr inbounds i8, ptr %5, i64 16
  store ptr @finish_pass_huff, ptr %7, align 8, !tbaa !22
  %8 = getelementptr inbounds i8, ptr %0, i64 316
  %9 = load i32, ptr %8, align 4, !tbaa !23
  %.not = icmp eq i32 %9, 0
  br i1 %.not, label %.preheader, label %11

.preheader:                                       ; preds = %1
  %10 = getelementptr inbounds i8, ptr %5, i64 112
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %10, i8 0, i64 64, i1 false)
  br label %.loopexit

11:                                               ; preds = %1
  %12 = load ptr, ptr %2, align 8, !tbaa !5
  %13 = load ptr, ptr %12, align 8, !tbaa !13
  %14 = getelementptr inbounds i8, ptr %0, i64 56
  %15 = load i32, ptr %14, align 8, !tbaa !24
  %16 = shl nsw i32 %15, 6
  %17 = sext i32 %16 to i64
  %18 = shl nsw i64 %17, 2
  %19 = tail call ptr %13(ptr noundef nonnull %0, i32 noundef 1, i64 noundef %18) #2
  %20 = getelementptr inbounds i8, ptr %0, i64 192
  store ptr %19, ptr %20, align 8, !tbaa !25
  %21 = load i32, ptr %14, align 8, !tbaa !24
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.preheader32, label %.preheader30

.preheader32:                                     ; preds = %11, %.preheader32
  %.036 = phi i32 [ %23, %.preheader32 ], [ 0, %11 ]
  %.02735 = phi ptr [ %scevgep, %.preheader32 ], [ %19, %11 ]
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(256) %.02735, i8 -1, i64 256, i1 false), !tbaa !26
  %scevgep = getelementptr i8, ptr %.02735, i64 256
  %23 = add nuw nsw i32 %.036, 1
  %24 = load i32, ptr %14, align 8, !tbaa !24
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %.preheader32, label %.preheader30, !llvm.loop !27

.preheader30:                                     ; preds = %.preheader32, %11
  %26 = getelementptr inbounds i8, ptr %5, i64 72
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(32) %26, i8 0, i64 32, i1 false), !tbaa !29
  br label %.loopexit

.loopexit:                                        ; preds = %.preheader30, %.preheader
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @start_pass_huff_decoder(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @finish_pass_huff(ptr noundef) #0

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

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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
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 = !{!"jpeg_decompress_struct", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 36, !7, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !11, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156, !7, i64 160, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !7, i64 192, !8, i64 200, !8, i64 232, !8, i64 264, !10, i64 296, !7, i64 304, !10, i64 312, !10, i64 316, !10, i64 320, !8, i64 324, !8, i64 340, !8, i64 356, !10, i64 372, !10, i64 376, !8, i64 380, !8, i64 381, !8, i64 382, !12, i64 384, !12, i64 386, !10, i64 388, !8, i64 392, !10, i64 396, !10, i64 400, !7, i64 408, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !7, i64 440, !10, i64 448, !8, i64 456, !10, i64 488, !10, i64 492, !10, i64 496, !8, i64 500, !10, i64 540, !10, i64 544, !10, i64 548, !10, i64 552, !10, i64 556, !7, i64 560, !10, i64 568, !10, i64 572, !7, i64 576, !7, i64 584, !7, i64 592, !7, i64 600, !7, i64 608, !7, i64 616, !7, i64 624, !7, i64 632, !7, i64 640, !7, i64 648, !7, i64 656}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"short", !8, i64 0}
!13 = !{!14, !7, i64 0}
!14 = !{!"jpeg_memory_mgr", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !15, i64 88, !15, i64 96}
!15 = !{!"long", !8, i64 0}
!16 = !{!6, !7, i64 624}
!17 = !{!18, !7, i64 0}
!18 = !{!"", !19, i64 0, !20, i64 24, !21, i64 40, !10, i64 60, !10, i64 64, !8, i64 72, !7, i64 104, !8, i64 112, !8, i64 144, !8, i64 176, !8, i64 256, !8, i64 336}
!19 = !{!"jpeg_entropy_decoder", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"", !15, i64 0, !10, i64 8}
!21 = !{!"", !10, i64 0, !8, i64 4}
!22 = !{!18, !7, i64 16}
!23 = !{!6, !10, i64 316}
!24 = !{!6, !10, i64 56}
!25 = !{!6, !7, i64 192}
!26 = !{!10, !10, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!7, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,MemCpyOptPass,SROAPass,SimplifyCFGPass,TailCallElimPass