; LLVM IR from kimwalisch/primesieve :: src/iterator.ll (ZN10primesieve8iterator20generate_prev_primesEv)

; 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.primesieve::iterator" = type { i64, i64, i64, i64, ptr, ptr }
%"struct.primesieve::IteratorData" = type { i64, i64, i8, ptr, %"class.primesieve::Vector", [1720 x i8] }
%"class.primesieve::Vector" = type { ptr, ptr, ptr }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10primesieve12IteratorDataC2Em(ptr noundef nonnull align 8 dereferenceable(1776), i64 noundef) unnamed_addr #1 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10primesieve12IteratorData17newPrimeGeneratorEmm(ptr noundef nonnull align 8 dereferenceable(1776), i64 noundef, i64 noundef) #4 align 2

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

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(none)
declare i64 @llvm.expect.i64(i64, i64) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10primesieve8iterator20generate_prev_primesEv(ptr noundef nonnull align 8 dereferenceable(48) %0) #4 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %7 = load ptr, ptr %2, align 8
  %8 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 5
  %9 = load ptr, ptr %8, align 8, !tbaa !9
  %10 = icmp ne ptr %9, null
  br i1 %10, label %21, label %11

11:                                               ; preds = %1
  %12 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 1776) #8
  %13 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 2
  %14 = load i64, ptr %13, align 8, !tbaa !12
  invoke void @_ZN10primesieve12IteratorDataC2Em(ptr noundef nonnull align 8 dereferenceable(1776) %12, i64 noundef %14)
          to label %15 unwind label %17

15:                                               ; preds = %11
  %16 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 5
  store ptr %12, ptr %16, align 8, !tbaa !9
  br label %21

17:                                               ; preds = %11
  %18 = landingpad { ptr, i32 }
          cleanup
  %19 = extractvalue { ptr, i32 } %18, 0
  store ptr %19, ptr %3, align 8
  %20 = extractvalue { ptr, i32 } %18, 1
  store i32 %20, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %12, i64 noundef 1776) #9
  br label %71

21:                                               ; preds = %15, %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #10
  %22 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 5
  %23 = load ptr, ptr %22, align 8, !tbaa !9
  store ptr %23, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #10
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.primesieve::IteratorData", ptr %24, i32 0, i32 4
  store ptr %25, ptr %6, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.primesieve::IteratorData", ptr %26, i32 0, i32 3
  %28 = load ptr, ptr %27, align 8, !tbaa !13
  %29 = icmp ne ptr %28, null
  %30 = xor i1 %29, true
  %31 = xor i1 %30, true
  %32 = zext i1 %31 to i64
  %33 = call i64 @llvm.expect.i64(i64 %32, i64 0)
  %34 = icmp ne i64 %33, 0
  br i1 %34, label %35, label %41

35:                                               ; preds = %21
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorImSaImEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #10
  %38 = load i64, ptr %37, align 8, !tbaa !17
  %39 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 2
  store i64 %38, ptr %39, align 8, !tbaa !12
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10primesieve12IteratorData20deletePrimeGeneratorEv(ptr noundef nonnull align 8 dereferenceable(1776) %40)
  br label %41

41:                                               ; preds = %35, %21
  br label %42

42:                                               ; preds = %65, %41
  %43 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 2
  %44 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 3
  %45 = load i64, ptr %44, align 8, !tbaa !18
  %46 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10primesieve14IteratorHelper10updatePrevERmmRNS_12IteratorDataE(ptr noundef nonnull align 8 dereferenceable(8) %43, i64 noundef %45, ptr noundef nonnull align 8 dereferenceable(1776) %46)
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 2
  %49 = load i64, ptr %48, align 8, !tbaa !12
  %50 = load ptr, ptr %5, align 8, !tbaa !5
  %51 = getelementptr inbounds %"struct.primesieve::IteratorData", ptr %50, i32 0, i32 0
  %52 = load i64, ptr %51, align 8, !tbaa !19
  call void @_ZN10primesieve12IteratorData17newPrimeGeneratorEmm(ptr noundef nonnull align 8 dereferenceable(1776) %47, i64 noundef %49, i64 noundef %52)
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %"struct.primesieve::IteratorData", ptr %53, i32 0, i32 3
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = load ptr, ptr %6, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 1
  call void @_ZN10primesieve14PrimeGenerator14fillPrevPrimesERNS_6VectorImSaImEEEPm(ptr noundef nonnull align 8 dereferenceable(1720) %55, ptr noundef nonnull align 8 dereferenceable(24) %56, ptr noundef %57)
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @_ZN10primesieve12IteratorData20deletePrimeGeneratorEv(ptr noundef nonnull align 8 dereferenceable(1776) %58)
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call noundef ptr @_ZN10primesieve6VectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #10
  %61 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 4
  store ptr %60, ptr %61, align 8, !tbaa !20
  %62 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 1
  %63 = load i64, ptr %62, align 8, !tbaa !21
  %64 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 0
  store i64 %63, ptr %64, align 8, !tbaa !22
  br label %65

65:                                               ; preds = %42
  %66 = getelementptr inbounds %"struct.primesieve::iterator", ptr %7, i32 0, i32 1
  %67 = load i64, ptr %66, align 8, !tbaa !21
  %68 = icmp ne i64 %67, 0
  %69 = xor i1 %68, true
  br i1 %69, label %42, label %70, !llvm.loop !23

70:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #10
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #10
  ret void

71:                                               ; preds = %17
  %72 = load ptr, ptr %3, align 8
  %73 = load i32, ptr %4, align 4
  %74 = insertvalue { ptr, i32 } poison, ptr %72, 0
  %75 = insertvalue { ptr, i32 } %74, i32 %73, 1
  resume { ptr, i32 } %75
}

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

declare void @_ZN10primesieve14IteratorHelper10updatePrevERmmRNS_12IteratorDataE(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr noundef nonnull align 8 dereferenceable(1776)) #6

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN10primesieve14PrimeGenerator14fillPrevPrimesERNS_6VectorImSaImEEEPm(ptr noundef nonnull align 8 dereferenceable(1720), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #7 align 2

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 = { nobuiltin 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 #3 = { nobuiltin 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 = { 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 #5 = { nocallback nofree nosync nounwind willreturn memory(none) }
attributes #6 = { "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 #7 = { alwaysinline 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 #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { 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, !6, i64 40}
!10 = !{!"_ZTSN10primesieve8iteratorE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !6, i64 32, !6, i64 40}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 16}
!13 = !{!14, !6, i64 24}
!14 = !{!"_ZTSN10primesieve12IteratorDataE", !11, i64 0, !11, i64 8, !15, i64 16, !6, i64 24, !16, i64 32, !7, i64 56}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSN10primesieve6VectorImSaImEEE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!11, !11, i64 0}
!18 = !{!10, !11, i64 24}
!19 = !{!14, !11, i64 0}
!20 = !{!10, !6, i64 32}
!21 = !{!10, !11, i64 8}
!22 = !{!10, !11, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"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"

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN10primesieve12IteratorDataC2Em(ptr noundef nonnull align 8 dereferenceable(1776), i64 noundef) unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN10primesieve12IteratorData17newPrimeGeneratorEmm(ptr noundef nonnull align 8 dereferenceable(1776), i64 noundef, i64 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10primesieve8iterator20generate_prev_primesEv(ptr noundef nonnull align 8 dereferenceable(48) %0) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 40
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %.not = icmp eq ptr %3, null
  br i1 %.not, label %4, label %8

4:                                                ; preds = %1
  %5 = tail call noalias noundef nonnull dereferenceable(1776) ptr @_Znwm(i64 noundef 1776) #5
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = load i64, ptr %6, align 8, !tbaa !11
  tail call void @_ZN10primesieve12IteratorDataC2Em(ptr noundef nonnull align 8 dereferenceable(1776) %5, i64 noundef %7)
  store ptr %5, ptr %2, align 8, !tbaa !5
  br label %8

8:                                                ; preds = %4, %1
  %9 = phi ptr [ %5, %4 ], [ %3, %1 ]
  %10 = getelementptr inbounds i8, ptr %9, i64 32
  %11 = getelementptr inbounds i8, ptr %9, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !12
  %.not12 = icmp eq ptr %12, null
  br i1 %.not12, label %17, label %13, !prof !16

13:                                               ; preds = %8
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10primesieve6VectorImSaImEE5frontEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  %15 = load i64, ptr %14, align 8, !tbaa !17
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  store i64 %15, ptr %16, align 8, !tbaa !11
  tail call void @_ZN10primesieve12IteratorData20deletePrimeGeneratorEv(ptr noundef nonnull align 8 dereferenceable(1776) %9)
  br label %17

17:                                               ; preds = %13, %8
  %18 = getelementptr inbounds i8, ptr %0, i64 16
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  %20 = getelementptr inbounds i8, ptr %0, i64 8
  %21 = getelementptr inbounds i8, ptr %0, i64 32
  br label %22

22:                                               ; preds = %22, %17
  %23 = load i64, ptr %19, align 8, !tbaa !18
  tail call void @_ZN10primesieve14IteratorHelper10updatePrevERmmRNS_12IteratorDataE(ptr noundef nonnull align 8 dereferenceable(8) %18, i64 noundef %23, ptr noundef nonnull align 8 dereferenceable(1776) %9)
  %24 = load i64, ptr %18, align 8, !tbaa !11
  %25 = load i64, ptr %9, align 8, !tbaa !19
  tail call void @_ZN10primesieve12IteratorData17newPrimeGeneratorEmm(ptr noundef nonnull align 8 dereferenceable(1776) %9, i64 noundef %24, i64 noundef %25)
  %26 = load ptr, ptr %11, align 8, !tbaa !12
  tail call void @_ZN10primesieve14PrimeGenerator14fillPrevPrimesERNS_6VectorImSaImEEEPm(ptr noundef nonnull align 8 dereferenceable(1720) %26, ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull %20)
  tail call void @_ZN10primesieve12IteratorData20deletePrimeGeneratorEv(ptr noundef nonnull align 8 dereferenceable(1776) %9)
  %27 = tail call noundef ptr @_ZN10primesieve6VectorImSaImEE4dataEv(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  store ptr %27, ptr %21, align 8, !tbaa !20
  %28 = load i64, ptr %20, align 8, !tbaa !21
  store i64 %28, ptr %0, align 8, !tbaa !22
  %.not13 = icmp eq i64 %28, 0
  br i1 %.not13, label %22, label %29, !llvm.loop !23

29:                                               ; preds = %22
  ret void
}

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

declare void @_ZN10primesieve14IteratorHelper10updatePrevERmmRNS_12IteratorDataE(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, ptr noundef nonnull align 8 dereferenceable(1776)) local_unnamed_addr #3

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN10primesieve14PrimeGenerator14fillPrevPrimesERNS_6VectorImSaImEEEPm(ptr noundef nonnull align 8 dereferenceable(1720), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #4 align 2

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 = { nobuiltin 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 = { 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 = { "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 = { alwaysinline 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 #5 = { builtin allocsize(0) }
attributes #6 = { 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 40}
!6 = !{!"_ZTSN10primesieve8iteratorE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !10, i64 40}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !10, i64 24}
!13 = !{!"_ZTSN10primesieve12IteratorDataE", !7, i64 0, !7, i64 8, !14, i64 16, !10, i64 24, !15, i64 32, !8, i64 56}
!14 = !{!"bool", !8, i64 0}
!15 = !{!"_ZTSN10primesieve6VectorImSaImEEE", !10, i64 0, !10, i64 8, !10, i64 16}
!16 = !{!"branch_weights", !"expected", i32 2000, i32 1}
!17 = !{!7, !7, i64 0}
!18 = !{!6, !7, i64 24}
!19 = !{!13, !7, i64 0}
!20 = !{!6, !10, i64 32}
!21 = !{!6, !7, i64 8}
!22 = !{!6, !7, i64 0}
!23 = distinct !{!23, !24}
!24 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LowerExpectIntrinsicPass,SROAPass,SimplifyCFGPass,TailCallElimPass