; LLVM IR from bkaradzic/bgfx :: examples/42-bunnylod (progmesh)

; 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.mesh = type { i32, i32, ptr, ptr }
%struct.vertex = type { [3 x float], i32, %struct.array, %struct.array, float, i32 }
%struct.array = type { i32, i32, ptr, [16 x i32] }

; Function Attrs: nounwind uwtable
define dso_local void @ProgressiveMesh(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #0 {
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %struct.mesh, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca ptr, align 8
  store i32 %0, ptr %8, align 4, !tbaa !5
  store i32 %1, ptr %9, align 4, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !9
  store i32 %3, ptr %11, align 4, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !9
  store ptr %5, ptr %13, align 8, !tbaa !9
  store ptr %6, ptr %14, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #2
  %19 = load i32, ptr %8, align 4, !tbaa !5
  %20 = load i32, ptr %11, align 4, !tbaa !5
  call void @mesh_init(ptr noundef %15, i32 noundef %19, i32 noundef %20)
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #2
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #2
  %21 = load ptr, ptr %10, align 8, !tbaa !9
  store ptr %21, ptr %17, align 8, !tbaa !9
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %22

22:                                               ; preds = %32, %7
  %23 = load i32, ptr %16, align 4, !tbaa !5
  %24 = load i32, ptr %8, align 4, !tbaa !5
  %25 = icmp slt i32 %23, %24
  br i1 %25, label %26, label %35

26:                                               ; preds = %22
  %27 = load ptr, ptr %17, align 8, !tbaa !9
  call void @AddVertex(ptr noundef %15, ptr noundef %27)
  %28 = load i32, ptr %9, align 4, !tbaa !5
  %29 = load ptr, ptr %17, align 8, !tbaa !9
  %30 = sext i32 %28 to i64
  %31 = getelementptr inbounds i8, ptr %29, i64 %30
  store ptr %31, ptr %17, align 8, !tbaa !9
  br label %32

32:                                               ; preds = %26
  %33 = load i32, ptr %16, align 4, !tbaa !5
  %34 = add nsw i32 %33, 1
  store i32 %34, ptr %16, align 4, !tbaa !5
  br label %22, !llvm.loop !11

35:                                               ; preds = %22
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %36

36:                                               ; preds = %46, %35
  %37 = load i32, ptr %16, align 4, !tbaa !5
  %38 = load i32, ptr %11, align 4, !tbaa !5
  %39 = icmp slt i32 %37, %38
  br i1 %39, label %40, label %49

40:                                               ; preds = %36
  %41 = load ptr, ptr %12, align 8, !tbaa !9
  %42 = load i32, ptr %16, align 4, !tbaa !5
  %43 = mul nsw i32 %42, 3
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds i32, ptr %41, i64 %44
  call void @AddTriangle(ptr noundef %15, ptr noundef %45)
  br label %46

46:                                               ; preds = %40
  %47 = load i32, ptr %16, align 4, !tbaa !5
  %48 = add nsw i32 %47, 1
  store i32 %48, ptr %16, align 4, !tbaa !5
  br label %36, !llvm.loop !13

49:                                               ; preds = %36
  call void @ComputeAllEdgeCollapseCosts(ptr noundef %15)
  %50 = load i32, ptr %8, align 4, !tbaa !5
  %51 = sub nsw i32 %50, 1
  store i32 %51, ptr %16, align 4, !tbaa !5
  br label %52

52:                                               ; preds = %77, %49
  %53 = load i32, ptr %16, align 4, !tbaa !5
  %54 = icmp sge i32 %53, 0
  br i1 %54, label %55, label %80

55:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #2
  %56 = call ptr @MinimumCostEdge(ptr noundef %15)
  store ptr %56, ptr %18, align 8, !tbaa !9
  %57 = load i32, ptr %16, align 4, !tbaa !5
  %58 = load ptr, ptr %14, align 8, !tbaa !9
  %59 = load ptr, ptr %18, align 8, !tbaa !9
  %60 = getelementptr inbounds %struct.vertex, ptr %59, i32 0, i32 1
  %61 = load i32, ptr %60, align 4, !tbaa !14
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds i32, ptr %58, i64 %62
  store i32 %57, ptr %63, align 4, !tbaa !5
  %64 = load ptr, ptr %18, align 8, !tbaa !9
  %65 = getelementptr inbounds %struct.vertex, ptr %64, i32 0, i32 5
  %66 = load i32, ptr %65, align 4, !tbaa !18
  %67 = load ptr, ptr %13, align 8, !tbaa !9
  %68 = load i32, ptr %16, align 4, !tbaa !5
  %69 = sext i32 %68 to i64
  %70 = getelementptr inbounds i32, ptr %67, i64 %69
  store i32 %66, ptr %70, align 4, !tbaa !5
  %71 = load ptr, ptr %18, align 8, !tbaa !9
  %72 = getelementptr inbounds %struct.vertex, ptr %71, i32 0, i32 1
  %73 = load i32, ptr %72, align 4, !tbaa !14
  %74 = load ptr, ptr %18, align 8, !tbaa !9
  %75 = getelementptr inbounds %struct.vertex, ptr %74, i32 0, i32 5
  %76 = load i32, ptr %75, align 4, !tbaa !18
  call void @Collapse(ptr noundef %15, i32 noundef %73, i32 noundef %76)
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #2
  br label %77

77:                                               ; preds = %55
  %78 = load i32, ptr %16, align 4, !tbaa !5
  %79 = add nsw i32 %78, -1
  store i32 %79, ptr %16, align 4, !tbaa !5
  br label %52, !llvm.loop !19

80:                                               ; preds = %52
  store i32 0, ptr %16, align 4, !tbaa !5
  br label %81

81:                                               ; preds = %109, %80
  %82 = load i32, ptr %16, align 4, !tbaa !5
  %83 = load i32, ptr %8, align 4, !tbaa !5
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %85, label %112

85:                                               ; preds = %81
  %86 = load ptr, ptr %13, align 8, !tbaa !9
  %87 = load i32, ptr %16, align 4, !tbaa !5
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i32, ptr %86, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = icmp eq i32 %90, -1
  br i1 %91, label %92, label %93

92:                                               ; preds = %85
  br label %103

93:                                               ; preds = %85
  %94 = load ptr, ptr %14, align 8, !tbaa !9
  %95 = load ptr, ptr %13, align 8, !tbaa !9
  %96 = load i32, ptr %16, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds i32, ptr %95, i64 %97
  %99 = load i32, ptr %98, align 4, !tbaa !5
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds i32, ptr %94, i64 %100
  %102 = load i32, ptr %101, align 4, !tbaa !5
  br label %103

103:                                              ; preds = %93, %92
  %104 = phi i32 [ 0, %92 ], [ %102, %93 ]
  %105 = load ptr, ptr %13, align 8, !tbaa !9
  %106 = load i32, ptr %16, align 4, !tbaa !5
  %107 = sext i32 %106 to i64
  %108 = getelementptr inbounds i32, ptr %105, i64 %107
  store i32 %104, ptr %108, align 4, !tbaa !5
  br label %109

109:                                              ; preds = %103
  %110 = load i32, ptr %16, align 4, !tbaa !5
  %111 = add nsw i32 %110, 1
  store i32 %111, ptr %16, align 4, !tbaa !5
  br label %81, !llvm.loop !20

112:                                              ; preds = %81
  call void @mesh_deinit(ptr noundef %15)
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #2
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #2
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #2
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @mesh_init(ptr noundef, i32 noundef, i32 noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @AddVertex(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @AddTriangle(ptr noundef, ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @ComputeAllEdgeCollapseCosts(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden ptr @MinimumCostEdge(ptr noundef) #0

; Function Attrs: nounwind uwtable
declare hidden void @Collapse(ptr noundef, i32 noundef, i32 noundef) #0

; 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 hidden void @mesh_deinit(ptr noundef) #0

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 = { 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = !{!15, !6, i64 12}
!15 = !{!"vertex", !7, i64 0, !6, i64 12, !16, i64 16, !16, i64 96, !17, i64 176, !6, i64 180}
!16 = !{!"array", !6, i64 0, !6, i64 4, !10, i64 8, !7, i64 16}
!17 = !{!"float", !7, i64 0}
!18 = !{!15, !6, i64 180}
!19 = distinct !{!19, !12}
!20 = distinct !{!20, !12}


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

; Function Attrs: nounwind uwtable
define dso_local void @ProgressiveMesh(i32 noundef %0, i32 noundef %1, ptr noundef %2, i32 noundef %3, ptr noundef %4, ptr nocapture noundef %5, ptr nocapture noundef %6) local_unnamed_addr #0 {
  %8 = alloca %struct.mesh, align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %8) #2
  call void @mesh_init(ptr noundef nonnull %8, i32 noundef %0, i32 noundef %3)
  %9 = icmp sgt i32 %0, 0
  br i1 %9, label %.lr.ph, label %.preheader37

.lr.ph:                                           ; preds = %7
  %10 = sext i32 %1 to i64
  br label %12

.preheader37:                                     ; preds = %12, %7
  %11 = icmp sgt i32 %3, 0
  br i1 %11, label %.lr.ph41.preheader, label %._crit_edge

.lr.ph41.preheader:                               ; preds = %.preheader37
  %wide.trip.count = zext nneg i32 %3 to i64
  br label %.lr.ph41

12:                                               ; preds = %.lr.ph, %12
  %.039 = phi i32 [ 0, %.lr.ph ], [ %14, %12 ]
  %.03438 = phi ptr [ %2, %.lr.ph ], [ %13, %12 ]
  call void @AddVertex(ptr noundef nonnull %8, ptr noundef %.03438)
  %13 = getelementptr inbounds i8, ptr %.03438, i64 %10
  %14 = add nuw nsw i32 %.039, 1
  %exitcond.not = icmp eq i32 %14, %0
  br i1 %exitcond.not, label %.preheader37, label %12, !llvm.loop !5

.lr.ph41:                                         ; preds = %.lr.ph41.preheader, %.lr.ph41
  %indvars.iv = phi i64 [ 0, %.lr.ph41.preheader ], [ %indvars.iv.next, %.lr.ph41 ]
  %.idx = mul i64 %indvars.iv, 12
  %15 = getelementptr inbounds i8, ptr %4, i64 %.idx
  call void @AddTriangle(ptr noundef nonnull %8, ptr noundef %15)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond49.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond49.not, label %._crit_edge, label %.lr.ph41, !llvm.loop !7

._crit_edge:                                      ; preds = %.lr.ph41, %.preheader37
  call void @ComputeAllEdgeCollapseCosts(ptr noundef nonnull %8)
  br i1 %9, label %.lr.ph44.preheader, label %._crit_edge47

.lr.ph44.preheader:                               ; preds = %._crit_edge
  %16 = zext nneg i32 %0 to i64
  br label %.lr.ph44

.preheader:                                       ; preds = %.lr.ph44
  br i1 %9, label %.lr.ph46.preheader, label %._crit_edge47

.lr.ph46.preheader:                               ; preds = %.preheader
  %xtraiter = and i64 %16, 1
  %17 = icmp eq i32 %0, 1
  br i1 %17, label %._crit_edge47.loopexit.unr-lcssa, label %.lr.ph46.preheader.new

.lr.ph46.preheader.new:                           ; preds = %.lr.ph46.preheader
  %unroll_iter = and i64 %16, 2147483646
  br label %.lr.ph46

.lr.ph44:                                         ; preds = %.lr.ph44.preheader, %.lr.ph44
  %indvars.iv50 = phi i64 [ %16, %.lr.ph44.preheader ], [ %indvars.iv.next51, %.lr.ph44 ]
  %indvars.iv.next51 = add nsw i64 %indvars.iv50, -1
  %18 = call ptr @MinimumCostEdge(ptr noundef nonnull %8)
  %19 = getelementptr inbounds i8, ptr %18, i64 12
  %20 = load i32, ptr %19, align 4, !tbaa !8
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i32, ptr %6, i64 %21
  %23 = trunc nuw nsw i64 %indvars.iv.next51 to i32
  store i32 %23, ptr %22, align 4, !tbaa !16
  %24 = getelementptr inbounds i8, ptr %18, i64 180
  %25 = load i32, ptr %24, align 4, !tbaa !17
  %26 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next51
  store i32 %25, ptr %26, align 4, !tbaa !16
  %27 = load i32, ptr %19, align 4, !tbaa !8
  call void @Collapse(ptr noundef nonnull %8, i32 noundef %27, i32 noundef %25)
  %28 = icmp ugt i64 %indvars.iv50, 1
  br i1 %28, label %.lr.ph44, label %.preheader, !llvm.loop !18

.lr.ph46:                                         ; preds = %44, %.lr.ph46.preheader.new
  %indvars.iv53 = phi i64 [ 0, %.lr.ph46.preheader.new ], [ %indvars.iv.next54.1, %44 ]
  %niter = phi i64 [ 0, %.lr.ph46.preheader.new ], [ %niter.next.1, %44 ]
  %29 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv53
  %30 = load i32, ptr %29, align 4, !tbaa !16
  %31 = icmp eq i32 %30, -1
  br i1 %31, label %.lr.ph46.1, label %32

32:                                               ; preds = %.lr.ph46
  %33 = sext i32 %30 to i64
  %34 = getelementptr inbounds i32, ptr %6, i64 %33
  %35 = load i32, ptr %34, align 4, !tbaa !16
  br label %.lr.ph46.1

.lr.ph46.1:                                       ; preds = %.lr.ph46, %32
  %36 = phi i32 [ %35, %32 ], [ 0, %.lr.ph46 ]
  store i32 %36, ptr %29, align 4, !tbaa !16
  %indvars.iv.next54 = or disjoint i64 %indvars.iv53, 1
  %37 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv.next54
  %38 = load i32, ptr %37, align 4, !tbaa !16
  %39 = icmp eq i32 %38, -1
  br i1 %39, label %44, label %40

40:                                               ; preds = %.lr.ph46.1
  %41 = sext i32 %38 to i64
  %42 = getelementptr inbounds i32, ptr %6, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !16
  br label %44

44:                                               ; preds = %40, %.lr.ph46.1
  %45 = phi i32 [ %43, %40 ], [ 0, %.lr.ph46.1 ]
  store i32 %45, ptr %37, align 4, !tbaa !16
  %indvars.iv.next54.1 = add nuw nsw i64 %indvars.iv53, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %._crit_edge47.loopexit.unr-lcssa, label %.lr.ph46, !llvm.loop !19

._crit_edge47.loopexit.unr-lcssa:                 ; preds = %44, %.lr.ph46.preheader
  %indvars.iv53.unr = phi i64 [ 0, %.lr.ph46.preheader ], [ %indvars.iv.next54.1, %44 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge47, label %.lr.ph46.epil

.lr.ph46.epil:                                    ; preds = %._crit_edge47.loopexit.unr-lcssa
  %46 = getelementptr inbounds i32, ptr %5, i64 %indvars.iv53.unr
  %47 = load i32, ptr %46, align 4, !tbaa !16
  %48 = icmp eq i32 %47, -1
  br i1 %48, label %._crit_edge47.loopexit.epilog-lcssa, label %49

49:                                               ; preds = %.lr.ph46.epil
  %50 = sext i32 %47 to i64
  %51 = getelementptr inbounds i32, ptr %6, i64 %50
  %52 = load i32, ptr %51, align 4, !tbaa !16
  br label %._crit_edge47.loopexit.epilog-lcssa

._crit_edge47.loopexit.epilog-lcssa:              ; preds = %49, %.lr.ph46.epil
  %53 = phi i32 [ %52, %49 ], [ 0, %.lr.ph46.epil ]
  store i32 %53, ptr %46, align 4, !tbaa !16
  br label %._crit_edge47

._crit_edge47:                                    ; preds = %._crit_edge47.loopexit.epilog-lcssa, %._crit_edge47.loopexit.unr-lcssa, %._crit_edge, %.preheader
  call void @mesh_deinit(ptr noundef nonnull %8)
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %8) #2
  ret void
}

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

; Function Attrs: nounwind uwtable
declare hidden void @mesh_init(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @AddVertex(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @AddTriangle(ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @ComputeAllEdgeCollapseCosts(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden ptr @MinimumCostEdge(ptr noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @Collapse(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; 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 hidden void @mesh_deinit(ptr noundef) local_unnamed_addr #0

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 = { 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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !12, i64 12}
!9 = !{!"vertex", !10, i64 0, !12, i64 12, !13, i64 16, !13, i64 96, !15, i64 176, !12, i64 180}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C/C++ TBAA"}
!12 = !{!"int", !10, i64 0}
!13 = !{!"array", !12, i64 0, !12, i64 4, !14, i64 8, !10, i64 16}
!14 = !{!"any pointer", !10, i64 0}
!15 = !{!"float", !10, i64 0}
!16 = !{!12, !12, i64 0}
!17 = !{!9, !12, i64 180}
!18 = distinct !{!18, !6}
!19 = distinct !{!19, !6}


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