; LLVM IR from thalium/icebox :: third_party/virtualbox/src/VBox/Devices/EFI/Firmware/OvmfPkg/QemuVideoDxe (QemuVideoCirrusModeSetup)

; 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.QEMU_VIDEO_CIRRUS_MODES = type { i32, i32, i32, i32, ptr, ptr, i8 }
%struct.QEMU_VIDEO_PRIVATE_DATA = type { i64, ptr, ptr, i64, %struct._EFI_GRAPHICS_OUTPUT_PROTOCOL, ptr, i64, i64, ptr, ptr, i32 }
%struct._EFI_GRAPHICS_OUTPUT_PROTOCOL = type { ptr, ptr, ptr, ptr }
%struct.QEMU_VIDEO_MODE_DATA = type { i32, i32, i32, i32, i32 }

@QemuVideoCirrusModes = external dso_local global [3 x %struct.QEMU_VIDEO_CIRRUS_MODES], align 16
@.str = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local i64 @QemuVideoCirrusModeSetup(ptr noundef %0) #0 {
  %2 = alloca i64, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, 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
  %8 = call ptr @AllocatePool(i64 noundef 60)
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.QEMU_VIDEO_PRIVATE_DATA, ptr %9, i32 0, i32 8
  store ptr %8, ptr %10, align 8, !tbaa !9
  %11 = load ptr, ptr %3, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.QEMU_VIDEO_PRIVATE_DATA, ptr %11, i32 0, i32 8
  %13 = load ptr, ptr %12, align 8, !tbaa !9
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %16

15:                                               ; preds = %1
  store i64 -9223372036854775799, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %104

16:                                               ; preds = %1
  %17 = load ptr, ptr %3, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.QEMU_VIDEO_PRIVATE_DATA, ptr %17, i32 0, i32 8
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  store ptr %19, ptr %5, align 8, !tbaa !5
  store ptr @QemuVideoCirrusModes, ptr %6, align 8, !tbaa !5
  store i32 0, ptr %4, align 4, !tbaa !14
  br label %20

20:                                               ; preds = %90, %16
  %21 = load i32, ptr %4, align 4, !tbaa !14
  %22 = zext i32 %21 to i64
  %23 = icmp ult i64 %22, 3
  br i1 %23, label %24, label %93

24:                                               ; preds = %20
  %25 = load i32, ptr %4, align 4, !tbaa !14
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %26, i32 0, i32 0
  store i32 %25, ptr %27, align 4, !tbaa !15
  %28 = load ptr, ptr %6, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.QEMU_VIDEO_CIRRUS_MODES, ptr %28, i32 0, i32 0
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %31, i32 0, i32 1
  store i32 %30, ptr %32, align 4, !tbaa !19
  %33 = load ptr, ptr %6, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.QEMU_VIDEO_CIRRUS_MODES, ptr %33, i32 0, i32 1
  %35 = load i32, ptr %34, align 4, !tbaa !20
  %36 = load ptr, ptr %5, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %36, i32 0, i32 2
  store i32 %35, ptr %37, align 4, !tbaa !21
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.QEMU_VIDEO_CIRRUS_MODES, ptr %38, i32 0, i32 2
  %40 = load i32, ptr %39, align 8, !tbaa !22
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %41, i32 0, i32 3
  store i32 %40, ptr %42, align 4, !tbaa !23
  %43 = load ptr, ptr %6, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.QEMU_VIDEO_CIRRUS_MODES, ptr %43, i32 0, i32 3
  %45 = load i32, ptr %44, align 4, !tbaa !24
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %46, i32 0, i32 4
  store i32 %45, ptr %47, align 4, !tbaa !25
  br label %48

48:                                               ; preds = %24
  %49 = call zeroext i8 @DebugPrintEnabled()
  %50 = icmp ne i8 %49, 0
  br i1 %50, label %51, label %83

51:                                               ; preds = %48
  br label %52

52:                                               ; preds = %51
  %53 = call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64)
  %54 = icmp ne i8 %53, 0
  br i1 %54, label %55, label %80

