; LLVM IR from HarshCasper/NeoAlgo :: C-Plus-Plus/sort/pigeon_hole_sort.ll (Z21find_max_min_elementsPii)

; 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.LargestAndSmallest = type { i32, i32 }

; Function Attrs: mustprogress nounwind uwtable
define dso_local i64 @_Z21find_max_min_elementsPii(ptr noundef %0, i32 noundef %1) #0 {
  %3 = alloca %struct.LargestAndSmallest, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #2
  %7 = load i32, ptr %5, align 4, !tbaa !9
  %8 = srem i32 %7, 2
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %10, label %19

10:                                               ; preds = %2
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds i32, ptr %11, i64 0
  %13 = load i32, ptr %12, align 4, !tbaa !9
  %14 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  store i32 %13, ptr %14, align 4, !tbaa !11
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds i32, ptr %15, i64 0
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  store i32 %17, ptr %18, align 4, !tbaa !13
  store i32 1, ptr %6, align 4, !tbaa !9
  br label %46

19:                                               ; preds = %2
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds i32, ptr %20, i64 0
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds i32, ptr %23, i64 1
  %25 = load i32, ptr %24, align 4, !tbaa !9
  %26 = icmp sgt i32 %22, %25
  br i1 %26, label %27, label %36

27:                                               ; preds = %19
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds i32, ptr %28, i64 1
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  store i32 %30, ptr %31, align 4, !tbaa !11
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = getelementptr inbounds i32, ptr %32, i64 0
  %34 = load i32, ptr %33, align 4, !tbaa !9
  %35 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  store i32 %34, ptr %35, align 4, !tbaa !13
  br label %45

36:                                               ; preds = %19
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds i32, ptr %37, i64 0
  %39 = load i32, ptr %38, align 4, !tbaa !9
  %40 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  store i32 %39, ptr %40, align 4, !tbaa !11
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = getelementptr inbounds i32, ptr %41, i64 1
  %43 = load i32, ptr %42, align 4, !tbaa !9
  %44 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  store i32 %43, ptr %44, align 4, !tbaa !13
  br label %45

45:                                               ; preds = %36, %27
  store i32 2, ptr %6, align 4, !tbaa !9
  br label %46

46:                                               ; preds = %45, %10
  br label %47

47:                                               ; preds = %135, %46
  %48 = load i32, ptr %6, align 4, !tbaa !9
  %49 = load i32, ptr %5, align 4, !tbaa !9
  %50 = sub nsw i32 %49, 1
  %51 = icmp slt i32 %48, %50
  br i1 %51, label %52, label %138

52:                                               ; preds = %47
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = load i32, ptr %6, align 4, !tbaa !9
  %55 = sext i32 %54 to i64
  %56 = getelementptr inbounds i32, ptr %53, i64 %55
  %57 = load i32, ptr %56, align 4, !tbaa !9
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = load i32, ptr %6, align 4, !tbaa !9
  %60 = add nsw i32 %59, 1
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds i32, ptr %58, i64 %61
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp sgt i32 %57, %63
  br i1 %64, label %65, label %100

65:                                               ; preds = %52
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = load i32, ptr %6, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds i32, ptr %66, i64 %68
  %70 = load i32, ptr %69, align 4, !tbaa !9
  %71 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  %72 = load i32, ptr %71, align 4, !tbaa !13
  %73 = icmp sgt i32 %70, %72
  br i1 %73, label %74, label %81

74:                                               ; preds = %65
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = load i32, ptr %6, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds i32, ptr %75, i64 %77
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  store i32 %79, ptr %80, align 4, !tbaa !13
  br label %81

81:                                               ; preds = %74, %65
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %6, align 4, !tbaa !9
  %84 = add nsw i32 %83, 1
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i32, ptr %82, i64 %85
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  %89 = load i32, ptr %88, align 4, !tbaa !11
  %90 = icmp slt i32 %87, %89
  br i1 %90, label %91, label %99

91:                                               ; preds = %81
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load i32, ptr %6, align 4, !tbaa !9
  %94 = add nsw i32 %93, 1
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds i32, ptr %92, i64 %95
  %97 = load i32, ptr %96, align 4, !tbaa !9
  %98 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  store i32 %97, ptr %98, align 4, !tbaa !11
  br label %99

99:                                               ; preds = %91, %81
  br label %135

100:                                              ; preds = %52
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load i32, ptr %6, align 4, !tbaa !9
  %103 = add nsw i32 %102, 1
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %101, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !9
  %107 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  %108 = load i32, ptr %107, align 4, !tbaa !13
  %109 = icmp sgt i32 %106, %108
  br i1 %109, label %110, label %118

110:                                              ; preds = %100
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = load i32, ptr %6, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds i32, ptr %111, i64 %114
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 0
  store i32 %116, ptr %117, align 4, !tbaa !13
  br label %118

118:                                              ; preds = %110, %100
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = load i32, ptr %6, align 4, !tbaa !9
  %121 = sext i32 %120 to i64
  %122 = getelementptr inbounds i32, ptr %119, i64 %121
  %123 = load i32, ptr %122, align 4, !tbaa !9
  %124 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !11
  %126 = icmp slt i32 %123, %125
  br i1 %126, label %127, label %134

127:                                              ; preds = %118
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load i32, ptr %6, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds i32, ptr %128, i64 %130
  %132 = load i32, ptr %131, align 4, !tbaa !9
  %133 = getelementptr inbounds %struct.LargestAndSmallest, ptr %3, i32 0, i32 1
  store i32 %132, ptr %133, align 4, !tbaa !11
  br label %134

134:                                              ; preds = %127, %118
  br label %135

135:                                              ; preds = %134, %99
  %136 = load i32, ptr %6, align 4, !tbaa !9
  %137 = add nsw i32 %136, 2
  store i32 %137, ptr %6, align 4, !tbaa !9
  br label %47, !llvm.loop !14

138:                                              ; preds = %47
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #2
  %139 = load i64, ptr %3, align 4
  ret i64 %139
}

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

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

attributes #0 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 4}
!12 = !{!"_ZTS18LargestAndSmallest", !10, i64 0, !10, i64 4}
!13 = !{!12, !10, i64 0}
!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"

; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) uwtable
define dso_local i64 @_Z21find_max_min_elementsPii(ptr nocapture noundef readonly %0, i32 noundef %1) local_unnamed_addr #0 {
  %3 = and i32 %1, -2147483647
  %4 = icmp eq i32 %3, 1
  %5 = load i32, ptr %0, align 4, !tbaa !5
  br i1 %4, label %9, label %6

6:                                                ; preds = %2
  %7 = getelementptr inbounds i8, ptr %0, i64 4
  %8 = load i32, ptr %7, align 4, !tbaa !5
  %. = tail call i32 @llvm.smax.i32(i32 %5, i32 %8)
  %.42 = tail call i32 @llvm.smin.i32(i32 %5, i32 %8)
  br label %9

9:                                                ; preds = %2, %6
  %.sroa.0.1 = phi i32 [ %., %6 ], [ %5, %2 ]
  %.sroa.8.1 = phi i32 [ %.42, %6 ], [ %5, %2 ]
  %.0 = phi i32 [ 2, %6 ], [ 1, %2 ]
  %10 = add nsw i32 %1, -1
  %11 = icmp slt i32 %.0, %10
  br i1 %11, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %9
  %12 = zext nneg i32 %.0 to i64
  %13 = zext nneg i32 %10 to i64
  %14 = add nuw nsw i64 %12, 2
  %umax = tail call i64 @llvm.umax.i64(i64 %14, i64 %13)
  %15 = xor i64 %12, -1
  %16 = add nsw i64 %umax, %15
  %17 = lshr i64 %16, 1
  %18 = add nuw nsw i64 %17, 1
  %min.iters.check = icmp ult i64 %16, 14
  br i1 %min.iters.check, label %.lr.ph.preheader65, label %vector.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %18, 9223372036854775800
  %19 = shl nuw i64 %n.vec, 1
  %ind.end = or disjoint i64 %19, %12
  %minmax.ident.splatinsert = insertelement <4 x i32> poison, i32 %.sroa.8.1, i64 0
  %minmax.ident.splat = shufflevector <4 x i32> %minmax.ident.splatinsert, <4 x i32> poison, <4 x i32> zeroinitializer
  %minmax.ident.splatinsert57 = insertelement <4 x i32> poison, i32 %.sroa.0.1, i64 0
  %minmax.ident.splat58 = shufflevector <4 x i32> %minmax.ident.splatinsert57, <4 x i32> poison, <4 x i32> zeroinitializer
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %vec.phi = phi <4 x i32> [ %minmax.ident.splat, %vector.ph ], [ %30, %vector.body ]
  %vec.phi54 = phi <4 x i32> [ %minmax.ident.splat, %vector.ph ], [ %31, %vector.body ]
  %vec.phi55 = phi <4 x i32> [ %minmax.ident.splat58, %vector.ph ], [ %28, %vector.body ]
  %vec.phi56 = phi <4 x i32> [ %minmax.ident.splat58, %vector.ph ], [ %29, %vector.body ]
  %20 = shl i64 %index, 1
  %offset.idx = or disjoint i64 %20, %12
  %21 = or disjoint i64 %offset.idx, 8
  %22 = getelementptr inbounds i32, ptr %0, i64 %offset.idx
  %23 = getelementptr inbounds i32, ptr %0, i64 %21
  %wide.vec = load <8 x i32>, ptr %22, align 4, !tbaa !5
  %wide.vec59 = load <8 x i32>, ptr %23, align 4, !tbaa !5
  %strided.vec = shufflevector <8 x i32> %wide.vec, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec60 = shufflevector <8 x i32> %wide.vec59, <8 x i32> poison, <4 x i32> <i32 0, i32 2, i32 4, i32 6>
  %strided.vec61 = shufflevector <8 x i32> %wide.vec, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %strided.vec62 = shufflevector <8 x i32> %wide.vec59, <8 x i32> poison, <4 x i32> <i32 1, i32 3, i32 5, i32 7>
  %24 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %strided.vec, <4 x i32> %strided.vec61)
  %25 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %strided.vec60, <4 x i32> %strided.vec62)
  %26 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %strided.vec, <4 x i32> %strided.vec61)
  %27 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %strided.vec60, <4 x i32> %strided.vec62)
  %28 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %24, <4 x i32> %vec.phi55)
  %29 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %25, <4 x i32> %vec.phi56)
  %30 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %26, <4 x i32> %vec.phi)
  %31 = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %27, <4 x i32> %vec.phi54)
  %index.next = add nuw i64 %index, 8
  %32 = icmp eq i64 %index.next, %n.vec
  br i1 %32, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  %rdx.minmax = tail call <4 x i32> @llvm.smin.v4i32(<4 x i32> %30, <4 x i32> %31)
  %33 = tail call i32 @llvm.vector.reduce.smin.v4i32(<4 x i32> %rdx.minmax)
  %rdx.minmax63 = tail call <4 x i32> @llvm.smax.v4i32(<4 x i32> %28, <4 x i32> %29)
  %34 = tail call i32 @llvm.vector.reduce.smax.v4i32(<4 x i32> %rdx.minmax63)
  %cmp.n = icmp eq i64 %18, %n.vec
  br i1 %cmp.n, label %._crit_edge, label %.lr.ph.preheader65

.lr.ph.preheader65:                               ; preds = %middle.block, %.lr.ph.preheader
  %indvars.iv.ph = phi i64 [ %12, %.lr.ph.preheader ], [ %ind.end, %middle.block ]
  %.sroa.8.247.ph = phi i32 [ %.sroa.8.1, %.lr.ph.preheader ], [ %33, %middle.block ]
  %.sroa.0.246.ph = phi i32 [ %.sroa.0.1, %.lr.ph.preheader ], [ %34, %middle.block ]
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader65, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ %indvars.iv.ph, %.lr.ph.preheader65 ]
  %.sroa.8.247 = phi i32 [ %spec.select45, %.lr.ph ], [ %.sroa.8.247.ph, %.lr.ph.preheader65 ]
  %.sroa.0.246 = phi i32 [ %spec.select43, %.lr.ph ], [ %.sroa.0.246.ph, %.lr.ph.preheader65 ]
  %35 = getelementptr inbounds i32, ptr %0, i64 %indvars.iv
  %36 = load i32, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds i8, ptr %35, i64 4
  %38 = load i32, ptr %37, align 4, !tbaa !5
  %.52 = tail call i32 @llvm.smax.i32(i32 %36, i32 %38)
  %.53 = tail call i32 @llvm.smin.i32(i32 %36, i32 %38)
  %spec.select43 = tail call i32 @llvm.smax.i32(i32 %.52, i32 %.sroa.0.246)
  %spec.select45 = tail call i32 @llvm.smin.i32(i32 %.53, i32 %.sroa.8.247)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 2
  %39 = icmp ult i64 %indvars.iv.next, %13
  br i1 %39, label %.lr.ph, label %._crit_edge, !llvm.loop !13

._crit_edge:                                      ; preds = %.lr.ph, %middle.block, %9
  %.sroa.0.2.lcssa = phi i32 [ %.sroa.0.1, %9 ], [ %34, %middle.block ], [ %spec.select43, %.lr.ph ]
  %.sroa.8.2.lcssa = phi i32 [ %.sroa.8.1, %9 ], [ %33, %middle.block ], [ %spec.select45, %.lr.ph ]
  %.sroa.8.0.insert.ext = zext i32 %.sroa.8.2.lcssa to i64
  %.sroa.8.0.insert.shift = shl nuw i64 %.sroa.8.0.insert.ext, 32
  %.sroa.0.0.insert.ext = zext i32 %.sroa.0.2.lcssa to i64
  %.sroa.0.0.insert.insert = or disjoint i64 %.sroa.8.0.insert.shift, %.sroa.0.0.insert.ext
  ret i64 %.sroa.0.0.insert.insert
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smax.v4i32(<4 x i32>, <4 x i32>) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i32> @llvm.smin.v4i32(<4 x i32>, <4 x i32>) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smin.v4i32(<4 x i32>) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.vector.reduce.smax.v4i32(<4 x i32>) #1

attributes #0 = { mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) 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 speculatable willreturn memory(none) }

!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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}


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