; LLVM IR from PyCee/NUS_library :: src/render (NUS_texture)

; 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.NUS_memory_map = type { ptr, ptr, i64, %struct.NUS_binding }
%struct.NUS_binding = type { ptr, ptr, ptr, i32 }
%struct.VkBufferImageCopy = type { i64, i32, i32, %struct.VkImageSubresourceLayers, %struct.VkOffset3D, %struct.VkExtent3D }
%struct.VkImageSubresourceLayers = type { i32, i32, i32, i32 }
%struct.VkOffset3D = type { i32, i32, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }
%struct.NUS_texture = type { ptr, ptr, i32, i32, i32, i32, i32, %struct.NUS_binding }

@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@vkCmdCopyBufferToImage = external dso_local global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [55 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

declare i32 @printf(ptr noundef, ...) #1

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

declare void @nus_bind_binding(ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @nus_texture_buffer_image(ptr noundef %0, i64 noundef %1, ptr noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca %struct.NUS_memory_map, align 8
  %9 = alloca i32, align 4
  %10 = alloca %struct.VkBufferImageCopy, align 8
  %11 = alloca ptr, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i64 %1, ptr %6, align 8, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.NUS_texture, ptr %12, i32 0, i32 7
  call void @nus_bind_binding(ptr noundef %13)
  %14 = load i64, ptr %6, align 8, !tbaa !9
  %15 = trunc i64 %14 to i32
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.NUS_texture, ptr %16, i32 0, i32 6
  store i32 %15, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 56, ptr %8) #3
  %18 = load i64, ptr %6, align 8, !tbaa !9
  %19 = call i32 @nus_memory_map_build(i64 noundef %18, i32 noundef 1, i32 noundef 2, ptr noundef %8)
  %20 = icmp ne i32 %19, 1
  br i1 %20, label %21, label %23

21:                                               ; preds = %3
  %22 = call i32 (ptr, ...) @printf(ptr noundef @.str.2)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %75

23:                                               ; preds = %3
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = load i64, ptr %6, align 8, !tbaa !9
  %26 = call i32 @nus_memory_map_flush(ptr noundef byval(%struct.NUS_memory_map) align 8 %8, ptr noundef %24, i64 noundef %25)
  %27 = icmp ne i32 %26, 1
  br i1 %27, label %28, label %30

28:                                               ; preds = %23
  %29 = call i32 (ptr, ...) @printf(ptr noundef @.str.3)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %75

30:                                               ; preds = %23
  call void @llvm.lifetime.start.p0(i64 56, ptr %10) #3
  %31 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %10, i32 0, i32 0
  store i64 0, ptr %31, align 8, !tbaa !15
  %32 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %10, i32 0, i32 1
  store i32 0, ptr %32, align 8, !tbaa !20
  %33 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %10, i32 0, i32 2
  store i32 0, ptr %33, align 4, !tbaa !21
  %34 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %10, i32 0, i32 3
  %35 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %34, i32 0, i32 0
  store i32 1, ptr %35, align 8, !tbaa !22
  %36 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %34, i32 0, i32 1
  store i32 0, ptr %36, align 4, !tbaa !23
  %37 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %34, i32 0, i32 2
  store i32 0, ptr %37, align 8, !tbaa !24
  %38 = getelementptr inbounds %struct.VkImageSubresourceLayers, ptr %34, i32 0, i32 3
  store i32 1, ptr %38, align 4, !tbaa !25
  %39 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %10, i32 0, i32 4
  %40 = getelementptr inbounds %struct.VkOffset3D, ptr %39, i32 0, i32 0
  store i32 0, ptr %40, align 8, !tbaa !26
  %41 = getelementptr inbounds %struct.VkOffset3D, ptr %39, i32 0, i32 1
  store i32 0, ptr %41, align 4, !tbaa !27
  %42 = getelementptr inbounds %struct.VkOffset3D, ptr %39, i32 0, i32 2
  store i32 0, ptr %42, align 8, !tbaa !28
  %43 = getelementptr inbounds %struct.VkBufferImageCopy, ptr %10, i32 0, i32 5
  %44 = getelementptr inbounds %struct.VkExtent3D, ptr %43, i32 0, i32 0
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.NUS_texture, ptr %45, i32 0, i32 4
  %47 = load i32, ptr %46, align 8, !tbaa !29
  store i32 %47, ptr %44, align 4, !tbaa !30
  %48 = getelementptr inbounds %struct.VkExtent3D, ptr %43, i32 0, i32 1
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.NUS_texture, ptr %49, i32 0, i32 5
  %51 = load i32, ptr %50, align 4, !tbaa !31
  store i32 %51, ptr %48, align 4, !tbaa !32
  %52 = getelementptr inbounds %struct.VkExtent3D, ptr %43, i32 0, i32 2
  store i32 1, ptr %52, align 4, !tbaa !33
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %53 = call i32 @nus_single_command_begin(ptr noundef %11)
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = load ptr, ptr %11, align 8, !tbaa !5
  %56 = call i32 @nus_cmd_texture_transition(ptr noundef byval(%struct.NUS_texture) align 8 %54, ptr noundef %55, i32 noundef 8, i32 noundef 7)
  %57 = load ptr, ptr @vkCmdCopyBufferToImage, align 8, !tbaa !5
  %58 = load ptr, ptr %11, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.NUS_memory_map, ptr %8, i32 0, i32 0
  %60 = load ptr, ptr %59, align 8, !tbaa !34
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.NUS_texture, ptr %61, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !36
  call void %57(ptr noundef %58, ptr noundef %60, ptr noundef %63, i32 noundef 7, i32 noundef 1, ptr noundef %10)
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = call i32 @nus_cmd_texture_transition(ptr noundef byval(%struct.NUS_texture) align 8 %64, ptr noundef %65, i32 noundef 7, i32 noundef 5)
  %67 = call i32 @nus_single_command_end()
  %68 = icmp ne i32 %67, 1
  br i1 %68, label %69, label %71

69:                                               ; preds = %30
  %70 = call i32 (ptr, ...) @printf(ptr noundef @.str.4)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %74

71:                                               ; preds = %30
  call void @nus_memory_map_free(ptr noundef %8)
  %72 = load ptr, ptr %7, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.NUS_texture, ptr %72, i32 0, i32 7
  call void @nus_bind_binding(ptr noundef %73)
  store i32 1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %74

74:                                               ; preds = %71, %69
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 56, ptr %10) #3
  br label %75

75:                                               ; preds = %74, %28, %21
  call void @llvm.lifetime.end.p0(i64 56, ptr %8) #3
  %76 = load i32, ptr %4, align 4
  ret i32 %76
}

declare i32 @nus_memory_map_build(i64 noundef, i32 noundef, i32 noundef, ptr noundef) #1

declare i32 @nus_memory_map_flush(ptr noundef byval(%struct.NUS_memory_map) align 8, ptr noundef, i64 noundef) #1

declare i32 @nus_single_command_begin(ptr noundef) #1

; Function Attrs: nounwind uwtable
declare dso_local i32 @nus_cmd_texture_transition(ptr noundef byval(%struct.NUS_texture) align 8, ptr noundef, i32 noundef, i32 noundef) #2

declare i32 @nus_single_command_end() #1

declare void @nus_memory_map_free(ptr noundef) #1

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 = !{!"long", !7, i64 0}
!11 = !{!12, !13, i64 32}
!12 = !{!"NUS_texture", !6, i64 0, !6, i64 8, !13, i64 16, !13, i64 20, !13, i64 24, !13, i64 28, !13, i64 32, !14, i64 40}
!13 = !{!"int", !7, i64 0}
!14 = !{!"NUS_binding", !6, i64 0, !6, i64 8, !6, i64 16, !13, i64 24}
!15 = !{!16, !10, i64 0}
!16 = !{!"VkBufferImageCopy", !10, i64 0, !13, i64 8, !13, i64 12, !17, i64 16, !18, i64 32, !19, i64 44}
!17 = !{!"VkImageSubresourceLayers", !13, i64 0, !13, i64 4, !13, i64 8, !13, i64 12}
!18 = !{!"VkOffset3D", !13, i64 0, !13, i64 4, !13, i64 8}
!19 = !{!"VkExtent3D", !13, i64 0, !13, i64 4, !13, i64 8}
!20 = !{!16, !13, i64 8}
!21 = !{!16, !13, i64 12}
!22 = !{!17, !13, i64 0}
!23 = !{!17, !13, i64 4}
!24 = !{!17, !13, i64 8}
!25 = !{!17, !13, i64 12}
!26 = !{!18, !13, i64 0}
!27 = !{!18, !13, i64 4}
!28 = !{!18, !13, i64 8}
!29 = !{!12, !13, i64 24}
!30 = !{!19, !13, i64 0}
!31 = !{!12, !13, i64 28}
!32 = !{!19, !13, i64 4}
!33 = !{!19, !13, i64 8}
!34 = !{!35, !6, i64 0}
!35 = !{!"NUS_memory_map", !6, i64 0, !6, i64 8, !10, i64 16, !14, i64 24}
!36 = !{!12, !6, i64 0}


; 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.NUS_memory_map = type { ptr, ptr, i64, %struct.NUS_binding }
%struct.NUS_binding = type { ptr, ptr, ptr, i32 }
%struct.VkBufferImageCopy = type { i64, i32, i32, %struct.VkImageSubresourceLayers, %struct.VkOffset3D, %struct.VkExtent3D }
%struct.VkImageSubresourceLayers = type { i32, i32, i32, i32 }
%struct.VkOffset3D = type { i32, i32, i32 }
%struct.VkExtent3D = type { i32, i32, i32 }
%struct.NUS_texture = type { ptr, ptr, i32, i32, i32, i32, i32, %struct.NUS_binding }

@.str.2 = external hidden unnamed_addr constant [49 x i8], align 1
@.str.3 = external hidden unnamed_addr constant [49 x i8], align 1
@vkCmdCopyBufferToImage = external dso_local local_unnamed_addr global ptr, align 8
@.str.4 = external hidden unnamed_addr constant [55 x i8], align 1

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

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

declare void @nus_bind_binding(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @nus_texture_buffer_image(ptr noundef %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #3 {
  %4 = alloca %struct.NUS_memory_map, align 8
  %5 = alloca %struct.VkBufferImageCopy, align 8
  %6 = alloca ptr, align 8
  %7 = getelementptr inbounds i8, ptr %2, i64 40
  tail call void @nus_bind_binding(ptr noundef nonnull %7) #5
  %8 = trunc i64 %1 to i32
  %9 = getelementptr inbounds i8, ptr %2, i64 32
  store i32 %8, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %4) #5
  %10 = call i32 @nus_memory_map_build(i64 noundef %1, i32 noundef 1, i32 noundef 2, ptr noundef nonnull %4) #5
  %.not = icmp eq i32 %10, 1
  br i1 %.not, label %13, label %11

11:                                               ; preds = %3
  %12 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  br label %40

13:                                               ; preds = %3
  %14 = call i32 @nus_memory_map_flush(ptr noundef nonnull byval(%struct.NUS_memory_map) align 8 %4, ptr noundef %0, i64 noundef %1) #5
  %.not12 = icmp eq i32 %14, 1
  br i1 %.not12, label %17, label %15

15:                                               ; preds = %13
  %16 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.3)
  br label %40

17:                                               ; preds = %13
  call void @llvm.lifetime.start.p0(i64 56, ptr nonnull %5) #5
  %18 = getelementptr inbounds i8, ptr %5, i64 16
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %5, i8 0, i64 16, i1 false)
  store <4 x i32> <i32 1, i32 0, i32 0, i32 1>, ptr %18, align 8, !tbaa !12
  %19 = getelementptr inbounds i8, ptr %5, i64 32
  store i32 0, ptr %19, align 8, !tbaa !13
  %20 = getelementptr inbounds i8, ptr %5, i64 36
  store i32 0, ptr %20, align 4, !tbaa !15
  %21 = getelementptr inbounds i8, ptr %5, i64 40
  store i32 0, ptr %21, align 8, !tbaa !16
  %22 = getelementptr inbounds i8, ptr %5, i64 44
  %23 = getelementptr inbounds i8, ptr %2, i64 24
  %24 = load <2 x i32>, ptr %23, align 8, !tbaa !12
  store <2 x i32> %24, ptr %22, align 4, !tbaa !12
  %25 = getelementptr inbounds i8, ptr %5, i64 52
  store i32 1, ptr %25, align 4, !tbaa !17
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #5
  %26 = call i32 @nus_single_command_begin(ptr noundef nonnull %6) #5
  %27 = load ptr, ptr %6, align 8, !tbaa !19
  %28 = call i32 @nus_cmd_texture_transition(ptr noundef nonnull byval(%struct.NUS_texture) align 8 %2, ptr noundef %27, i32 noundef 8, i32 noundef 7)
  %29 = load ptr, ptr @vkCmdCopyBufferToImage, align 8, !tbaa !19
  %30 = load ptr, ptr %6, align 8, !tbaa !19
  %31 = load ptr, ptr %4, align 8, !tbaa !20
  %32 = load ptr, ptr %2, align 8, !tbaa !23
  call void %29(ptr noundef %30, ptr noundef %31, ptr noundef %32, i32 noundef 7, i32 noundef 1, ptr noundef nonnull %5) #5
  %33 = load ptr, ptr %6, align 8, !tbaa !19
  %34 = call i32 @nus_cmd_texture_transition(ptr noundef nonnull byval(%struct.NUS_texture) align 8 %2, ptr noundef %33, i32 noundef 7, i32 noundef 5)
  %35 = call i32 @nus_single_command_end() #5
  %.not13 = icmp eq i32 %35, 1
  br i1 %.not13, label %38, label %36

36:                                               ; preds = %17
  %37 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.4)
  br label %39

38:                                               ; preds = %17
  call void @nus_memory_map_free(ptr noundef nonnull %4) #5
  call void @nus_bind_binding(ptr noundef nonnull %7) #5
  br label %39

39:                                               ; preds = %38, %36
  %.0 = phi i32 [ 0, %36 ], [ 1, %38 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %5) #5
  br label %40

40:                                               ; preds = %39, %15, %11
  %.1 = phi i32 [ 0, %11 ], [ 0, %15 ], [ %.0, %39 ]
  call void @llvm.lifetime.end.p0(i64 56, ptr nonnull %4) #5
  ret i32 %.1
}

declare i32 @nus_memory_map_build(i64 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

declare i32 @nus_memory_map_flush(ptr noundef byval(%struct.NUS_memory_map) align 8, ptr noundef, i64 noundef) local_unnamed_addr #2

declare i32 @nus_single_command_begin(ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local i32 @nus_cmd_texture_transition(ptr noundef byval(%struct.NUS_texture) align 8, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

declare i32 @nus_single_command_end() local_unnamed_addr #2

declare void @nus_memory_map_free(ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nofree 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 = { "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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 32}
!6 = !{!"NUS_texture", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 40}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"NUS_binding", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24}
!12 = !{!10, !10, i64 0}
!13 = !{!14, !10, i64 0}
!14 = !{!"VkOffset3D", !10, i64 0, !10, i64 4, !10, i64 8}
!15 = !{!14, !10, i64 4}
!16 = !{!14, !10, i64 8}
!17 = !{!18, !10, i64 8}
!18 = !{!"VkExtent3D", !10, i64 0, !10, i64 4, !10, i64 8}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !7, i64 0}
!21 = !{!"NUS_memory_map", !7, i64 0, !7, i64 8, !22, i64 16, !11, i64 24}
!22 = !{!"long", !8, i64 0}
!23 = !{!6, !7, i64 0}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SLPVectorizerPass,SROAPass,TailCallElimPass