; LLVM IR from aap/librw :: src/image.ll (ZN2rw5Image9applyMaskEPS0_)

; 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.rw::Image" = type { i32, i32, i32, i32, i32, i32, ptr, ptr }

@.str.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw5Image9applyMaskEPS0_ = external hidden unnamed_addr constant [35 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 nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw5Image11convertTo32Ev(ptr noundef nonnull align 8 dereferenceable(40)) #1 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw5Image9applyMaskEPS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr noundef %1) #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %12 = load ptr, ptr %3, align 8
  %13 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 1
  %14 = load i32, ptr %13, align 4, !tbaa !9
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %"struct.rw::Image", ptr %15, i32 0, i32 1
  %17 = load i32, ptr %16, align 4, !tbaa !9
  %18 = icmp ne i32 %14, %17
  br i1 %18, label %26, label %19

19:                                               ; preds = %2
  %20 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 2
  %21 = load i32, ptr %20, align 8, !tbaa !12
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.rw::Image", ptr %22, i32 0, i32 2
  %24 = load i32, ptr %23, align 8, !tbaa !12
  %25 = icmp ne i32 %21, %24
  br i1 %25, label %26, label %27

26:                                               ; preds = %19, %2
  br label %129

27:                                               ; preds = %19
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.rw::Image", ptr %28, i32 0, i32 3
  %30 = load i32, ptr %29, align 4, !tbaa !13
  %31 = icmp eq i32 %30, 16
  br i1 %31, label %37, label %32

32:                                               ; preds = %27
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.rw::Image", ptr %33, i32 0, i32 3
  %35 = load i32, ptr %34, align 4, !tbaa !13
  %36 = icmp eq i32 %35, 24
  br i1 %36, label %37, label %38

37:                                               ; preds = %32, %27
  br label %129

38:                                               ; preds = %32
  call void @_ZN2rw5Image11convertTo32Ev(ptr noundef nonnull align 8 dereferenceable(40) %12)
  %39 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 3
  %40 = load i32, ptr %39, align 4, !tbaa !13
  %41 = icmp eq i32 %40, 32
  br i1 %41, label %42, label %43

42:                                               ; preds = %38
  br label %45

43:                                               ; preds = %38
  call void @__assert_fail(ptr noundef @.str.12, ptr noundef @.str.2, i32 noundef 795, ptr noundef @__PRETTY_FUNCTION__._ZN2rw5Image9applyMaskEPS0_) #3
  unreachable

44:                                               ; No predecessors!
  br label %45

45:                                               ; preds = %44, %42
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %46 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 6
  %47 = load ptr, ptr %46, align 8, !tbaa !14
  store ptr %47, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.rw::Image", ptr %48, i32 0, i32 6
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  store ptr %50, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  store i32 0, ptr %9, align 4, !tbaa !15
  br label %51

51:                                               ; preds = %125, %45
  %52 = load i32, ptr %9, align 4, !tbaa !15
  %53 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 2
  %54 = load i32, ptr %53, align 8, !tbaa !12
  %55 = icmp slt i32 %52, %54
  br i1 %55, label %57, label %56

56:                                               ; preds = %51
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  br label %128

57:                                               ; preds = %51
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  store ptr %58, ptr %7, align 8, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %59, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !15
  br label %60

60:                                               ; preds = %110, %57
  %61 = load i32, ptr %11, align 4, !tbaa !15
  %62 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 1
  %63 = load i32, ptr %62, align 4, !tbaa !9
  %64 = icmp slt i32 %61, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %60
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %113

66:                                               ; preds = %60
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.rw::Image", ptr %67, i32 0, i32 3
  %69 = load i32, ptr %68, align 4, !tbaa !13
  %70 = icmp eq i32 %69, 32
  br i1 %70, label %71, label %77

71:                                               ; preds = %66
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  %73 = getelementptr inbounds i8, ptr %72, i64 3
  %74 = load i8, ptr %73, align 1, !tbaa !16
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 3
  store i8 %74, ptr %76, align 1, !tbaa !16
  br label %98

77:                                               ; preds = %66
  %78 = load ptr, ptr %4, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.rw::Image", ptr %78, i32 0, i32 3
  %80 = load i32, ptr %79, align 4, !tbaa !13
  %81 = icmp sle i32 %80, 8
  br i1 %81, label %82, label %97

82:                                               ; preds = %77
  %83 = load ptr, ptr %4, align 8, !tbaa !5
  %84 = getelementptr inbounds %"struct.rw::Image", ptr %83, i32 0, i32 7
  %85 = load ptr, ptr %84, align 8, !tbaa !17
  %86 = load ptr, ptr %8, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 0
  %88 = load i8, ptr %87, align 1, !tbaa !16
  %89 = zext i8 %88 to i32
  %90 = mul nsw i32 %89, 4
  %91 = add nsw i32 %90, 3
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i8, ptr %85, i64 %92
  %94 = load i8, ptr %93, align 1, !tbaa !16
  %95 = load ptr, ptr %7, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 3
  store i8 %94, ptr %96, align 1, !tbaa !16
  br label %97

97:                                               ; preds = %82, %77
  br label %98

98:                                               ; preds = %97, %71
  %99 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 4
  %100 = load i32, ptr %99, align 8, !tbaa !18
  %101 = load ptr, ptr %7, align 8, !tbaa !5
  %102 = sext i32 %100 to i64
  %103 = getelementptr inbounds i8, ptr %101, i64 %102
  store ptr %103, ptr %7, align 8, !tbaa !5
  %104 = load ptr, ptr %4, align 8, !tbaa !5
  %105 = getelementptr inbounds %"struct.rw::Image", ptr %104, i32 0, i32 4
  %106 = load i32, ptr %105, align 8, !tbaa !18
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = sext i32 %106 to i64
  %109 = getelementptr inbounds i8, ptr %107, i64 %108
  store ptr %109, ptr %8, align 8, !tbaa !5
  br label %110

110:                                              ; preds = %98
  %111 = load i32, ptr %11, align 4, !tbaa !15
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %11, align 4, !tbaa !15
  br label %60, !llvm.loop !19

113:                                              ; preds = %65
  %114 = getelementptr inbounds %"struct.rw::Image", ptr %12, i32 0, i32 5
  %115 = load i32, ptr %114, align 4, !tbaa !21
  %116 = load ptr, ptr %5, align 8, !tbaa !5
  %117 = sext i32 %115 to i64
  %118 = getelementptr inbounds i8, ptr %116, i64 %117
  store ptr %118, ptr %5, align 8, !tbaa !5
  %119 = load ptr, ptr %4, align 8, !tbaa !5
  %120 = getelementptr inbounds %"struct.rw::Image", ptr %119, i32 0, i32 5
  %121 = load i32, ptr %120, align 4, !tbaa !21
  %122 = load ptr, ptr %6, align 8, !tbaa !5
  %123 = sext i32 %121 to i64
  %124 = getelementptr inbounds i8, ptr %122, i64 %123
  store ptr %124, ptr %6, align 8, !tbaa !5
  br label %125

125:                                              ; preds = %113
  %126 = load i32, ptr %9, align 4, !tbaa !15
  %127 = add nsw i32 %126, 1
  store i32 %127, ptr %9, align 4, !tbaa !15
  br label %51, !llvm.loop !22

128:                                              ; preds = %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %129

129:                                              ; preds = %128, %37, %26
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { noreturn 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 = { noreturn nounwind }
attributes #4 = { 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++ TBAA"}
!9 = !{!10, !11, i64 4}
!10 = !{!"_ZTSN2rw5ImageE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !6, i64 24, !6, i64 32}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 8}
!13 = !{!10, !11, i64 12}
!14 = !{!10, !6, i64 24}
!15 = !{!11, !11, i64 0}
!16 = !{!7, !7, i64 0}
!17 = !{!10, !6, i64 32}
!18 = !{!10, !11, i64 16}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!10, !11, i64 20}
!22 = distinct !{!22, !20}


; 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.2 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [18 x i8], align 1
@__PRETTY_FUNCTION__._ZN2rw5Image9applyMaskEPS0_ = external hidden unnamed_addr constant [35 x i8], align 1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw5Image11convertTo32Ev(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw5Image9applyMaskEPS0_(ptr noundef nonnull align 8 dereferenceable(40) %0, ptr nocapture noundef readonly %1) local_unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 4
  %4 = load i32, ptr %3, align 4, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %1, i64 4
  %6 = load i32, ptr %5, align 4, !tbaa !5
  %.not = icmp eq i32 %4, %6
  br i1 %.not, label %7, label %.loopexit

7:                                                ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  %9 = load i32, ptr %8, align 8, !tbaa !11
  %10 = getelementptr inbounds i8, ptr %1, i64 8
  %11 = load i32, ptr %10, align 8, !tbaa !11
  %.not31 = icmp eq i32 %9, %11
  br i1 %.not31, label %12, label %.loopexit

12:                                               ; preds = %7
  %13 = getelementptr inbounds i8, ptr %1, i64 12
  %14 = load i32, ptr %13, align 4, !tbaa !12
  switch i32 %14, label %15 [
    i32 16, label %.loopexit
    i32 24, label %.loopexit
  ]

15:                                               ; preds = %12
  tail call void @_ZN2rw5Image11convertTo32Ev(ptr noundef nonnull align 8 dereferenceable(40) %0)
  %16 = getelementptr inbounds i8, ptr %0, i64 12
  %17 = load i32, ptr %16, align 4, !tbaa !12
  %18 = icmp eq i32 %17, 32
  br i1 %18, label %20, label %19

19:                                               ; preds = %15
  tail call void @__assert_fail(ptr noundef nonnull @.str.12, ptr noundef nonnull @.str.2, i32 noundef 795, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN2rw5Image9applyMaskEPS0_) #2
  unreachable

20:                                               ; preds = %15
  %21 = load i32, ptr %8, align 8, !tbaa !11
  %22 = icmp sgt i32 %21, 0
  br i1 %22, label %.preheader.lr.ph, label %.loopexit

.preheader.lr.ph:                                 ; preds = %20
  %23 = getelementptr inbounds i8, ptr %1, i64 32
  %24 = getelementptr inbounds i8, ptr %0, i64 16
  %25 = getelementptr inbounds i8, ptr %1, i64 16
  %26 = getelementptr inbounds i8, ptr %0, i64 20
  %27 = getelementptr inbounds i8, ptr %1, i64 20
  %28 = load i32, ptr %3, align 4, !tbaa !5
  %29 = icmp sgt i32 %28, 0
  br i1 %29, label %.preheader.preheader, label %.loopexit

.preheader.preheader:                             ; preds = %.preheader.lr.ph
  %30 = getelementptr inbounds i8, ptr %1, i64 24
  %31 = load ptr, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds i8, ptr %0, i64 24
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  br label %.preheader

.preheader:                                       ; preds = %.preheader.preheader, %._crit_edge
  %34 = phi i32 [ %37, %._crit_edge ], [ %21, %.preheader.preheader ]
  %35 = phi i32 [ %38, %._crit_edge ], [ %28, %.preheader.preheader ]
  %.02437 = phi i32 [ %45, %._crit_edge ], [ 0, %.preheader.preheader ]
  %.02736 = phi ptr [ %44, %._crit_edge ], [ %31, %.preheader.preheader ]
  %.02835 = phi ptr [ %41, %._crit_edge ], [ %33, %.preheader.preheader ]
  %36 = icmp sgt i32 %35, 0
  br i1 %36, label %.lr.ph, label %._crit_edge

._crit_edge.loopexit:                             ; preds = %62
  %.pre = load i32, ptr %8, align 8, !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %37 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %34, %.preheader ]
  %38 = phi i32 [ %70, %._crit_edge.loopexit ], [ %35, %.preheader ]
  %39 = load i32, ptr %26, align 4, !tbaa !14
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %.02835, i64 %40
  %42 = load i32, ptr %27, align 4, !tbaa !14
  %43 = sext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %.02736, i64 %43
  %45 = add nuw nsw i32 %.02437, 1
  %46 = icmp slt i32 %45, %37
  br i1 %46, label %.preheader, label %.loopexit, !llvm.loop !15

.lr.ph:                                           ; preds = %.preheader, %62
  %.034 = phi i32 [ %69, %62 ], [ 0, %.preheader ]
  %.02533 = phi ptr [ %68, %62 ], [ %.02736, %.preheader ]
  %.02632 = phi ptr [ %65, %62 ], [ %.02835, %.preheader ]
  %47 = load i32, ptr %13, align 4, !tbaa !12
  %48 = icmp eq i32 %47, 32
  br i1 %48, label %49, label %51

49:                                               ; preds = %.lr.ph
  %50 = getelementptr inbounds i8, ptr %.02533, i64 3
  br label %.sink.split

51:                                               ; preds = %.lr.ph
  %52 = icmp slt i32 %47, 9
  br i1 %52, label %53, label %62

53:                                               ; preds = %51
  %54 = load ptr, ptr %23, align 8, !tbaa !18
  %55 = load i8, ptr %.02533, align 1, !tbaa !19
  %56 = zext i8 %55 to i64
  %57 = shl nuw nsw i64 %56, 2
  %58 = or disjoint i64 %57, 3
  %59 = getelementptr inbounds i8, ptr %54, i64 %58
  br label %.sink.split

.sink.split:                                      ; preds = %49, %53
  %.sink40 = phi ptr [ %59, %53 ], [ %50, %49 ]
  %60 = load i8, ptr %.sink40, align 1, !tbaa !19
  %61 = getelementptr inbounds i8, ptr %.02632, i64 3
  store i8 %60, ptr %61, align 1, !tbaa !19
  br label %62

62:                                               ; preds = %.sink.split, %51
  %63 = load i32, ptr %24, align 8, !tbaa !20
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds i8, ptr %.02632, i64 %64
  %66 = load i32, ptr %25, align 8, !tbaa !20
  %67 = sext i32 %66 to i64
  %68 = getelementptr inbounds i8, ptr %.02533, i64 %67
  %69 = add nuw nsw i32 %.034, 1
  %70 = load i32, ptr %3, align 4, !tbaa !5
  %71 = icmp slt i32 %69, %70
  br i1 %71, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !21

.loopexit:                                        ; preds = %._crit_edge, %.preheader.lr.ph, %20, %12, %12, %2, %7
  ret void
}

attributes #0 = { mustprogress 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 = { noreturn 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 = { noreturn 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, !7, i64 4}
!6 = !{!"_ZTSN2rw5ImageE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 8}
!12 = !{!6, !7, i64 12}
!13 = !{!6, !10, i64 24}
!14 = !{!6, !7, i64 20}
!15 = distinct !{!15, !16, !17}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.unswitch.partial.disable"}
!18 = !{!6, !10, i64 32}
!19 = !{!8, !8, i64 0}
!20 = !{!6, !7, i64 16}
!21 = distinct !{!21, !16}


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