; LLVM IR from sbshah97/DS-Algo-Handbook :: Algorithms/Graph_Algorithms/Kruskal's_MST (KRUSKAL)

; 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"

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@edg = external dso_local global [500001 x [3 x i64]], align 16
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @fun(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @findroot(ptr noundef, i64 noundef) #0

; 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

; Function Attrs: nounwind uwtable
declare dso_local void @disunion(ptr noundef, i64 noundef, i64 noundef) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @main() #0 {
  %1 = alloca i32, align 4
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca [100001 x i64], align 16
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %2) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 800008, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !5
  %13 = call i32 (ptr, ...) @printf(ptr noundef @.str)
  %14 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.1, ptr noundef %2, ptr noundef %3)
  %15 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %16

16:                                               ; preds = %38, %0
  %17 = load i64, ptr %6, align 8, !tbaa !5
  %18 = load i64, ptr %3, align 8, !tbaa !5
  %19 = icmp slt i64 %17, %18
  br i1 %19, label %20, label %41

20:                                               ; preds = %16
  %21 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  %22 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef @.str.4, ptr noundef %4, ptr noundef %5, ptr noundef %7)
  %23 = load i64, ptr %7, align 8, !tbaa !5
  %24 = load i64, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %24
  %26 = getelementptr inbounds [3 x i64], ptr %25, i64 0, i64 0
  store i64 %23, ptr %26, align 8, !tbaa !5
  %27 = load i64, ptr %4, align 8, !tbaa !5
  %28 = load i64, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %28
  %30 = getelementptr inbounds [3 x i64], ptr %29, i64 0, i64 1
  store i64 %27, ptr %30, align 8, !tbaa !5
  %31 = load i64, ptr %5, align 8, !tbaa !5
  %32 = load i64, ptr %6, align 8, !tbaa !5
  %33 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %32
  %34 = getelementptr inbounds [3 x i64], ptr %33, i64 0, i64 2
  store i64 %31, ptr %34, align 8, !tbaa !5
  %35 = load i64, ptr %7, align 8, !tbaa !5
  %36 = load i64, ptr %12, align 8, !tbaa !5
  %37 = add nsw i64 %36, %35
  store i64 %37, ptr %12, align 8, !tbaa !5
  br label %38

38:                                               ; preds = %20
  %39 = load i64, ptr %6, align 8, !tbaa !5
  %40 = add nsw i64 %39, 1
  store i64 %40, ptr %6, align 8, !tbaa !5
  br label %16, !llvm.loop !9

41:                                               ; preds = %16
  %42 = load i64, ptr %3, align 8, !tbaa !5
  call void @qsort(ptr noundef @edg, i64 noundef %42, i64 noundef 24, ptr noundef @fun)
  store i64 1, ptr %6, align 8, !tbaa !5
  br label %43

43:                                               ; preds = %50, %41
  %44 = load i64, ptr %6, align 8, !tbaa !5
  %45 = load i64, ptr %2, align 8, !tbaa !5
  %46 = icmp sle i64 %44, %45
  br i1 %46, label %47, label %53

47:                                               ; preds = %43
  %48 = load i64, ptr %6, align 8, !tbaa !5
  %49 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 %48
  store i64 -1, ptr %49, align 8, !tbaa !5
  br label %50

50:                                               ; preds = %47
  %51 = load i64, ptr %6, align 8, !tbaa !5
  %52 = add nsw i64 %51, 1
  store i64 %52, ptr %6, align 8, !tbaa !5
  br label %43, !llvm.loop !11

53:                                               ; preds = %43
  %54 = call i32 (ptr, ...) @printf(ptr noundef @.str.5)
  store i64 0, ptr %6, align 8, !tbaa !5
  br label %55

55:                                               ; preds = %96, %53
  %56 = load i64, ptr %6, align 8, !tbaa !5
  %57 = load i64, ptr %3, align 8, !tbaa !5
  %58 = icmp slt i64 %56, %57
  br i1 %58, label %59, label %99

59:                                               ; preds = %55
  %60 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 0
  %61 = load i64, ptr %6, align 8, !tbaa !5
  %62 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %61
  %63 = getelementptr inbounds [3 x i64], ptr %62, i64 0, i64 1
  %64 = load i64, ptr %63, align 8, !tbaa !5
  %65 = call i64 @findroot(ptr noundef %60, i64 noundef %64)
  store i64 %65, ptr %10, align 8, !tbaa !5
  %66 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 0
  %67 = load i64, ptr %6, align 8, !tbaa !5
  %68 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %67
  %69 = getelementptr inbounds [3 x i64], ptr %68, i64 0, i64 2
  %70 = load i64, ptr %69, align 8, !tbaa !5
  %71 = call i64 @findroot(ptr noundef %66, i64 noundef %70)
  store i64 %71, ptr %11, align 8, !tbaa !5
  %72 = load i64, ptr %10, align 8, !tbaa !5
  %73 = load i64, ptr %11, align 8, !tbaa !5
  %74 = icmp eq i64 %72, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %59
  br label %96

76:                                               ; preds = %59
  %77 = load i64, ptr %6, align 8, !tbaa !5
  %78 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %77
  %79 = getelementptr inbounds [3 x i64], ptr %78, i64 0, i64 1
  %80 = load i64, ptr %79, align 8, !tbaa !5
  %81 = load i64, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %81
  %83 = getelementptr inbounds [3 x i64], ptr %82, i64 0, i64 2
  %84 = load i64, ptr %83, align 8, !tbaa !5
  %85 = call i32 (ptr, ...) @printf(ptr noundef @.str.6, i64 noundef %80, i64 noundef %84)
  %86 = load i64, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %86
  %88 = getelementptr inbounds [3 x i64], ptr %87, i64 0, i64 0
  %89 = load i64, ptr %88, align 8, !tbaa !5
  %90 = load i64, ptr %8, align 8, !tbaa !5
  %91 = add nsw i64 %90, %89
  store i64 %91, ptr %8, align 8, !tbaa !5
  %92 = getelementptr inbounds [100001 x i64], ptr %9, i64 0, i64 0
  %93 = load i64, ptr %10, align 8, !tbaa !5
  %94 = load i64, ptr %11, align 8, !tbaa !5
  call void @disunion(ptr noundef %92, i64 noundef %93, i64 noundef %94)
  br label %95

95:                                               ; preds = %76
  br label %96

96:                                               ; preds = %95, %75
  %97 = load i64, ptr %6, align 8, !tbaa !5
  %98 = add nsw i64 %97, 1
  store i64 %98, ptr %6, align 8, !tbaa !5
  br label %55, !llvm.loop !12

99:                                               ; preds = %55
  %100 = load i64, ptr %8, align 8, !tbaa !5
  %101 = call i32 (ptr, ...) @printf(ptr noundef @.str.7, i64 noundef %100)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 800008, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %2) #3
  ret i32 0
}

declare i32 @printf(ptr noundef, ...) #2

declare i32 @__isoc99_scanf(ptr noundef, ...) #2

declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr noundef) #2

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 = { "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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}
!12 = distinct !{!12, !10}


; 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"

@.str = external hidden unnamed_addr constant [31 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [9 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [38 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@edg = external dso_local global [500001 x [3 x i64]], align 16
@.str.5 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [21 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local i32 @fun(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare dso_local i64 @findroot(ptr noundef, i64 noundef) local_unnamed_addr #0

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

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

; Function Attrs: nounwind uwtable
declare dso_local void @disunion(ptr noundef, i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @main() local_unnamed_addr #0 {
  %1 = alloca i64, align 8
  %2 = alloca i64, align 8
  %3 = alloca i64, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca [100001 x i64], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 800008, ptr nonnull %6) #5
  %7 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %8 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.1, ptr noundef nonnull %1, ptr noundef nonnull %2)
  %9 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %10 = load i64, ptr %2, align 8, !tbaa !5
  %11 = icmp sgt i64 %10, 0
  br i1 %11, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %0, %.lr.ph
  %.02228 = phi i64 [ %20, %.lr.ph ], [ 0, %0 ]
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  %13 = call i32 (ptr, ...) @__isoc99_scanf(ptr noundef nonnull @.str.4, ptr noundef nonnull %3, ptr noundef nonnull %4, ptr noundef nonnull %5)
  %14 = load i64, ptr %5, align 8, !tbaa !5
  %15 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %.02228
  store i64 %14, ptr %15, align 8, !tbaa !5
  %16 = load i64, ptr %3, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %15, i64 8
  store i64 %16, ptr %17, align 8, !tbaa !5
  %18 = load i64, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %15, i64 16
  store i64 %18, ptr %19, align 8, !tbaa !5
  %20 = add nuw nsw i64 %.02228, 1
  %21 = load i64, ptr %2, align 8, !tbaa !5
  %22 = icmp slt i64 %20, %21
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !9

._crit_edge:                                      ; preds = %.lr.ph, %0
  %.lcssa = phi i64 [ %10, %0 ], [ %21, %.lr.ph ]
  call void @qsort(ptr noundef nonnull @edg, i64 noundef %.lcssa, i64 noundef 24, ptr noundef nonnull @fun) #5
  %23 = load i64, ptr %1, align 8, !tbaa !5
  %.not29 = icmp slt i64 %23, 1
  br i1 %.not29, label %._crit_edge33, label %.lr.ph32.preheader

.lr.ph32.preheader:                               ; preds = %._crit_edge
  %scevgep = getelementptr inbounds i8, ptr %6, i64 8
  %24 = shl nuw i64 %23, 3
  call void @llvm.memset.p0.i64(ptr nonnull align 8 %scevgep, i8 -1, i64 %24, i1 false), !tbaa !5
  br label %._crit_edge33

._crit_edge33:                                    ; preds = %.lr.ph32.preheader, %._crit_edge
  %25 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.5)
  %26 = load i64, ptr %2, align 8, !tbaa !5
  %27 = icmp sgt i64 %26, 0
  br i1 %27, label %.lr.ph37, label %._crit_edge38

.lr.ph37:                                         ; preds = %._crit_edge33, %42
  %.235 = phi i64 [ %43, %42 ], [ 0, %._crit_edge33 ]
  %.02334 = phi i64 [ %.124, %42 ], [ 0, %._crit_edge33 ]
  %28 = getelementptr inbounds [500001 x [3 x i64]], ptr @edg, i64 0, i64 %.235
  %29 = getelementptr inbounds i8, ptr %28, i64 8
  %30 = load i64, ptr %29, align 8, !tbaa !5
  %31 = call i64 @findroot(ptr noundef nonnull %6, i64 noundef %30)
  %32 = getelementptr inbounds i8, ptr %28, i64 16
  %33 = load i64, ptr %32, align 8, !tbaa !5
  %34 = call i64 @findroot(ptr noundef nonnull %6, i64 noundef %33)
  %35 = icmp eq i64 %31, %34
  br i1 %35, label %42, label %36

36:                                               ; preds = %.lr.ph37
  %37 = load i64, ptr %29, align 8, !tbaa !5
  %38 = load i64, ptr %32, align 8, !tbaa !5
  %39 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6, i64 noundef %37, i64 noundef %38)
  %40 = load i64, ptr %28, align 8, !tbaa !5
  %41 = add nsw i64 %40, %.02334
  call void @disunion(ptr noundef nonnull %6, i64 noundef %31, i64 noundef %34)
  br label %42

42:                                               ; preds = %.lr.ph37, %36
  %.124 = phi i64 [ %.02334, %.lr.ph37 ], [ %41, %36 ]
  %43 = add nuw nsw i64 %.235, 1
  %44 = load i64, ptr %2, align 8, !tbaa !5
  %45 = icmp slt i64 %43, %44
  br i1 %45, label %.lr.ph37, label %._crit_edge38, !llvm.loop !11

._crit_edge38:                                    ; preds = %42, %._crit_edge33
  %.023.lcssa = phi i64 [ 0, %._crit_edge33 ], [ %.124, %42 ]
  %46 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7, i64 noundef %.023.lcssa)
  call void @llvm.lifetime.end.p0(i64 800008, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #5
  ret i32 0
}

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree nounwind
declare noundef i32 @__isoc99_scanf(ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nofree
declare void @qsort(ptr noundef, i64 noundef, i64 noundef, ptr nocapture noundef) local_unnamed_addr #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 = { 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nofree nounwind "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 = { nofree "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 }

!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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = distinct !{!11, !10}


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