55:                                               ; preds = %52
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load ptr, ptr %3, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.QEMU_VIDEO_PRIVATE_DATA, ptr %57, i32 0, i32 8
  %59 = load ptr, ptr %58, align 8, !tbaa !9
  %60 = ptrtoint ptr %56 to i64
  %61 = ptrtoint ptr %59 to i64
  %62 = sub i64 %60, %61
  %63 = sdiv exact i64 %62, 20
  %64 = trunc i64 %63 to i32
  %65 = load ptr, ptr %5, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 4, !tbaa !15
  %68 = load ptr, ptr %5, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %69, align 4, !tbaa !19
  %71 = load ptr, ptr %5, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %71, i32 0, i32 2
  %73 = load i32, ptr %72, align 4, !tbaa !21
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %74, i32 0, i32 3
  %76 = load i32, ptr %75, align 4, !tbaa !23
  %77 = load ptr, ptr %5, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %77, i32 0, i32 4
  %79 = load i32, ptr %78, align 4, !tbaa !25
  call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef @.str, i32 noundef %64, i32 noundef %67, i32 noundef %70, i32 noundef %73, i32 noundef %76, i32 noundef %79)
  br label %80

80:                                               ; preds = %55, %52
  br label %81

81:                                               ; preds = %80
  br label %82

82:                                               ; preds = %81
  br label %83

83:                                               ; preds = %82, %48
  br label %84

84:                                               ; preds = %83
  br label %85

85:                                               ; preds = %84
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = getelementptr inbounds %struct.QEMU_VIDEO_MODE_DATA, ptr %86, i32 1
  store ptr %87, ptr %5, align 8, !tbaa !5
  %88 = load ptr, ptr %6, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.QEMU_VIDEO_CIRRUS_MODES, ptr %88, i32 1
  store ptr %89, ptr %6, align 8, !tbaa !5
  br label %90

90:                                               ; preds = %85
  %91 = load i32, ptr %4, align 4, !tbaa !14
  %92 = add i32 %91, 1
  store i32 %92, ptr %4, align 4, !tbaa !14
  br label %20, !llvm.loop !26

93:                                               ; preds = %20
  %94 = load ptr, ptr %5, align 8, !tbaa !5
  %95 = load ptr, ptr %3, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.QEMU_VIDEO_PRIVATE_DATA, ptr %95, i32 0, i32 8
  %97 = load ptr, ptr %96, align 8, !tbaa !9
  %98 = ptrtoint ptr %94 to i64
  %99 = ptrtoint ptr %97 to i64
  %100 = sub i64 %98, %99
  %101 = sdiv exact i64 %100, 20
  %102 = load ptr, ptr %3, align 8, !tbaa !5
  %103 = getelementptr inbounds %struct.QEMU_VIDEO_PRIVATE_DATA, ptr %102, i32 0, i32 7
  store i64 %101, ptr %103, align 8, !tbaa !28
  store i64 0, ptr %2, align 8
  store i32 1, ptr %7, align 4
  br label %104

104:                                              ; preds = %93, %15
  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 4, ptr %4) #3
  %105 = load i64, ptr %2, align 8
  ret i64 %105
}

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

declare ptr @AllocatePool(i64 noundef) #2

declare zeroext i8 @DebugPrintEnabled() #2

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) #2

declare void @DebugPrint(i64 noundef, ptr noundef, ...) #2

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

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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !6, i64 88}
!10 = !{!"", !11, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !12, i64 32, !6, i64 64, !11, i64 72, !11, i64 80, !6, i64 88, !6, i64 96, !13, i64 104}
!11 = !{!"long long", !7, i64 0}
!12 = !{!"_EFI_GRAPHICS_OUTPUT_PROTOCOL", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!13 = !{!"int", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !13, i64 0}
!16 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !13, i64 16}
!17 = !{!18, !13, i64 0}
!18 = !{!"", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12, !6, i64 16, !6, i64 24, !7, i64 32}
!19 = !{!16, !13, i64 4}
!20 = !{!18, !13, i64 4}
!21 = !{!16, !13, i64 8}
!22 = !{!18, !13, i64 8}
!23 = !{!16, !13, i64 12}
!24 = !{!18, !13, i64 12}
!25 = !{!16, !13, i64 16}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = !{!10, !11, i64 80}


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

