; LLVM IR from ctlst-tech/catpilot :: bsp/mcu/core/stm32/h753/hal/src (stm32h7xx_hal_sd)

; 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.SD_HandleTypeDef = type { ptr, %struct.SDMMC_InitTypeDef, i32, ptr, i32, ptr, i32, i32, i32, i32, %struct.HAL_SD_CardInfoTypeDef, [4 x i32], [4 x i32] }
%struct.SDMMC_InitTypeDef = type { i32, i32, i32, i32, i32 }
%struct.HAL_SD_CardInfoTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.SDMMC_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, [3 x i32], i32, i32, i32, i32, [8 x i32], i32, [222 x i32], i32 }

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

declare i32 @HAL_GetTick() #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @HAL_SD_GetCardState(ptr noundef) #2

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

declare i32 @SDMMC_CmdBlockLength(ptr noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_SD_ConfigSpeedBusOperation(ptr noundef %0, i32 noundef %1) #2 {
  %3 = alloca i32, align 4
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = 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) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %10, i32 0, i32 8
  store volatile i32 3, ptr %11, align 8, !tbaa !11
  %12 = load i32, ptr %5, align 4, !tbaa !9
  switch i32 %12, label %88 [
    i32 0, label %13
    i32 2, label %43
    i32 1, label %77
    i32 3, label %87
  ]

13:                                               ; preds = %2
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %14, i32 0, i32 10
  %16 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %15, i32 0, i32 8
  %17 = load i32, ptr %16, align 8, !tbaa !15
  %18 = icmp eq i32 %17, 512
  br i1 %18, label %31, label %19

19:                                               ; preds = %13
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %20, i32 0, i32 10
  %22 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %21, i32 0, i32 8
  %23 = load i32, ptr %22, align 8, !tbaa !15
  %24 = icmp eq i32 %23, 256
  br i1 %24, label %31, label %25

25:                                               ; preds = %19
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %26, i32 0, i32 10
  %28 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !16
  %30 = icmp eq i32 %29, 1
  br i1 %30, label %31, label %41

31:                                               ; preds = %25, %19, %13
  %32 = load ptr, ptr %4, align 8, !tbaa !5
  %33 = call i32 @SD_SwitchSpeed(ptr noundef %32, i32 noundef -2130706687)
  %34 = icmp ne i32 %33, 0
  br i1 %34, label %35, label %40

35:                                               ; preds = %31
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %36, i32 0, i32 9
  %38 = load volatile i32, ptr %37, align 4, !tbaa !17
  %39 = or i32 %38, 268435456
  store volatile i32 %39, ptr %37, align 4, !tbaa !17
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %40

40:                                               ; preds = %35, %31
  br label %42

41:                                               ; preds = %25
  br label %42

42:                                               ; preds = %41, %40
  br label %93

43:                                               ; preds = %2
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %44, i32 0, i32 10
  %46 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %45, i32 0, i32 8
  %47 = load i32, ptr %46, align 8, !tbaa !15
  %48 = icmp eq i32 %47, 512
  br i1 %48, label %61, label %49

49:                                               ; preds = %43
  %50 = load ptr, ptr %4, align 8, !tbaa !5
  %51 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %50, i32 0, i32 10
  %52 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %51, i32 0, i32 8
  %53 = load i32, ptr %52, align 8, !tbaa !15
  %54 = icmp eq i32 %53, 256
  br i1 %54, label %61, label %55

55:                                               ; preds = %49
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %56, i32 0, i32 10
  %58 = getelementptr inbounds %struct.HAL_SD_CardInfoTypeDef, ptr %57, i32 0, i32 0
  %59 = load i32, ptr %58, align 8, !tbaa !16
  %60 = icmp eq i32 %59, 1
  br i1 %60, label %61, label %71

61:                                               ; preds = %55, %49, %43
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = call i32 @SD_SwitchSpeed(ptr noundef %62, i32 noundef -2130706687)
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %70

65:                                               ; preds = %61
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %66, i32 0, i32 9
  %68 = load volatile i32, ptr %67, align 4, !tbaa !17
  %69 = or i32 %68, 268435456
  store volatile i32 %69, ptr %67, align 4, !tbaa !17
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %65, %61
  br label %76

71:                                               ; preds = %55
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %72, i32 0, i32 9
  %74 = load volatile i32, ptr %73, align 4, !tbaa !17
  %75 = or i32 %74, 268435456
  store volatile i32 %75, ptr %73, align 4, !tbaa !17
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %71, %70
  br label %93

77:                                               ; preds = %2
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = call i32 @SD_SwitchSpeed(ptr noundef %78, i32 noundef -2130706688)
  %80 = icmp ne i32 %79, 0
  br i1 %80, label %81, label %86

81:                                               ; preds = %77
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %82, i32 0, i32 9
  %84 = load volatile i32, ptr %83, align 4, !tbaa !17
  %85 = or i32 %84, 268435456
  store volatile i32 %85, ptr %83, align 4, !tbaa !17
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %86

86:                                               ; preds = %81, %77
  br label %93

87:                                               ; preds = %2
  br label %88

88:                                               ; preds = %87, %2
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %89, i32 0, i32 9
  %91 = load volatile i32, ptr %90, align 4, !tbaa !17
  %92 = or i32 %91, 134217728
  store volatile i32 %92, ptr %90, align 4, !tbaa !17
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %93

93:                                               ; preds = %88, %86, %76, %42
  %94 = call i32 @HAL_GetTick()
  store i32 %94, ptr %6, align 4, !tbaa !9
  br label %95

95:                                               ; preds = %109, %93
  %96 = load ptr, ptr %4, align 8, !tbaa !5
  %97 = call i32 @HAL_SD_GetCardState(ptr noundef %96)
  %98 = icmp ne i32 %97, 4
  br i1 %98, label %99, label %110

99:                                               ; preds = %95
  %100 = call i32 @HAL_GetTick()
  %101 = load i32, ptr %6, align 4, !tbaa !9
  %102 = sub i32 %100, %101
  %103 = icmp uge i32 %102, -1
  br i1 %103, label %104, label %109

104:                                              ; preds = %99
  %105 = load ptr, ptr %4, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %105, i32 0, i32 9
  store volatile i32 -2147483648, ptr %106, align 4, !tbaa !17
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %107, i32 0, i32 8
  store volatile i32 1, ptr %108, align 8, !tbaa !11
  store i32 3, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %131

109:                                              ; preds = %99
  br label %95, !llvm.loop !18

110:                                              ; preds = %95
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !20
  %114 = call i32 @SDMMC_CmdBlockLength(ptr noundef %113, i32 noundef 512)
  store i32 %114, ptr %7, align 4, !tbaa !9
  %115 = load i32, ptr %7, align 4, !tbaa !9
  %116 = icmp ne i32 %115, 0
  br i1 %116, label %117, label %127

117:                                              ; preds = %110
  %118 = load ptr, ptr %4, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %118, i32 0, i32 0
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = getelementptr inbounds %struct.SDMMC_TypeDef, ptr %120, i32 0, i32 14
  store volatile i32 534777855, ptr %121, align 4, !tbaa !21
  %122 = load i32, ptr %7, align 4, !tbaa !9
  %123 = load ptr, ptr %4, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %123, i32 0, i32 9
  %125 = load volatile i32, ptr %124, align 4, !tbaa !17
  %126 = or i32 %125, %122
  store volatile i32 %126, ptr %124, align 4, !tbaa !17
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %127

127:                                              ; preds = %117, %110
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.SD_HandleTypeDef, ptr %128, i32 0, i32 8
  store volatile i32 1, ptr %129, align 8, !tbaa !11
  %130 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %130, ptr %3, align 4
  store i32 1, ptr %9, align 4
  br label %131

131:                                              ; preds = %127, %104
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  %132 = load i32, ptr %3, align 4
  ret i32 %132
}

; Function Attrs: nounwind uwtable
declare hidden i32 @SD_SwitchSpeed(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 = !{!12, !10, i64 64}
!12 = !{!"", !6, i64 0, !13, i64 8, !10, i64 28, !6, i64 32, !10, i64 40, !6, i64 48, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !14, i64 72, !7, i64 108, !7, i64 124}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16}
!14 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32}
!15 = !{!12, !10, i64 104}
!16 = !{!12, !10, i64 72}
!17 = !{!12, !10, i64 68}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!12, !6, i64 0}
!21 = !{!22, !10, i64 56}
!22 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !7, i64 68, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !7, i64 96, !10, i64 128, !7, i64 132, !10, i64 1020}


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

declare i32 @HAL_GetTick() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare dso_local i32 @HAL_SD_GetCardState(ptr noundef) local_unnamed_addr #1

declare i32 @SDMMC_CmdBlockLength(ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @HAL_SD_ConfigSpeedBusOperation(ptr noundef %0, i32 noundef %1) local_unnamed_addr #1 {
  %3 = getelementptr inbounds i8, ptr %0, i64 64
  store volatile i32 3, ptr %3, align 8, !tbaa !5
  switch i32 %1, label %.sink.split [
    i32 0, label %4
    i32 2, label %13
    i32 1, label %22
  ]

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 104
  %6 = load i32, ptr %5, align 8, !tbaa !13
  switch i32 %6, label %7 [
    i32 512, label %11
    i32 256, label %11
  ]

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 72
  %9 = load i32, ptr %8, align 8, !tbaa !14
  %10 = icmp eq i32 %9, 1
  br i1 %10, label %11, label %27

11:                                               ; preds = %4, %4, %7
  %12 = tail call i32 @SD_SwitchSpeed(ptr noundef nonnull %0, i32 noundef -2130706687)
  %.not32 = icmp eq i32 %12, 0
  br i1 %.not32, label %27, label %.sink.split

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  %15 = load i32, ptr %14, align 8, !tbaa !13
  switch i32 %15, label %16 [
    i32 512, label %20
    i32 256, label %20
  ]

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %0, i64 72
  %18 = load i32, ptr %17, align 8, !tbaa !14
  %19 = icmp eq i32 %18, 1
  br i1 %19, label %20, label %.sink.split

20:                                               ; preds = %13, %13, %16
  %21 = tail call i32 @SD_SwitchSpeed(ptr noundef nonnull %0, i32 noundef -2130706687)
  %.not31 = icmp eq i32 %21, 0
  br i1 %.not31, label %27, label %.sink.split

22:                                               ; preds = %2
  %23 = tail call i32 @SD_SwitchSpeed(ptr noundef nonnull %0, i32 noundef -2130706688)
  %.not = icmp eq i32 %23, 0
  br i1 %.not, label %27, label %.sink.split

.sink.split:                                      ; preds = %2, %22, %16, %20, %11
  %.sink37 = phi i32 [ 268435456, %11 ], [ 268435456, %20 ], [ 268435456, %16 ], [ 268435456, %22 ], [ 134217728, %2 ]
  %24 = getelementptr inbounds i8, ptr %0, i64 68
  %25 = load volatile i32, ptr %24, align 4, !tbaa !15
  %26 = or i32 %25, %.sink37
  store volatile i32 %26, ptr %24, align 4, !tbaa !15
  br label %27

27:                                               ; preds = %.sink.split, %22, %20, %11, %7
  %.0 = phi i32 [ 0, %22 ], [ 0, %20 ], [ 0, %11 ], [ 0, %7 ], [ 1, %.sink.split ]
  %28 = tail call i32 @HAL_GetTick() #2
  br label %29

29:                                               ; preds = %31, %27
  %30 = tail call i32 @HAL_SD_GetCardState(ptr noundef %0)
  %.not33 = icmp eq i32 %30, 4
  br i1 %.not33, label %37, label %31

31:                                               ; preds = %29
  %32 = tail call i32 @HAL_GetTick() #2
  %33 = sub i32 %32, %28
  %34 = icmp eq i32 %33, -1
  br i1 %34, label %35, label %29, !llvm.loop !16

35:                                               ; preds = %31
  %36 = getelementptr inbounds i8, ptr %0, i64 68
  store volatile i32 -2147483648, ptr %36, align 4, !tbaa !15
  br label %46

37:                                               ; preds = %29
  %38 = load ptr, ptr %0, align 8, !tbaa !18
  %39 = tail call i32 @SDMMC_CmdBlockLength(ptr noundef %38, i32 noundef 512) #2
  %.not34 = icmp eq i32 %39, 0
  br i1 %.not34, label %46, label %40

40:                                               ; preds = %37
  %41 = load ptr, ptr %0, align 8, !tbaa !18
  %42 = getelementptr inbounds i8, ptr %41, i64 56
  store volatile i32 534777855, ptr %42, align 4, !tbaa !19
  %43 = getelementptr inbounds i8, ptr %0, i64 68
  %44 = load volatile i32, ptr %43, align 4, !tbaa !15
  %45 = or i32 %44, %39
  store volatile i32 %45, ptr %43, align 4, !tbaa !15
  br label %46

46:                                               ; preds = %37, %40, %35
  %.027 = phi i32 [ 3, %35 ], [ 1, %40 ], [ %.0, %37 ]
  store volatile i32 1, ptr %3, align 8, !tbaa !5
  ret i32 %.027
}

; Function Attrs: nounwind uwtable
declare hidden i32 @SD_SwitchSpeed(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #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 = { 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 #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, !11, i64 64}
!6 = !{!"", !7, i64 0, !10, i64 8, !11, i64 28, !7, i64 32, !11, i64 40, !7, i64 48, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !12, i64 72, !8, i64 108, !8, i64 124}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!11 = !{!"int", !8, i64 0}
!12 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32}
!13 = !{!6, !11, i64 104}
!14 = !{!6, !11, i64 72}
!15 = !{!6, !11, i64 68}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 0}
!19 = !{!20, !11, i64 56}
!20 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !8, i64 68, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !8, i64 96, !11, i64 128, !8, i64 132, !11, i64 1020}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass