; LLVM IR from aap/librw :: src/texture.ll (ZN2rw7Texture4readEPKcS2_)

; 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::TextureGlobals" = type { ptr, ptr, i32, i32, i32, i32, %"struct.rw::LinkList", %"struct.rw::LinkList" }
%"struct.rw::LinkList" = type { %"struct.rw::LLLink" }
%"struct.rw::LLLink" = type { ptr, ptr }
%"struct.rw::Texture" = type { ptr, ptr, %"struct.rw::LLLink", [32 x i8], [32 x i8], i32, i32, %"struct.rw::LLLink" }

@_ZN2rw19textureModuleOffsetE = external dso_local global i32, align 4
@_ZN2rw6engineE = external global ptr, align 8
@_ZN2rw7Texture6findCBE = external dso_local global ptr, align 8
@_ZN2rw7Texture6readCBE = external dso_local global ptr, align 8

; 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 nounwind uwtable
declare dso_local void @_ZN2rw6LLLink6removeEv(ptr noundef nonnull align 8 dereferenceable(16)) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw13TexDictionary3addEPNS_7TextureE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw7Texture6createEPNS_6RasterE(ptr noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw7Texture4readEPKcS2_(ptr noundef %0, ptr noundef %1) #2 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 i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  store ptr null, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %9 = load ptr, ptr @_ZN2rw7Texture6findCBE, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = call noundef ptr %9(ptr noundef %10)
  store ptr %11, ptr %7, align 8, !tbaa !5
  %12 = load ptr, ptr %7, align 8, !tbaa !5
  %13 = icmp ne ptr %12, null
  br i1 %13, label %14, label %17

14:                                               ; preds = %2
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN2rw7Texture6addRefEv(ptr noundef nonnull align 8 dereferenceable(120) %15)
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %16, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %97

17:                                               ; preds = %2
  %18 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %19 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %20 = sext i32 %19 to i64
  %21 = getelementptr inbounds i8, ptr %18, i64 %20
  %22 = getelementptr inbounds %"struct.rw::TextureGlobals", ptr %21, i32 0, i32 2
  %23 = load i32, ptr %22, align 8, !tbaa !11
  %24 = icmp ne i32 %23, 0
  br i1 %24, label %25, label %34

25:                                               ; preds = %17
  %26 = load ptr, ptr @_ZN2rw7Texture6readCBE, align 8, !tbaa !5
  %27 = load ptr, ptr %4, align 8, !tbaa !5
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = call noundef ptr %26(ptr noundef %27, ptr noundef %28)
  store ptr %29, ptr %7, align 8, !tbaa !5
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = icmp eq ptr %30, null
  br i1 %31, label %32, label %33

32:                                               ; preds = %25
  br label %35

33:                                               ; preds = %25
  br label %68

34:                                               ; preds = %17
  br label %35

35:                                               ; preds = %34, %32
  %36 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %37 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %38 = sext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %36, i64 %38
  %40 = getelementptr inbounds %"struct.rw::TextureGlobals", ptr %39, i32 0, i32 3
  %41 = load i32, ptr %40, align 4, !tbaa !15
  %42 = icmp ne i32 %41, 0
  br i1 %42, label %43, label %67

43:                                               ; preds = %35
  %44 = call noundef ptr @_ZN2rw7Texture6createEPNS_6RasterE(ptr noundef null)
  store ptr %44, ptr %7, align 8, !tbaa !5
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = icmp eq ptr %45, null
  br i1 %46, label %47, label %48

47:                                               ; preds = %43
  store ptr null, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %97

48:                                               ; preds = %43
  %49 = load ptr, ptr %7, align 8, !tbaa !5
  %50 = getelementptr inbounds %"struct.rw::Texture", ptr %49, i32 0, i32 3
  %51 = getelementptr inbounds [32 x i8], ptr %50, i64 0, i64 0
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = call ptr @strncpy(ptr noundef %51, ptr noundef %52, i64 noundef 32) #5
  %54 = load ptr, ptr %5, align 8, !tbaa !5
  %55 = icmp ne ptr %54, null
  br i1 %55, label %56, label %62

56:                                               ; preds = %48
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %"struct.rw::Texture", ptr %57, i32 0, i32 4
  %59 = getelementptr inbounds [32 x i8], ptr %58, i64 0, i64 0
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = call ptr @strncpy(ptr noundef %59, ptr noundef %60, i64 noundef 32) #5
  br label %62

62:                                               ; preds = %56, %48
  %63 = call noundef ptr @_ZN2rw6Raster6createEiiiii(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 128, i32 noundef 0)
  store ptr %63, ptr %6, align 8, !tbaa !5
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.rw::Texture", ptr %65, i32 0, i32 0
  store ptr %64, ptr %66, align 8, !tbaa !16
  br label %67

67:                                               ; preds = %62, %35
  br label %68

68:                                               ; preds = %67, %33
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = icmp ne ptr %69, null
  br i1 %70, label %71, label %95

71:                                               ; preds = %68
  %72 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %73 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %72, i64 %74
  %76 = getelementptr inbounds %"struct.rw::TextureGlobals", ptr %75, i32 0, i32 1
  %77 = load ptr, ptr %76, align 8, !tbaa !18
  %78 = icmp ne ptr %77, null
  br i1 %78, label %79, label %95

79:                                               ; preds = %71
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.rw::Texture", ptr %80, i32 0, i32 1
  %82 = load ptr, ptr %81, align 8, !tbaa !19
  %83 = icmp ne ptr %82, null
  br i1 %83, label %84, label %87

84:                                               ; preds = %79
  %85 = load ptr, ptr %7, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.rw::Texture", ptr %85, i32 0, i32 2
  call void @_ZN2rw6LLLink6removeEv(ptr noundef nonnull align 8 dereferenceable(16) %86)
  br label %87

87:                                               ; preds = %84, %79
  %88 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %89 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds i8, ptr %88, i64 %90
  %92 = getelementptr inbounds %"struct.rw::TextureGlobals", ptr %91, i32 0, i32 1
  %93 = load ptr, ptr %92, align 8, !tbaa !18
  %94 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN2rw13TexDictionary3addEPNS_7TextureE(ptr noundef nonnull align 8 dereferenceable(48) %93, ptr noundef %94)
  br label %95

95:                                               ; preds = %87, %71, %68
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %96, ptr %3, align 8
  store i32 1, ptr %8, align 4
  br label %97

97:                                               ; preds = %95, %47, %14
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  %98 = load ptr, ptr %3, align 8
  ret ptr %98
}

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

