; LLVM IR from recp/cglm :: test/src (tests)

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

@stderr = external global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.727 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.729 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.730 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.731 = external hidden unnamed_addr constant [33 x i8], align 1

; 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 nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #2

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat4_identity() #4 {
  %1 = alloca %struct.test_status_t, align 8
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  %4 = alloca [4 x [4 x float]], align 16
  %5 = alloca %struct.test_status_t, align 8
  %6 = alloca %struct.test_status_t, align 8
  %7 = alloca i32, align 4
  %8 = alloca %struct.test_status_t, align 8
  %9 = alloca %struct.test_status_t, align 8
  %10 = alloca %struct.test_status_t, align 8
  %11 = alloca %struct.test_status_t, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %2) #7
  call void @llvm.memset.p0.i64(ptr align 16 %2, i8 0, i64 64, i1 false)
  %12 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 0
  %13 = getelementptr inbounds [4 x float], ptr %12, i32 0, i32 0
  store float 1.000000e+00, ptr %13, align 16
  %14 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 1
  %15 = getelementptr inbounds [4 x float], ptr %14, i32 0, i32 1
  store float 1.000000e+00, ptr %15, align 4
  %16 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 2
  %17 = getelementptr inbounds [4 x float], ptr %16, i32 0, i32 2
  store float 1.000000e+00, ptr %17, align 8
  %18 = getelementptr inbounds [4 x [4 x float]], ptr %2, i32 0, i32 3
  %19 = getelementptr inbounds [4 x float], ptr %18, i32 0, i32 3
  store float 1.000000e+00, ptr %19, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %3) #7
  call void @llvm.memset.p0.i64(ptr align 16 %3, i8 0, i64 64, i1 false)
  %20 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 0
  %21 = getelementptr inbounds [4 x float], ptr %20, i32 0, i32 0
  store float 1.000000e+00, ptr %21, align 16
  %22 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 1
  %23 = getelementptr inbounds [4 x float], ptr %22, i32 0, i32 1
  store float 1.000000e+00, ptr %23, align 4
  %24 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 2
  %25 = getelementptr inbounds [4 x float], ptr %24, i32 0, i32 2
  store float 1.000000e+00, ptr %25, align 8
  %26 = getelementptr inbounds [4 x [4 x float]], ptr %3, i32 0, i32 3
  %27 = getelementptr inbounds [4 x float], ptr %26, i32 0, i32 3
  store float 1.000000e+00, ptr %27, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr %4) #7
  %28 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  call void @glm_mat4_identity(ptr noundef %28)
  br label %29

29:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %6) #7
  %30 = getelementptr inbounds [4 x [4 x float]], ptr %2, i64 0, i64 0
  %31 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef %30)
  %32 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 0
  %33 = extractvalue { ptr, i32 } %31, 0
  store ptr %33, ptr %32, align 8
  %34 = getelementptr inbounds { ptr, i32 }, ptr %6, i32 0, i32 1
  %35 = extractvalue { ptr, i32 } %31, 1
  store i32 %35, ptr %34, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %5, ptr align 8 %6, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %6) #7
  %36 = getelementptr inbounds %struct.test_status_t, ptr %5, i32 0, i32 1
  %37 = load i32, ptr %36, align 8, !tbaa !12
  %38 = icmp ne i32 %37, 1
  br i1 %38, label %39, label %46

39:                                               ; preds = %29
  %40 = load ptr, ptr @stderr, align 8, !tbaa !6
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef @.str.13, ptr noundef @.str.727, i32 noundef 43, ptr noundef @.str.729) #7
  %42 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %43 = getelementptr inbounds %struct.test_status_t, ptr %5, i32 0, i32 0
  %44 = load ptr, ptr %43, align 8, !tbaa !14
  store ptr %44, ptr %42, align 8, !tbaa !14
  %45 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %45, align 8, !tbaa !12
  store i32 1, ptr %7, align 4
  br label %47

46:                                               ; preds = %29
  store i32 0, ptr %7, align 4
  br label %47

47:                                               ; preds = %46, %39
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #7
  %48 = load i32, ptr %7, align 4
  switch i32 %48, label %100 [
    i32 0, label %49
  ]

49:                                               ; preds = %47
  br label %50

50:                                               ; preds = %49
  br label %51

51:                                               ; preds = %50
  br label %52

52:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #7
  %53 = getelementptr inbounds [4 x [4 x float]], ptr %3, i64 0, i64 0
  %54 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef %53)
  %55 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 0
  %56 = extractvalue { ptr, i32 } %54, 0
  store ptr %56, ptr %55, align 8
  %57 = getelementptr inbounds { ptr, i32 }, ptr %9, i32 0, i32 1
  %58 = extractvalue { ptr, i32 } %54, 1
  store i32 %58, ptr %57, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %8, ptr align 8 %9, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #7
  %59 = getelementptr inbounds %struct.test_status_t, ptr %8, i32 0, i32 1
  %60 = load i32, ptr %59, align 8, !tbaa !12
  %61 = icmp ne i32 %60, 1
  br i1 %61, label %62, label %69

62:                                               ; preds = %52
  %63 = load ptr, ptr @stderr, align 8, !tbaa !6
  %64 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %63, ptr noundef @.str.13, ptr noundef @.str.727, i32 noundef 44, ptr noundef @.str.730) #7
  %65 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %66 = getelementptr inbounds %struct.test_status_t, ptr %8, i32 0, i32 0
  %67 = load ptr, ptr %66, align 8, !tbaa !14
  store ptr %67, ptr %65, align 8, !tbaa !14
  %68 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %68, align 8, !tbaa !12
  store i32 1, ptr %7, align 4
  br label %70

69:                                               ; preds = %52
  store i32 0, ptr %7, align 4
  br label %70

70:                                               ; preds = %69, %62
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #7
  %71 = load i32, ptr %7, align 4
  switch i32 %71, label %100 [
    i32 0, label %72
  ]

72:                                               ; preds = %70
  br label %73

73:                                               ; preds = %72
  br label %74

74:                                               ; preds = %73
  br label %75

75:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #7
  %76 = getelementptr inbounds [4 x [4 x float]], ptr %4, i64 0, i64 0
  %77 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef %76)
  %78 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 0
  %79 = extractvalue { ptr, i32 } %77, 0
  store ptr %79, ptr %78, align 8
  %80 = getelementptr inbounds { ptr, i32 }, ptr %11, i32 0, i32 1
  %81 = extractvalue { ptr, i32 } %77, 1
  store i32 %81, ptr %80, align 8
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %10, ptr align 8 %11, i64 16, i1 false), !tbaa.struct !5
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #7
  %82 = getelementptr inbounds %struct.test_status_t, ptr %10, i32 0, i32 1
  %83 = load i32, ptr %82, align 8, !tbaa !12
  %84 = icmp ne i32 %83, 1
  br i1 %84, label %85, label %92

85:                                               ; preds = %75
  %86 = load ptr, ptr @stderr, align 8, !tbaa !6
  %87 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %86, ptr noundef @.str.13, ptr noundef @.str.727, i32 noundef 45, ptr noundef @.str.731) #7
  %88 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  %89 = getelementptr inbounds %struct.test_status_t, ptr %10, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !14
  store ptr %90, ptr %88, align 8, !tbaa !14
  %91 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 0, ptr %91, align 8, !tbaa !12
  store i32 1, ptr %7, align 4
  br label %93

92:                                               ; preds = %75
  store i32 0, ptr %7, align 4
  br label %93

93:                                               ; preds = %92, %85
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #7
  %94 = load i32, ptr %7, align 4
  switch i32 %94, label %100 [
    i32 0, label %95
  ]

95:                                               ; preds = %93
  br label %96

96:                                               ; preds = %95
  br label %97

97:                                               ; preds = %96
  %98 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 0
  store ptr null, ptr %98, align 8, !tbaa !14
  %99 = getelementptr inbounds %struct.test_status_t, ptr %1, i32 0, i32 1
  store i32 1, ptr %99, align 8, !tbaa !12
  store i32 1, ptr %7, align 4
  br label %100

100:                                              ; preds = %97, %93, %70, %47
  call void @llvm.lifetime.end.p0(i64 64, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %3) #7
  call void @llvm.lifetime.end.p0(i64 64, ptr %2) #7
  %101 = load { ptr, i32 }, ptr %1, align 8
  ret { ptr, i32 } %101
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_identity(ptr noundef) #5

declare { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { 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 #5 = { alwaysinline 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 #6 = { "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 #7 = { 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 = !{i64 0, i64 8, !6, i64 8, i64 4, !10}
!6 = !{!7, !7, i64 0}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!13, !11, i64 8}
!13 = !{!"test_status_t", !7, i64 0, !11, i64 8}
!14 = !{!13, !7, i64 0}


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

@stderr = external local_unnamed_addr global ptr, align 8
@.str.13 = external hidden unnamed_addr constant [97 x i8], align 1
@.str.727 = external hidden unnamed_addr constant [64 x i8], align 1
@.str.729 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.730 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.731 = external hidden unnamed_addr constant [33 x i8], align 1

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local { ptr, i32 } @test_glm_mat4_identity() local_unnamed_addr #3 {
  %1 = alloca [4 x [4 x float]], align 16
  %2 = alloca [4 x [4 x float]], align 16
  %3 = alloca [4 x [4 x float]], align 16
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %1) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %1, i8 0, i64 64, i1 false)
  store float 1.000000e+00, ptr %1, align 16
  %4 = getelementptr inbounds i8, ptr %1, i64 20
  store float 1.000000e+00, ptr %4, align 4
  %5 = getelementptr inbounds i8, ptr %1, i64 40
  store float 1.000000e+00, ptr %5, align 8
  %6 = getelementptr inbounds i8, ptr %1, i64 60
  store float 1.000000e+00, ptr %6, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(64) %2, i8 0, i64 64, i1 false)
  store float 1.000000e+00, ptr %2, align 16
  %7 = getelementptr inbounds i8, ptr %2, i64 20
  store float 1.000000e+00, ptr %7, align 4
  %8 = getelementptr inbounds i8, ptr %2, i64 40
  store float 1.000000e+00, ptr %8, align 8
  %9 = getelementptr inbounds i8, ptr %2, i64 60
  store float 1.000000e+00, ptr %9, align 4
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %3) #6
  call void @glm_mat4_identity(ptr noundef nonnull %3)
  %10 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef nonnull %1) #6
  %11 = extractvalue { ptr, i32 } %10, 1
  %.not = icmp eq i32 %11, 1
  br i1 %.not, label %.critedge, label %12

12:                                               ; preds = %0
  %13 = extractvalue { ptr, i32 } %10, 0
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.727, i32 noundef 43, ptr noundef nonnull @.str.729) #7
  br label %30

.critedge:                                        ; preds = %0
  %16 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef nonnull %2) #6
  %17 = extractvalue { ptr, i32 } %16, 1
  %.not21 = icmp eq i32 %17, 1
  br i1 %.not21, label %22, label %18

18:                                               ; preds = %.critedge
  %19 = extractvalue { ptr, i32 } %16, 0
  %20 = load ptr, ptr @stderr, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %20, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.727, i32 noundef 44, ptr noundef nonnull @.str.730) #7
  br label %30

22:                                               ; preds = %.critedge
  %23 = call { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef nonnull %3) #6
  %24 = extractvalue { ptr, i32 } %23, 1
  %.not22 = icmp eq i32 %24, 1
  br i1 %.not22, label %29, label %25

25:                                               ; preds = %22
  %26 = extractvalue { ptr, i32 } %23, 0
  %27 = load ptr, ptr @stderr, align 8, !tbaa !5
  %28 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %27, ptr noundef nonnull @.str.13, ptr noundef nonnull @.str.727, i32 noundef 45, ptr noundef nonnull @.str.731) #7
  br label %29

29:                                               ; preds = %22, %25
  %spec.select = phi ptr [ %26, %25 ], [ null, %22 ]
  %spec.select23 = zext i1 %.not22 to i32
  br label %30

30:                                               ; preds = %18, %29, %12
  %.sroa.019.3 = phi ptr [ %19, %18 ], [ %13, %12 ], [ %spec.select, %29 ]
  %.sroa.520.3 = phi i32 [ 0, %18 ], [ 0, %12 ], [ %spec.select23, %29 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %2) #6
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %1) #6
  %.fca.0.insert = insertvalue { ptr, i32 } poison, ptr %.sroa.019.3, 0
  %.fca.1.insert = insertvalue { ptr, i32 } %.fca.0.insert, i32 %.sroa.520.3, 1
  ret { ptr, i32 } %.fca.1.insert
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @glm_mat4_identity(ptr noundef) local_unnamed_addr #4

declare { ptr, i32 } @test_assert_mat4_eq_identity(ptr noundef) local_unnamed_addr #5

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


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass