; LLVM IR from cashapp/zipline :: zipline/native/quickjs (libregexp)

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

; 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

declare ptr @lre_realloc(ptr noundef, ptr noundef, i64 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @lre_exec(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) #2 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca ptr, align 8
  %15 = alloca %struct.REExecContext, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca ptr, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store i32 %3, ptr %11, align 4, !tbaa !9
  store i32 %4, ptr %12, align 4, !tbaa !9
  store i32 %5, ptr %13, align 4, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 80, ptr %15) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store ptr %15, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #3
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 0
  %24 = load i8, ptr %23, align 1, !tbaa !11
  %25 = zext i8 %24 to i32
  store i32 %25, ptr %17, align 4, !tbaa !9
  %26 = load i32, ptr %17, align 4, !tbaa !9
  %27 = and i32 %26, 4
  %28 = icmp ne i32 %27, 0
  %29 = zext i1 %28 to i32
  %30 = load ptr, ptr %16, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.REExecContext, ptr %30, i32 0, i32 5
  store i32 %29, ptr %31, align 4, !tbaa !12
  %32 = load i32, ptr %17, align 4, !tbaa !9
  %33 = and i32 %32, 2
  %34 = icmp ne i32 %33, 0
  %35 = zext i1 %34 to i32
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.REExecContext, ptr %36, i32 0, i32 6
  store i32 %35, ptr %37, align 8, !tbaa !15
  %38 = load i32, ptr %17, align 4, !tbaa !9
  %39 = and i32 %38, 16
  %40 = icmp ne i32 %39, 0
  %41 = zext i1 %40 to i32
  %42 = load ptr, ptr %16, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.REExecContext, ptr %42, i32 0, i32 7
  store i32 %41, ptr %43, align 4, !tbaa !16
  %44 = load ptr, ptr %9, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 1
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = zext i8 %46 to i32
  %48 = load ptr, ptr %16, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.REExecContext, ptr %48, i32 0, i32 3
  store i32 %47, ptr %49, align 4, !tbaa !17
  %50 = load ptr, ptr %9, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 2
  %52 = load i8, ptr %51, align 1, !tbaa !11
  %53 = zext i8 %52 to i32
  %54 = load ptr, ptr %16, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.REExecContext, ptr %54, i32 0, i32 4
  store i32 %53, ptr %55, align 8, !tbaa !18
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = load ptr, ptr %16, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.REExecContext, ptr %57, i32 0, i32 0
  store ptr %56, ptr %58, align 8, !tbaa !19
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = load i32, ptr %12, align 4, !tbaa !9
  %61 = load i32, ptr %13, align 4, !tbaa !9
  %62 = shl i32 %60, %61
  %63 = sext i32 %62 to i64
  %64 = getelementptr inbounds i8, ptr %59, i64 %63
  %65 = load ptr, ptr %16, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.REExecContext, ptr %65, i32 0, i32 1
  store ptr %64, ptr %66, align 8, !tbaa !20
  %67 = load i32, ptr %13, align 4, !tbaa !9
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.REExecContext, ptr %68, i32 0, i32 2
  store i32 %67, ptr %69, align 8, !tbaa !21
  %70 = load ptr, ptr %16, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.REExecContext, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 8, !tbaa !21
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %74, label %82

74:                                               ; preds = %7
  %75 = load ptr, ptr %16, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.REExecContext, ptr %75, i32 0, i32 7
  %77 = load i32, ptr %76, align 4, !tbaa !16
  %78 = icmp ne i32 %77, 0
  br i1 %78, label %79, label %82

79:                                               ; preds = %74
  %80 = load ptr, ptr %16, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.REExecContext, ptr %80, i32 0, i32 2
  store i32 2, ptr %81, align 8, !tbaa !21
  br label %82

82:                                               ; preds = %79, %74, %7
  %83 = load ptr, ptr %14, align 8, !tbaa !5
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.REExecContext, ptr %84, i32 0, i32 8
  store ptr %83, ptr %85, align 8, !tbaa !22
  %86 = load ptr, ptr %16, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.REExecContext, ptr %86, i32 0, i32 3
  %88 = load i32, ptr %87, align 4, !tbaa !17
  %89 = sext i32 %88 to i64
  %90 = mul i64 %89, 8
  %91 = mul i64 %90, 2
  %92 = add i64 32, %91
  %93 = load ptr, ptr %16, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.REExecContext, ptr %93, i32 0, i32 4
  %95 = load i32, ptr %94, align 8, !tbaa !18
  %96 = sext i32 %95 to i64
  %97 = mul i64 %96, 8
  %98 = add i64 %92, %97
  %99 = load ptr, ptr %16, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.REExecContext, ptr %99, i32 0, i32 9
  store i64 %98, ptr %100, align 8, !tbaa !23
  %101 = load ptr, ptr %16, align 8, !tbaa !5
  %102 = getelementptr inbounds %struct.REExecContext, ptr %101, i32 0, i32 10
  store ptr null, ptr %102, align 8, !tbaa !24
  %103 = load ptr, ptr %16, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.REExecContext, ptr %103, i32 0, i32 12
  store i64 0, ptr %104, align 8, !tbaa !25
  %105 = load ptr, ptr %16, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.REExecContext, ptr %105, i32 0, i32 11
  store i64 0, ptr %106, align 8, !tbaa !26
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %107

107:                                              ; preds = %119, %82
  %108 = load i32, ptr %18, align 4, !tbaa !9
  %109 = load ptr, ptr %16, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.REExecContext, ptr %109, i32 0, i32 3
  %111 = load i32, ptr %110, align 4, !tbaa !17
  %112 = mul nsw i32 %111, 2
  %113 = icmp slt i32 %108, %112
  br i1 %113, label %114, label %122

114:                                              ; preds = %107
  %115 = load ptr, ptr %8, align 8, !tbaa !5
  %116 = load i32, ptr %18, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = getelementptr inbounds ptr, ptr %115, i64 %117
  store ptr null, ptr %118, align 8, !tbaa !5
  br label %119

119:                                              ; preds = %114
  %120 = load i32, ptr %18, align 4, !tbaa !9
  %121 = add nsw i32 %120, 1
  store i32 %121, ptr %18, align 4, !tbaa !9
  br label %107, !llvm.loop !27

122:                                              ; preds = %107
  %123 = load ptr, ptr %16, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.REExecContext, ptr %123, i32 0, i32 4
  %125 = load i32, ptr %124, align 8, !tbaa !18
  %126 = sext i32 %125 to i64
  %127 = mul i64 %126, 8
  %128 = trunc i64 %127 to i32
  store i32 %128, ptr %19, align 4, !tbaa !9
  %129 = load i32, ptr %19, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = alloca i8, i64 %130, align 16
  store ptr %131, ptr %21, align 8, !tbaa !5
  %132 = load ptr, ptr %16, align 8, !tbaa !5
  %133 = load ptr, ptr %8, align 8, !tbaa !5
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = load ptr, ptr %9, align 8, !tbaa !5
  %136 = getelementptr inbounds i8, ptr %135, i64 7
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = load i32, ptr %11, align 4, !tbaa !9
  %139 = load i32, ptr %13, align 4, !tbaa !9
  %140 = shl i32 %138, %139
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %137, i64 %141
  %143 = call i64 @lre_exec_backtrack(ptr noundef %132, ptr noundef %133, ptr noundef %134, i32 noundef 0, ptr noundef %136, ptr noundef %142, i32 noundef 0)
  %144 = trunc i64 %143 to i32
  store i32 %144, ptr %20, align 4, !tbaa !9
  %145 = load ptr, ptr %16, align 8, !tbaa !5
  %146 = getelementptr inbounds %struct.REExecContext, ptr %145, i32 0, i32 8
  %147 = load ptr, ptr %146, align 8, !tbaa !22
  %148 = load ptr, ptr %16, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.REExecContext, ptr %148, i32 0, i32 10
  %150 = load ptr, ptr %149, align 8, !tbaa !24
  %151 = call ptr @lre_realloc(ptr noundef %147, ptr noundef %150, i64 noundef 0)
  %152 = load i32, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 80, ptr %15) #3
  ret i32 %152
}

; Function Attrs: nounwind uwtable
declare hidden i64 @lre_exec_backtrack(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #2 = { 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 = { 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!7, !7, i64 0}
!12 = !{!13, !10, i64 28}
!13 = !{!"", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !6, i64 40, !14, i64 48, !6, i64 56, !14, i64 64, !14, i64 72}
!14 = !{!"long", !7, i64 0}
!15 = !{!13, !10, i64 32}
!16 = !{!13, !10, i64 36}
!17 = !{!13, !10, i64 20}
!18 = !{!13, !10, i64 24}
!19 = !{!13, !6, i64 0}
!20 = !{!13, !6, i64 8}
!21 = !{!13, !10, i64 16}
!22 = !{!13, !6, i64 40}
!23 = !{!13, !14, i64 48}
!24 = !{!13, !6, i64 56}
!25 = !{!13, !14, i64 72}
!26 = !{!13, !14, i64 64}
!27 = distinct !{!27, !28}
!28 = !{!"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"

%struct.REExecContext = type { ptr, ptr, i32, i32, i32, i32, i32, i32, ptr, i64, ptr, i64, i64 }

; 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

declare ptr @lre_realloc(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @lre_exec(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3, i32 noundef %4, i32 noundef %5, ptr noundef %6) local_unnamed_addr #2 {
  %8 = alloca %struct.REExecContext, align 8
  call void @llvm.lifetime.start.p0(i64 80, ptr nonnull %8) #4
  %9 = load i8, ptr %1, align 1, !tbaa !5
  %10 = zext i8 %9 to i32
  %11 = lshr i32 %10, 2
  %.lobit = and i32 %11, 1
  %12 = getelementptr inbounds i8, ptr %8, i64 28
  store i32 %.lobit, ptr %12, align 4, !tbaa !8
  %13 = lshr i32 %10, 1
  %.lobit46 = and i32 %13, 1
  %14 = getelementptr inbounds i8, ptr %8, i64 32
  store i32 %.lobit46, ptr %14, align 8, !tbaa !13
  %15 = lshr i32 %10, 4
  %.lobit47 = and i32 %15, 1
  %16 = getelementptr inbounds i8, ptr %8, i64 36
  store i32 %.lobit47, ptr %16, align 4, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %1, i64 1
  %18 = load i8, ptr %17, align 1, !tbaa !5
  %19 = zext i8 %18 to i32
  %20 = getelementptr inbounds i8, ptr %8, i64 20
  store i32 %19, ptr %20, align 4, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %1, i64 2
  %22 = load i8, ptr %21, align 1, !tbaa !5
  %23 = zext i8 %22 to i32
  %24 = getelementptr inbounds i8, ptr %8, i64 24
  store i32 %23, ptr %24, align 8, !tbaa !16
  store ptr %2, ptr %8, align 8, !tbaa !17
  %25 = shl i32 %4, %5
  %26 = sext i32 %25 to i64
  %27 = getelementptr inbounds i8, ptr %2, i64 %26
  %28 = getelementptr inbounds i8, ptr %8, i64 8
  store ptr %27, ptr %28, align 8, !tbaa !18
  %29 = getelementptr inbounds i8, ptr %8, i64 16
  %30 = icmp ne i32 %5, 1
  %.not = icmp eq i32 %.lobit47, 0
  %or.cond = select i1 %30, i1 true, i1 %.not
  %spec.store.select = select i1 %or.cond, i32 %5, i32 2
  store i32 %spec.store.select, ptr %29, align 8
  %31 = getelementptr inbounds i8, ptr %8, i64 40
  store ptr %6, ptr %31, align 8, !tbaa !19
  %32 = zext i8 %18 to i64
  %33 = shl nuw nsw i64 %32, 4
  %34 = add nuw nsw i64 %33, 32
  %35 = zext i8 %22 to i64
  %36 = shl nuw nsw i64 %35, 3
  %37 = add nuw nsw i64 %34, %36
  %38 = getelementptr inbounds i8, ptr %8, i64 48
  store i64 %37, ptr %38, align 8, !tbaa !20
  %39 = getelementptr inbounds i8, ptr %8, i64 56
  %.not49 = icmp eq i8 %18, 0
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(24) %39, i8 0, i64 24, i1 false)
  br i1 %.not49, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %7
  %40 = shl nuw nsw i32 %19, 1
  %41 = add nsw i32 %40, -2
  %42 = zext i32 %41 to i64
  %43 = shl nuw nsw i64 %42, 3
  %44 = add nuw nsw i64 %43, 16
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(1) %0, i8 0, i64 %44, i1 false), !tbaa !21
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph.preheader, %7
  %45 = shl nuw nsw i32 %23, 3
  %46 = zext nneg i32 %45 to i64
  %47 = alloca i8, i64 %46, align 16
  %48 = getelementptr inbounds i8, ptr %1, i64 7
  %49 = shl i32 %3, %5
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds i8, ptr %2, i64 %50
  %52 = call i64 @lre_exec_backtrack(ptr noundef nonnull %8, ptr noundef %0, ptr noundef nonnull %47, i32 noundef 0, ptr noundef nonnull %48, ptr noundef %51, i32 noundef 0)
  %53 = trunc i64 %52 to i32
  %54 = load ptr, ptr %31, align 8, !tbaa !19
  %55 = load ptr, ptr %39, align 8, !tbaa !22
  %56 = call ptr @lre_realloc(ptr noundef %54, ptr noundef %55, i64 noundef 0) #4
  call void @llvm.lifetime.end.p0(i64 80, ptr nonnull %8) #4
  ret i32 %53
}

; Function Attrs: nounwind uwtable
declare hidden i64 @lre_exec_backtrack(ptr noundef, ptr noundef, ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #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 #2 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !11, i64 28}
!9 = !{!"", !10, i64 0, !10, i64 8, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !10, i64 40, !12, i64 48, !10, i64 56, !12, i64 64, !12, i64 72}
!10 = !{!"any pointer", !6, i64 0}
!11 = !{!"int", !6, i64 0}
!12 = !{!"long", !6, i64 0}
!13 = !{!9, !11, i64 32}
!14 = !{!9, !11, i64 36}
!15 = !{!9, !11, i64 20}
!16 = !{!9, !11, i64 24}
!17 = !{!9, !10, i64 0}
!18 = !{!9, !10, i64 8}
!19 = !{!9, !10, i64 40}
!20 = !{!9, !12, i64 48}
!21 = !{!10, !10, i64 0}
!22 = !{!9, !10, i64 56}


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