; Function Attrs: nounwind
declare ptr @strncpy(ptr noundef, ptr noundef, i64 noundef) #3

declare noundef ptr @_ZN2rw6Raster6createEiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #4

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

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTSN2rw14TextureGlobalsE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !13, i64 32, !13, i64 48}
!13 = !{!"_ZTSN2rw8LinkListE", !14, i64 0}
!14 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!15 = !{!12, !10, i64 20}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSN2rw7TextureE", !6, i64 0, !6, i64 8, !14, i64 16, !7, i64 32, !7, i64 64, !10, i64 96, !10, i64 100, !14, i64 104}
!18 = !{!12, !6, i64 8}
!19 = !{!17, !6, i64 8}


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

@_ZN2rw19textureModuleOffsetE = external dso_local local_unnamed_addr global i32, align 4
@_ZN2rw6engineE = external local_unnamed_addr global ptr, align 8
@_ZN2rw7Texture6findCBE = external dso_local local_unnamed_addr global ptr, align 8
@_ZN2rw7Texture6readCBE = external dso_local local_unnamed_addr global ptr, align 8

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN2rw13TexDictionary3addEPNS_7TextureE(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN2rw7Texture6createEPNS_6RasterE(ptr noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN2rw7Texture4readEPKcS2_(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 align 2 {
  %3 = load ptr, ptr @_ZN2rw7Texture6findCBE, align 8, !tbaa !5
  %4 = tail call noundef ptr %3(ptr noundef %0)
  %.not = icmp eq ptr %4, null
  br i1 %.not, label %6, label %5

5:                                                ; preds = %2
  tail call void @_ZN2rw7Texture6addRefEv(ptr noundef nonnull align 8 dereferenceable(120) %4)
  br label %47

6:                                                ; preds = %2
  %7 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %8 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %9 = sext i32 %8 to i64
  %10 = getelementptr inbounds i8, ptr %7, i64 %9
  %11 = getelementptr inbounds i8, ptr %10, i64 16
  %12 = load i32, ptr %11, align 8, !tbaa !11
  %.not28 = icmp eq i32 %12, 0
  br i1 %.not28, label %17, label %13

13:                                               ; preds = %6
  %14 = load ptr, ptr @_ZN2rw7Texture6readCBE, align 8, !tbaa !5
  %15 = tail call noundef ptr %14(ptr noundef %0, ptr noundef %1)
  %16 = icmp eq ptr %15, null
  br i1 %16, label %._crit_edge, label %33

._crit_edge:                                      ; preds = %13
  %.pre = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %.pre37 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %.pre43 = sext i32 %.pre37 to i64
  br label %17

17:                                               ; preds = %._crit_edge, %6
  %.pre-phi = phi i64 [ %.pre43, %._crit_edge ], [ %9, %6 ]
  %18 = phi ptr [ %.pre, %._crit_edge ], [ %7, %6 ]
  %19 = getelementptr inbounds i8, ptr %18, i64 %.pre-phi
  %20 = getelementptr inbounds i8, ptr %19, i64 20
  %21 = load i32, ptr %20, align 4, !tbaa !15
  %.not29 = icmp eq i32 %21, 0
  br i1 %.not29, label %47, label %22

22:                                               ; preds = %17
  %23 = tail call noundef ptr @_ZN2rw7Texture6createEPNS_6RasterE(ptr noundef null)
  %24 = icmp eq ptr %23, null
  br i1 %24, label %47, label %25

25:                                               ; preds = %22
  %26 = getelementptr inbounds i8, ptr %23, i64 32
  %27 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %26, ptr noundef nonnull dereferenceable(1) %0, i64 noundef 32) #4
  %.not30 = icmp eq ptr %1, null
  br i1 %.not30, label %31, label %28

28:                                               ; preds = %25
  %29 = getelementptr inbounds i8, ptr %23, i64 64
  %30 = tail call ptr @strncpy(ptr noundef nonnull dereferenceable(1) %29, ptr noundef nonnull dereferenceable(1) %1, i64 noundef 32) #4
  br label %31

31:                                               ; preds = %28, %25
  %32 = tail call noundef ptr @_ZN2rw6Raster6createEiiiii(i32 noundef 0, i32 noundef 0, i32 noundef 0, i32 noundef 128, i32 noundef 0)
  store ptr %32, ptr %23, align 8, !tbaa !16
  br label %33

33:                                               ; preds = %31, %13
  %.1.ph = phi ptr [ %15, %13 ], [ %23, %31 ]
  %34 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %35 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %36 = sext i32 %35 to i64
  %37 = getelementptr inbounds i8, ptr %34, i64 %36
  %38 = getelementptr inbounds i8, ptr %37, i64 8
  %39 = load ptr, ptr %38, align 8, !tbaa !18
  %.not32 = icmp eq ptr %39, null
  br i1 %.not32, label %47, label %40

40:                                               ; preds = %33
  %41 = getelementptr inbounds i8, ptr %.1.ph, i64 8
  %42 = load ptr, ptr %41, align 8, !tbaa !19
  %.not33 = icmp eq ptr %42, null
  br i1 %.not33, label %45, label %43

43:                                               ; preds = %40
  %44 = getelementptr inbounds i8, ptr %.1.ph, i64 16
  tail call void @_ZN2rw6LLLink6removeEv(ptr noundef nonnull align 8 dereferenceable(16) %44)
  %.pre38 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %.pre39 = load i32, ptr @_ZN2rw19textureModuleOffsetE, align 4, !tbaa !9
  %.phi.trans.insert = sext i32 %.pre39 to i64
  %.phi.trans.insert40 = getelementptr inbounds i8, ptr %.pre38, i64 %.phi.trans.insert
  %.phi.trans.insert41 = getelementptr inbounds i8, ptr %.phi.trans.insert40, i64 8
  %.pre42 = load ptr, ptr %.phi.trans.insert41, align 8, !tbaa !18
  br label %45

45:                                               ; preds = %43, %40
  %46 = phi ptr [ %.pre42, %43 ], [ %39, %40 ]
  tail call void @_ZN2rw13TexDictionary3addEPNS_7TextureE(ptr noundef nonnull align 8 dereferenceable(48) %46, ptr noundef nonnull %.1.ph)
  br label %47

47:                                               ; preds = %17, %33, %45, %22, %5
  %.021 = phi ptr [ %4, %5 ], [ null, %22 ], [ %.1.ph, %45 ], [ %.1.ph, %33 ], [ null, %17 ]
  ret ptr %.021
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strncpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly, i64 noundef) local_unnamed_addr #2

declare noundef ptr @_ZN2rw6Raster6createEiiiii(i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #3

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

!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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 16}
!12 = !{!"_ZTSN2rw14TextureGlobalsE", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !13, i64 32, !13, i64 48}
!13 = !{!"_ZTSN2rw8LinkListE", !14, i64 0}
!14 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!15 = !{!12, !10, i64 20}
!16 = !{!17, !6, i64 0}
!17 = !{!"_ZTSN2rw7TextureE", !6, i64 0, !6, i64 8, !14, i64 16, !7, i64 32, !7, i64 64, !10, i64 96, !10, i64 100, !14, i64 104}
!18 = !{!12, !6, i64 8}
!19 = !{!17, !6, i64 8}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass