; LLVM IR from aap/librw :: src/engine.ll (ZN2rw6Engine5closeEv)

; 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::MemoryFunctions" = type { ptr, ptr, ptr, ptr, ptr }
%"struct.rw::Error" = type { i32, i32 }
%"struct.rw::Engine" = type { ptr, ptr, %"struct.rw::LinkList", %"struct.rw::FileFunctions", [13 x ptr], %"struct.rw::Device", ptr }
%"struct.rw::LinkList" = type { %"struct.rw::LLLink" }
%"struct.rw::LLLink" = type { ptr, ptr }
%"struct.rw::FileFunctions" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"struct.rw::Device" = type { float, float, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

@_ZN2rw6engineE = external dso_local global ptr, align 8
@_ZN2rw6Engine5stateE = external dso_local global i32, align 4
@_ZN2rw6Engine8memfuncsE = external dso_local global %"struct.rw::MemoryFunctions", align 8
@stderr = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 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: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

declare noundef ptr @_ZN2rw9dbgsprintEjz(i32 noundef, ...) #2

declare void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw6Engine5closeEv() #3 align 2 {
  %1 = alloca %"struct.rw::Error", align 4
  %2 = alloca i32, align 4
  %3 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %4 = icmp eq ptr %3, null
  br i1 %4, label %8, label %5

5:                                                ; preds = %0
  %6 = load i32, ptr @_ZN2rw6Engine5stateE, align 4, !tbaa !9
  %7 = icmp ne i32 %6, 2
  br i1 %7, label %8, label %18

8:                                                ; preds = %5, %0
  br label %9

9:                                                ; preds = %8
  call void @llvm.lifetime.start.p0(i64 8, ptr %1) #4
  %10 = getelementptr inbounds %"struct.rw::Error", ptr %1, i32 0, i32 0
  store i32 0, ptr %10, align 4, !tbaa !11
  %11 = getelementptr inbounds %"struct.rw::Error", ptr %1, i32 0, i32 1
  store i32 -2147483647, ptr %11, align 4, !tbaa !14
  %12 = load ptr, ptr @stderr, align 8, !tbaa !5
  %13 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %12, ptr noundef @.str.3, ptr noundef @.str.4, i32 noundef 349) #4
  %14 = load ptr, ptr @stderr, align 8, !tbaa !5
  %15 = call noundef ptr (i32, ...) @_ZN2rw9dbgsprintEjz(i32 noundef -2147483647)
  %16 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef @.str.5, ptr noundef %15) #4
  call void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr %1) #4
  br label %17

17:                                               ; preds = %9
  br label %45

18:                                               ; preds = %5
  %19 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %20 = getelementptr inbounds %"struct.rw::Engine", ptr %19, i32 0, i32 5
  %21 = getelementptr inbounds %"struct.rw::Device", ptr %20, i32 0, i32 17
  %22 = load ptr, ptr %21, align 8, !tbaa !15
  %23 = call noundef i32 %22(i32 noundef 3, ptr noundef null, i32 noundef 0)
  call void @llvm.lifetime.start.p0(i64 4, ptr %2) #4
  store i32 0, ptr %2, align 4, !tbaa !22
  br label %24

24:                                               ; preds = %36, %18
  %25 = load i32, ptr %2, align 4, !tbaa !22
  %26 = icmp ult i32 %25, 13
  br i1 %26, label %28, label %27

27:                                               ; preds = %24
  call void @llvm.lifetime.end.p0(i64 4, ptr %2) #4
  br label %39

28:                                               ; preds = %24
  %29 = load ptr, ptr getelementptr inbounds (%"struct.rw::MemoryFunctions", ptr @_ZN2rw6Engine8memfuncsE, i32 0, i32 2), align 8, !tbaa !23
  %30 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.rw::Engine", ptr %30, i32 0, i32 4
  %32 = load i32, ptr %2, align 4, !tbaa !22
  %33 = zext i32 %32 to i64
  %34 = getelementptr inbounds [13 x ptr], ptr %31, i64 0, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  call void %29(ptr noundef %35)
  br label %36

36:                                               ; preds = %28
  %37 = load i32, ptr %2, align 4, !tbaa !22
  %38 = add i32 %37, 1
  store i32 %38, ptr %2, align 4, !tbaa !22
  br label %24, !llvm.loop !25

39:                                               ; preds = %27
  %40 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %41 = getelementptr inbounds %"struct.rw::Engine", ptr %40, i32 0, i32 6
  %42 = load ptr, ptr %41, align 8, !tbaa !27
  call void @_ZN2rw11ObjPipeline7destroyEv(ptr noundef nonnull align 8 dereferenceable(40) %42)
  %43 = load ptr, ptr getelementptr inbounds (%"struct.rw::MemoryFunctions", ptr @_ZN2rw6Engine8memfuncsE, i32 0, i32 2), align 8, !tbaa !23
  %44 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  call void %43(ptr noundef %44)
  store ptr null, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  store i32 1, ptr @_ZN2rw6Engine5stateE, align 4, !tbaa !9
  br label %45

45:                                               ; preds = %39, %17
  ret void
}

declare void @_ZN2rw11ObjPipeline7destroyEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 = { 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 #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 = !{!"_ZTSN2rw6Engine5StateE", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN2rw5ErrorE", !13, i64 0, !13, i64 4}
!13 = !{!"int", !7, i64 0}
!14 = !{!12, !13, i64 4}
!15 = !{!16, !6, i64 320}
!16 = !{!"_ZTSN2rw6EngineE", !6, i64 0, !6, i64 8, !17, i64 16, !19, i64 32, !7, i64 88, !20, i64 192, !6, i64 328}
!17 = !{!"_ZTSN2rw8LinkListE", !18, i64 0}
!18 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!19 = !{!"_ZTSN2rw13FileFunctionsE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!20 = !{!"_ZTSN2rw6DeviceE", !21, i64 0, !21, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!21 = !{!"float", !7, i64 0}
!22 = !{!13, !13, i64 0}
!23 = !{!24, !6, i64 16}
!24 = !{!"_ZTSN2rw15MemoryFunctionsE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!16, !6, i64 328}


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

@_ZN2rw6engineE = external dso_local local_unnamed_addr global ptr, align 8
@_ZN2rw6Engine5stateE = external dso_local local_unnamed_addr global i32, align 4
@_ZN2rw6Engine8memfuncsE = external dso_local local_unnamed_addr global %"struct.rw::MemoryFunctions", align 8
@stderr = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [58 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [4 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: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

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

declare noundef ptr @_ZN2rw9dbgsprintEjz(i32 noundef, ...) local_unnamed_addr #2

declare void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN2rw6Engine5closeEv() local_unnamed_addr #3 align 2 {
  %1 = alloca %"struct.rw::Error", align 4
  %2 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %3 = icmp eq ptr %2, null
  %4 = load i32, ptr @_ZN2rw6Engine5stateE, align 4
  %5 = icmp ne i32 %4, 2
  %or.cond = select i1 %3, i1 true, i1 %5
  br i1 %or.cond, label %6, label %13

6:                                                ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %1) #4
  store i32 0, ptr %1, align 4, !tbaa !9
  %7 = getelementptr inbounds i8, ptr %1, i64 4
  store i32 -2147483647, ptr %7, align 4, !tbaa !12
  %8 = load ptr, ptr @stderr, align 8, !tbaa !5
  %9 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.3, ptr noundef nonnull @.str.4, i32 noundef 349) #5
  %10 = load ptr, ptr @stderr, align 8, !tbaa !5
  %11 = tail call noundef ptr (i32, ...) @_ZN2rw9dbgsprintEjz(i32 noundef -2147483647)
  %12 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %10, ptr noundef nonnull @.str.5, ptr noundef %11) #5
  call void @_ZN2rw8setErrorEPNS_5ErrorE(ptr noundef nonnull %1)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %1) #4
  br label %74

13:                                               ; preds = %0
  %14 = getelementptr inbounds i8, ptr %2, i64 320
  %15 = load ptr, ptr %14, align 8, !tbaa !13
  %16 = tail call noundef i32 %15(i32 noundef 3, ptr noundef null, i32 noundef 0)
  %17 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %18 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %19 = getelementptr inbounds i8, ptr %18, i64 88
  %20 = load ptr, ptr %19, align 8, !tbaa !5
  tail call void %17(ptr noundef %20)
  %21 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %22 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %22, i64 96
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  tail call void %21(ptr noundef %24)
  %25 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %26 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %27 = getelementptr inbounds i8, ptr %26, i64 104
  %28 = load ptr, ptr %27, align 8, !tbaa !5
  tail call void %25(ptr noundef %28)
  %29 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %30 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %31 = getelementptr inbounds i8, ptr %30, i64 112
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  tail call void %29(ptr noundef %32)
  %33 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %34 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 120
  %36 = load ptr, ptr %35, align 8, !tbaa !5
  tail call void %33(ptr noundef %36)
  %37 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %38 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %39 = getelementptr inbounds i8, ptr %38, i64 128
  %40 = load ptr, ptr %39, align 8, !tbaa !5
  tail call void %37(ptr noundef %40)
  %41 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %42 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %43 = getelementptr inbounds i8, ptr %42, i64 136
  %44 = load ptr, ptr %43, align 8, !tbaa !5
  tail call void %41(ptr noundef %44)
  %45 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %46 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %47 = getelementptr inbounds i8, ptr %46, i64 144
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  tail call void %45(ptr noundef %48)
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %50 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %51 = getelementptr inbounds i8, ptr %50, i64 152
  %52 = load ptr, ptr %51, align 8, !tbaa !5
  tail call void %49(ptr noundef %52)
  %53 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %54 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 160
  %56 = load ptr, ptr %55, align 8, !tbaa !5
  tail call void %53(ptr noundef %56)
  %57 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %58 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 168
  %60 = load ptr, ptr %59, align 8, !tbaa !5
  tail call void %57(ptr noundef %60)
  %61 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %62 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %62, i64 176
  %64 = load ptr, ptr %63, align 8, !tbaa !5
  tail call void %61(ptr noundef %64)
  %65 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %66 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %67 = getelementptr inbounds i8, ptr %66, i64 184
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  tail call void %65(ptr noundef %68)
  %69 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 328
  %71 = load ptr, ptr %70, align 8, !tbaa !22
  tail call void @_ZN2rw11ObjPipeline7destroyEv(ptr noundef nonnull align 8 dereferenceable(40) %71)
  %72 = load ptr, ptr getelementptr inbounds (i8, ptr @_ZN2rw6Engine8memfuncsE, i64 16), align 8, !tbaa !20
  %73 = load ptr, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  tail call void %72(ptr noundef %73)
  store ptr null, ptr @_ZN2rw6engineE, align 8, !tbaa !5
  store i32 1, ptr @_ZN2rw6Engine5stateE, align 4, !tbaa !23
  br label %74

74:                                               ; preds = %13, %6
  ret void
}

declare void @_ZN2rw11ObjPipeline7destroyEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

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 = { 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 #4 = { nounwind }
attributes #5 = { cold 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 0}
!10 = !{!"_ZTSN2rw5ErrorE", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!14, !6, i64 320}
!14 = !{!"_ZTSN2rw6EngineE", !6, i64 0, !6, i64 8, !15, i64 16, !17, i64 32, !7, i64 88, !18, i64 192, !6, i64 328}
!15 = !{!"_ZTSN2rw8LinkListE", !16, i64 0}
!16 = !{!"_ZTSN2rw6LLLinkE", !6, i64 0, !6, i64 8}
!17 = !{!"_ZTSN2rw13FileFunctionsE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!18 = !{!"_ZTSN2rw6DeviceE", !19, i64 0, !19, i64 4, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128}
!19 = !{!"float", !7, i64 0}
!20 = !{!21, !6, i64 16}
!21 = !{!"_ZTSN2rw15MemoryFunctionsE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32}
!22 = !{!14, !6, i64 328}
!23 = !{!24, !24, i64 0}
!24 = !{!"_ZTSN2rw6Engine5StateE", !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,SROAPass,SimplifyCFGPass,TailCallElimPass