@QemuVideoCirrusModes = external dso_local local_unnamed_addr global [3 x %struct.QEMU_VIDEO_CIRRUS_MODES], align 16
@.str = external hidden unnamed_addr constant [65 x i8], align 1

; Function Attrs: nounwind uwtable
define dso_local range(i64 -9223372036854775799, 1) i64 @QemuVideoCirrusModeSetup(ptr nocapture noundef %0) local_unnamed_addr #0 {
  %2 = tail call ptr @AllocatePool(i64 noundef 60) #2
  %3 = getelementptr inbounds i8, ptr %0, i64 88
  store ptr %2, ptr %3, align 8, !tbaa !5
  %4 = icmp eq ptr %2, null
  br i1 %4, label %75, label %.preheader.preheader

.preheader.preheader:                             ; preds = %1
  store i32 0, ptr %2, align 4, !tbaa !13
  %5 = getelementptr inbounds i8, ptr %2, i64 4
  %6 = getelementptr inbounds i8, ptr %2, i64 8
  %7 = getelementptr inbounds i8, ptr %2, i64 12
  %8 = getelementptr inbounds i8, ptr %2, i64 16
  %9 = load <4 x i32>, ptr @QemuVideoCirrusModes, align 16, !tbaa !15
  store <4 x i32> %9, ptr %5, align 4, !tbaa !15
  %10 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not = icmp eq i8 %10, 0
  br i1 %.not, label %.preheader.1, label %11

11:                                               ; preds = %.preheader.preheader
  %12 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not31 = icmp eq i8 %12, 0
  br i1 %.not31, label %.preheader.1, label %13

13:                                               ; preds = %11
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = ptrtoint ptr %2 to i64
  %16 = ptrtoint ptr %14 to i64
  %17 = sub i64 %15, %16
  %18 = sdiv exact i64 %17, 20
  %19 = trunc i64 %18 to i32
  %20 = load i32, ptr %2, align 4, !tbaa !13
  %21 = load i32, ptr %5, align 4, !tbaa !16
  %22 = load i32, ptr %6, align 4, !tbaa !17
  %23 = load i32, ptr %7, align 4, !tbaa !18
  %24 = load i32, ptr %8, align 4, !tbaa !19
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str, i32 noundef %19, i32 noundef %20, i32 noundef %21, i32 noundef %22, i32 noundef %23, i32 noundef %24) #2
  br label %.preheader.1

.preheader.1:                                     ; preds = %11, %13, %.preheader.preheader
  %25 = getelementptr inbounds i8, ptr %2, i64 20
  store i32 1, ptr %25, align 4, !tbaa !13
  %26 = getelementptr inbounds i8, ptr %2, i64 24
  %27 = getelementptr inbounds i8, ptr %2, i64 28
  %28 = getelementptr inbounds i8, ptr %2, i64 32
  %29 = getelementptr inbounds i8, ptr %2, i64 36
  %30 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @QemuVideoCirrusModes, i64 40), align 8, !tbaa !15
  store <4 x i32> %30, ptr %26, align 4, !tbaa !15
  %31 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not.1 = icmp eq i8 %31, 0
  br i1 %.not.1, label %.preheader.2, label %32

32:                                               ; preds = %.preheader.1
  %33 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not31.1 = icmp eq i8 %33, 0
  br i1 %.not31.1, label %.preheader.2, label %34

34:                                               ; preds = %32
  %35 = load ptr, ptr %3, align 8, !tbaa !5
  %36 = ptrtoint ptr %25 to i64
  %37 = ptrtoint ptr %35 to i64
  %38 = sub i64 %36, %37
  %39 = sdiv exact i64 %38, 20
  %40 = trunc i64 %39 to i32
  %41 = load i32, ptr %25, align 4, !tbaa !13
  %42 = load i32, ptr %26, align 4, !tbaa !16
  %43 = load i32, ptr %27, align 4, !tbaa !17
  %44 = load i32, ptr %28, align 4, !tbaa !18
  %45 = load i32, ptr %29, align 4, !tbaa !19
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str, i32 noundef %40, i32 noundef %41, i32 noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45) #2
  br label %.preheader.2

.preheader.2:                                     ; preds = %34, %32, %.preheader.1
  %46 = getelementptr inbounds i8, ptr %2, i64 40
  store i32 2, ptr %46, align 4, !tbaa !13
  %47 = getelementptr inbounds i8, ptr %2, i64 44
  %48 = getelementptr inbounds i8, ptr %2, i64 48
  %49 = getelementptr inbounds i8, ptr %2, i64 52
  %50 = getelementptr inbounds i8, ptr %2, i64 56
  %51 = load <4 x i32>, ptr getelementptr inbounds (i8, ptr @QemuVideoCirrusModes, i64 80), align 16, !tbaa !15
  store <4 x i32> %51, ptr %47, align 4, !tbaa !15
  %52 = tail call zeroext i8 @DebugPrintEnabled() #2
  %.not.2 = icmp eq i8 %52, 0
  br i1 %.not.2, label %67, label %53

53:                                               ; preds = %.preheader.2
  %54 = tail call zeroext i8 @DebugPrintLevelEnabled(i64 noundef 64) #2
  %.not31.2 = icmp eq i8 %54, 0
  br i1 %.not31.2, label %67, label %55

55:                                               ; preds = %53
  %56 = load ptr, ptr %3, align 8, !tbaa !5
  %57 = ptrtoint ptr %46 to i64
  %58 = ptrtoint ptr %56 to i64
  %59 = sub i64 %57, %58
  %60 = sdiv exact i64 %59, 20
  %61 = trunc i64 %60 to i32
  %62 = load i32, ptr %46, align 4, !tbaa !13
  %63 = load i32, ptr %47, align 4, !tbaa !16
  %64 = load i32, ptr %48, align 4, !tbaa !17
  %65 = load i32, ptr %49, align 4, !tbaa !18
  %66 = load i32, ptr %50, align 4, !tbaa !19
  tail call void (i64, ptr, ...) @DebugPrint(i64 noundef 64, ptr noundef nonnull @.str, i32 noundef %61, i32 noundef %62, i32 noundef %63, i32 noundef %64, i32 noundef %65, i32 noundef %66) #2
  br label %67

67:                                               ; preds = %55, %53, %.preheader.2
  %68 = getelementptr inbounds i8, ptr %2, i64 60
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = ptrtoint ptr %68 to i64
  %71 = ptrtoint ptr %69 to i64
  %72 = sub i64 %70, %71
  %73 = sdiv exact i64 %72, 20
  %74 = getelementptr inbounds i8, ptr %0, i64 80
  store i64 %73, ptr %74, align 8, !tbaa !20
  br label %75

75:                                               ; preds = %1, %67
  %.029 = phi i64 [ 0, %67 ], [ -9223372036854775799, %1 ]
  ret i64 %.029
}

declare ptr @AllocatePool(i64 noundef) local_unnamed_addr #1

declare zeroext i8 @DebugPrintEnabled() local_unnamed_addr #1

declare zeroext i8 @DebugPrintLevelEnabled(i64 noundef) local_unnamed_addr #1

declare void @DebugPrint(i64 noundef, ptr noundef, ...) local_unnamed_addr #1

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 = { "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, !10, i64 88}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16, !7, i64 24, !11, i64 32, !10, i64 64, !7, i64 72, !7, i64 80, !10, i64 88, !10, i64 96, !12, i64 104}
!7 = !{!"long long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_EFI_GRAPHICS_OUTPUT_PROTOCOL", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24}
!12 = !{!"int", !8, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!15 = !{!12, !12, i64 0}
!16 = !{!14, !12, i64 4}
!17 = !{!14, !12, i64 8}
!18 = !{!14, !12, i64 12}
!19 = !{!14, !12, i64 16}
!20 = !{!6, !7, i64 80}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass