; LLVM IR from jingweizhanghuai/Morn :: src/util (morn_memory_block)

; 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.HandleList = type { %struct.MList, i32, i32, i32, i32 }
%struct.MList = type { i32, ptr }
%struct.MHandle = type { i32, i32, ptr, ptr }
%struct.HandleMemory = type { i32, i32, i32, i32, ptr, i32, i32, ptr, i32 }
%struct.MMemoryBlock = type { i32, i32, ptr, ptr, ptr, i32 }

; 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: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #1

; Function Attrs: nounwind
declare void @free(ptr noundef) #2

; 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 void @MemoryCollect(ptr noundef %0, ptr noundef %1) #4 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %11, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.HandleList, ptr %12, i64 -1
  %14 = getelementptr inbounds %struct.HandleList, ptr %13, i32 0, i32 0
  %15 = getelementptr inbounds %struct.MList, ptr %14, i32 0, i32 1
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds ptr, ptr %16, i64 0
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.MHandle, ptr %18, i32 0, i32 3
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  store ptr %20, ptr %6, align 8, !tbaa !5
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.HandleMemory, ptr %21, i32 0, i32 6
  %23 = load i32, ptr %22, align 4, !tbaa !15
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.MList, ptr %24, i32 0, i32 0
  %26 = load i32, ptr %25, align 8, !tbaa !17
  %27 = icmp ne i32 %23, %26
  br i1 %27, label %28, label %70

28:                                               ; preds = %2
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.HandleMemory, ptr %29, i32 0, i32 6
  %31 = load i32, ptr %30, align 4, !tbaa !15
  %32 = load ptr, ptr %5, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.MList, ptr %32, i32 0, i32 0
  %34 = load i32, ptr %33, align 8, !tbaa !17
  %35 = icmp slt i32 %31, %34
  br i1 %35, label %36, label %54

36:                                               ; preds = %28
  %37 = load ptr, ptr %6, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.HandleMemory, ptr %37, i32 0, i32 7
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %40 = icmp ne ptr %39, null
  br i1 %40, label %41, label %45

41:                                               ; preds = %36
  %42 = load ptr, ptr %6, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.HandleMemory, ptr %42, i32 0, i32 7
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  call void @free(ptr noundef %44) #5
  br label %45

45:                                               ; preds = %41, %36
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.MList, ptr %46, i32 0, i32 0
  %48 = load i32, ptr %47, align 8, !tbaa !17
  %49 = sext i32 %48 to i64
  %50 = mul i64 %49, 4
  %51 = call noalias ptr @malloc(i64 noundef %50) #6
  %52 = load ptr, ptr %6, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.HandleMemory, ptr %52, i32 0, i32 7
  store ptr %51, ptr %53, align 8, !tbaa !18
  br label %54

54:                                               ; preds = %45, %28
  %55 = load ptr, ptr %6, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.HandleMemory, ptr %55, i32 0, i32 7
  %57 = load ptr, ptr %56, align 8, !tbaa !18
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MList, ptr %58, i32 0, i32 0
  %60 = load i32, ptr %59, align 8, !tbaa !17
  %61 = sext i32 %60 to i64
  %62 = mul i64 %61, 4
  call void @llvm.memset.p0.i64(ptr align 4 %57, i8 0, i64 %62, i1 false)
  %63 = load ptr, ptr %5, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.MList, ptr %63, i32 0, i32 0
  %65 = load i32, ptr %64, align 8, !tbaa !17
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %struct.HandleMemory, ptr %66, i32 0, i32 6
  store i32 %65, ptr %67, align 4, !tbaa !15
  %68 = load ptr, ptr %6, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.HandleMemory, ptr %68, i32 0, i32 8
  store i32 0, ptr %69, align 8, !tbaa !19
  br label %70

70:                                               ; preds = %54, %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  %71 = load ptr, ptr %6, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.HandleMemory, ptr %71, i32 0, i32 8
  %73 = load i32, ptr %72, align 8, !tbaa !19
  store i32 %73, ptr %7, align 4, !tbaa !20
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  %74 = load i32, ptr %7, align 4, !tbaa !20
  store i32 %74, ptr %8, align 4, !tbaa !20
  br label %75

75:                                               ; preds = %123, %70
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.MList, ptr %76, i32 0, i32 1
  %78 = load ptr, ptr %77, align 8, !tbaa !21
  %79 = load i32, ptr %8, align 4, !tbaa !20
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds ptr, ptr %78, i64 %80
  %82 = load ptr, ptr %81, align 8, !tbaa !5
  store ptr %82, ptr %9, align 8, !tbaa !5
  %83 = load ptr, ptr %3, align 8, !tbaa !5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.MMemoryBlock, ptr %84, i32 0, i32 2
  %86 = load ptr, ptr %85, align 8, !tbaa !22
  %87 = icmp uge ptr %83, %86
  br i1 %87, label %88, label %110

88:                                               ; preds = %75
  %89 = load ptr, ptr %3, align 8, !tbaa !5
  %90 = load ptr, ptr %9, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.MMemoryBlock, ptr %90, i32 0, i32 2
  %92 = load ptr, ptr %91, align 8, !tbaa !22
  %93 = load ptr, ptr %9, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.MMemoryBlock, ptr %93, i32 0, i32 1
  %95 = load i32, ptr %94, align 4, !tbaa !24
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %92, i64 %96
  %98 = icmp ult ptr %89, %97
  br i1 %98, label %99, label %109

99:                                               ; preds = %88
  %100 = load ptr, ptr %6, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.HandleMemory, ptr %100, i32 0, i32 7
  %102 = load ptr, ptr %101, align 8, !tbaa !18
  %103 = load i32, ptr %8, align 4, !tbaa !20
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i32, ptr %102, i64 %104
  store i32 1, ptr %105, align 4, !tbaa !20
  %106 = load i32, ptr %8, align 4, !tbaa !20
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.HandleMemory, ptr %107, i32 0, i32 8
  store i32 %106, ptr %108, align 8, !tbaa !19
  store i32 1, ptr %10, align 4
  br label %120

109:                                              ; preds = %88
  br label %110

110:                                              ; preds = %109, %75
  %111 = load i32, ptr %8, align 4, !tbaa !20
  %112 = add nsw i32 %111, 1
  store i32 %112, ptr %8, align 4, !tbaa !20
  %113 = load i32, ptr %8, align 4, !tbaa !20
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.MList, ptr %114, i32 0, i32 0
  %116 = load i32, ptr %115, align 8, !tbaa !17
  %117 = icmp sge i32 %113, %116
  br i1 %117, label %118, label %119

118:                                              ; preds = %110
  store i32 0, ptr %8, align 4, !tbaa !20
  br label %119

119:                                              ; preds = %118, %110
  store i32 0, ptr %10, align 4
  br label %120

120:                                              ; preds = %119, %99
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  %121 = load i32, ptr %10, align 4
  switch i32 %121, label %128 [
    i32 0, label %122
  ]

122:                                              ; preds = %120
  br label %123

123:                                              ; preds = %122
  %124 = load i32, ptr %8, align 4, !tbaa !20
  %125 = load i32, ptr %7, align 4, !tbaa !20
  %126 = icmp ne i32 %124, %125
  br i1 %126, label %75, label %127, !llvm.loop !25

127:                                              ; preds = %123
  store i32 0, ptr %10, align 4
  br label %128

128:                                              ; preds = %127, %120
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  %129 = load i32, ptr %10, align 4
  switch i32 %129, label %131 [
    i32 0, label %130
    i32 1, label %130
  ]

130:                                              ; preds = %128, %128
  ret void

131:                                              ; preds = %128
  unreachable
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind allocsize(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 "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 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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 8}
!10 = !{!"HandleList", !11, i64 0, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28}
!11 = !{!"MList", !12, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 16}
!14 = !{!"MHandle", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16}
!15 = !{!16, !12, i64 28}
!16 = !{!"HandleMemory", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !6, i64 16, !12, i64 24, !12, i64 28, !6, i64 32, !12, i64 40}
!17 = !{!11, !12, i64 0}
!18 = !{!16, !6, i64 32}
!19 = !{!16, !12, i64 40}
!20 = !{!12, !12, i64 0}
!21 = !{!11, !6, i64 8}
!22 = !{!23, !6, i64 8}
!23 = !{!"MMemoryBlock", !12, i64 0, !12, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !12, i64 32}
!24 = !{!23, !12, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite)
declare void @free(ptr allocptr nocapture noundef) local_unnamed_addr #1

; 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 void @MemoryCollect(ptr noundef readnone %0, ptr nocapture noundef readonly %1) local_unnamed_addr #3 {
  %3 = getelementptr inbounds i8, ptr %1, i64 -24
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = load ptr, ptr %4, align 8, !tbaa !12
  %6 = getelementptr inbounds i8, ptr %5, i64 16
  %7 = load ptr, ptr %6, align 8, !tbaa !13
  %8 = getelementptr inbounds i8, ptr %7, i64 28
  %9 = load i32, ptr %8, align 4, !tbaa !15
  %10 = load i32, ptr %1, align 8, !tbaa !17
  %.not = icmp eq i32 %9, %10
  br i1 %.not, label %._crit_edge53, label %11

._crit_edge53:                                    ; preds = %2
  %.phi.trans.insert54 = getelementptr inbounds i8, ptr %7, i64 40
  %.pre55 = load i32, ptr %.phi.trans.insert54, align 8, !tbaa !18
  br label %26

11:                                               ; preds = %2
  %12 = icmp slt i32 %9, %10
  %13 = getelementptr inbounds i8, ptr %7, i64 32
  %14 = load ptr, ptr %13, align 8, !tbaa !19
  br i1 %12, label %15, label %._crit_edge

._crit_edge:                                      ; preds = %11
  %.pre56 = sext i32 %10 to i64
  %.pre57 = shl nsw i64 %.pre56, 2
  br label %22

15:                                               ; preds = %11
  %.not39 = icmp eq ptr %14, null
  br i1 %.not39, label %17, label %16

16:                                               ; preds = %15
  tail call void @free(ptr noundef nonnull %14) #4
  %.pre = load i32, ptr %1, align 8, !tbaa !17
  br label %17

17:                                               ; preds = %16, %15
  %18 = phi i32 [ %.pre, %16 ], [ %10, %15 ]
  %19 = sext i32 %18 to i64
  %20 = shl nsw i64 %19, 2
  %21 = tail call noalias ptr @malloc(i64 noundef %20) #5
  store ptr %21, ptr %13, align 8, !tbaa !19
  br label %22

22:                                               ; preds = %._crit_edge, %17
  %.pre-phi58 = phi i64 [ %.pre57, %._crit_edge ], [ %20, %17 ]
  %23 = phi ptr [ %14, %._crit_edge ], [ %21, %17 ]
  tail call void @llvm.memset.p0.i64(ptr align 4 %23, i8 0, i64 %.pre-phi58, i1 false)
  %24 = load i32, ptr %1, align 8, !tbaa !17
  store i32 %24, ptr %8, align 4, !tbaa !15
  %25 = getelementptr inbounds i8, ptr %7, i64 40
  store i32 0, ptr %25, align 8, !tbaa !18
  br label %26

26:                                               ; preds = %._crit_edge53, %22
  %27 = phi i32 [ %9, %._crit_edge53 ], [ %24, %22 ]
  %28 = phi i32 [ %.pre55, %._crit_edge53 ], [ 0, %22 ]
  %29 = getelementptr inbounds i8, ptr %7, i64 40
  %30 = getelementptr inbounds i8, ptr %1, i64 8
  %31 = load ptr, ptr %30, align 8, !tbaa !20
  br label %32

32:                                               ; preds = %47, %26
  %.033 = phi i32 [ %28, %26 ], [ %spec.store.select, %47 ]
  %33 = sext i32 %.033 to i64
  %34 = getelementptr inbounds ptr, ptr %31, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !12
  %36 = getelementptr inbounds i8, ptr %35, i64 8
  %37 = load ptr, ptr %36, align 8, !tbaa !21
  %.not40 = icmp ugt ptr %37, %0
  br i1 %.not40, label %47, label %38

38:                                               ; preds = %32
  %39 = getelementptr inbounds i8, ptr %35, i64 4
  %40 = load i32, ptr %39, align 4, !tbaa !23
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i8, ptr %37, i64 %41
  %43 = icmp ugt ptr %42, %0
  br i1 %43, label %.thread, label %47

.thread:                                          ; preds = %38
  %44 = getelementptr inbounds i8, ptr %7, i64 32
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = getelementptr inbounds i32, ptr %45, i64 %33
  store i32 1, ptr %46, align 4, !tbaa !24
  store i32 %.033, ptr %29, align 8, !tbaa !18
  br label %.loopexit

47:                                               ; preds = %32, %38
  %48 = add nsw i32 %.033, 1
  %.not41 = icmp slt i32 %48, %27
  %spec.store.select = select i1 %.not41, i32 %48, i32 0
  %.not42 = icmp eq i32 %spec.store.select, %28
  br i1 %.not42, label %.loopexit, label %32, !llvm.loop !25

.loopexit:                                        ; preds = %47, %.thread
  ret void
}

attributes #0 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 nounwind willreturn allockind("free") memory(argmem: readwrite, inaccessiblemem: readwrite) "alloc-family"="malloc" "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 = { nounwind }
attributes #5 = { nounwind allocsize(0) }

!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 8}
!6 = !{!"HandleList", !7, i64 0, !8, i64 16, !8, i64 20, !8, i64 24, !8, i64 28}
!7 = !{!"MList", !8, i64 0, !11, i64 8}
!8 = !{!"int", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!"any pointer", !9, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!14, !11, i64 16}
!14 = !{!"MHandle", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16}
!15 = !{!16, !8, i64 28}
!16 = !{!"HandleMemory", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !11, i64 16, !8, i64 24, !8, i64 28, !11, i64 32, !8, i64 40}
!17 = !{!7, !8, i64 0}
!18 = !{!16, !8, i64 40}
!19 = !{!16, !11, i64 32}
!20 = !{!7, !11, i64 8}
!21 = !{!22, !11, i64 8}
!22 = !{!"MMemoryBlock", !8, i64 0, !8, i64 4, !11, i64 8, !11, i64 16, !11, i64 24, !8, i64 32}
!23 = !{!22, !8, i64 4}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}


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