; LLVM IR from lichen-community-systems/signaletic :: hosts/daisy/vendor/libDaisy/Drivers/STM32H7xx_HAL_Driver/Src (Transmit)

; 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.QSPI_HandleTypeDef = type { ptr, %struct.QSPI_InitTypeDef, ptr, i32, i32, ptr, i32, i32, ptr, i32, i32, i32, i32 }
%struct.QSPI_InitTypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.QUADSPI_TypeDef = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

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

declare i32 @HAL_GetTick() #1

; Function Attrs: nounwind uwtable
declare hidden i32 @QSPI_WaitFlagStateUntilTimeout(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_QSPI_Transmit(ptr noundef %0, ptr noundef %1, i32 noundef %2) #2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  store i32 0, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  %12 = call i32 @HAL_GetTick()
  store i32 %12, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %13 = load ptr, ptr %5, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %13, i32 0, i32 0
  %15 = load ptr, ptr %14, align 8, !tbaa !11
  %16 = getelementptr inbounds %struct.QUADSPI_TypeDef, ptr %15, i32 0, i32 8
  store ptr %16, ptr %10, align 8, !tbaa !5
  br label %17

17:                                               ; preds = %3
  %18 = load ptr, ptr %5, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %18, i32 0, i32 9
  %20 = load volatile i32, ptr %19, align 8, !tbaa !14
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %23

22:                                               ; preds = %17
  store i32 2, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %133

23:                                               ; preds = %17
  %24 = load ptr, ptr %5, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %24, i32 0, i32 9
  store volatile i32 1, ptr %25, align 8, !tbaa !14
  br label %26

26:                                               ; preds = %23
  br label %27

27:                                               ; preds = %26
  br label %28

28:                                               ; preds = %27
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %29, i32 0, i32 10
  %31 = load volatile i32, ptr %30, align 4, !tbaa !15
  %32 = icmp eq i32 %31, 1
  br i1 %32, label %33, label %125

33:                                               ; preds = %28
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %34, i32 0, i32 11
  store volatile i32 0, ptr %35, align 8, !tbaa !16
  %36 = load ptr, ptr %6, align 8, !tbaa !5
  %37 = icmp ne ptr %36, null
  br i1 %37, label %38, label %119

38:                                               ; preds = %33
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %39, i32 0, i32 10
  store volatile i32 18, ptr %40, align 4, !tbaa !15
  %41 = load ptr, ptr %5, align 8, !tbaa !5
  %42 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %41, i32 0, i32 0
  %43 = load ptr, ptr %42, align 8, !tbaa !11
  %44 = getelementptr inbounds %struct.QUADSPI_TypeDef, ptr %43, i32 0, i32 4
  %45 = load volatile i32, ptr %44, align 4, !tbaa !17
  %46 = add i32 %45, 1
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %47, i32 0, i32 4
  store volatile i32 %46, ptr %48, align 4, !tbaa !19
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %49, i32 0, i32 0
  %51 = load ptr, ptr %50, align 8, !tbaa !11
  %52 = getelementptr inbounds %struct.QUADSPI_TypeDef, ptr %51, i32 0, i32 4
  %53 = load volatile i32, ptr %52, align 4, !tbaa !17
  %54 = add i32 %53, 1
  %55 = load ptr, ptr %5, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %55, i32 0, i32 3
  store volatile i32 %54, ptr %56, align 8, !tbaa !20
  %57 = load ptr, ptr %6, align 8, !tbaa !5
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %58, i32 0, i32 2
  store ptr %57, ptr %59, align 8, !tbaa !21
  %60 = load ptr, ptr %5, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %60, i32 0, i32 0
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = getelementptr inbounds %struct.QUADSPI_TypeDef, ptr %62, i32 0, i32 5
  %64 = load volatile i32, ptr %63, align 4, !tbaa !22
  %65 = zext i32 %64 to i64
  %66 = and i64 %65, -201326593
  %67 = or i64 %66, 0
  %68 = trunc i64 %67 to i32
  %69 = load ptr, ptr %5, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %69, i32 0, i32 0
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = getelementptr inbounds %struct.QUADSPI_TypeDef, ptr %71, i32 0, i32 5
  store volatile i32 %68, ptr %72, align 4, !tbaa !22
  br label %73

73:                                               ; preds = %86, %38
  %74 = load ptr, ptr %5, align 8, !tbaa !5
  %75 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %74, i32 0, i32 4
  %76 = load volatile i32, ptr %75, align 4, !tbaa !19
  %77 = icmp ugt i32 %76, 0
  br i1 %77, label %78, label %100

78:                                               ; preds = %73
  %79 = load ptr, ptr %5, align 8, !tbaa !5
  %80 = load i32, ptr %9, align 4, !tbaa !9
  %81 = load i32, ptr %7, align 4, !tbaa !9
  %82 = call i32 @QSPI_WaitFlagStateUntilTimeout(ptr noundef %79, i32 noundef 4, i32 noundef 1, i32 noundef %80, i32 noundef %81)
  store i32 %82, ptr %8, align 4, !tbaa !9
  %83 = load i32, ptr %8, align 4, !tbaa !9
  %84 = icmp ne i32 %83, 0
  br i1 %84, label %85, label %86

85:                                               ; preds = %78
  br label %100

86:                                               ; preds = %78
  %87 = load ptr, ptr %5, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %87, i32 0, i32 2
  %89 = load ptr, ptr %88, align 8, !tbaa !21
  %90 = load i8, ptr %89, align 1, !tbaa !23
  %91 = load ptr, ptr %10, align 8, !tbaa !5
  store volatile i8 %90, ptr %91, align 1, !tbaa !23
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %92, i32 0, i32 2
  %94 = load ptr, ptr %93, align 8, !tbaa !21
  %95 = getelementptr inbounds i8, ptr %94, i32 1
  store ptr %95, ptr %93, align 8, !tbaa !21
  %96 = load ptr, ptr %5, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %96, i32 0, i32 4
  %98 = load volatile i32, ptr %97, align 4, !tbaa !19
  %99 = add i32 %98, -1
  store volatile i32 %99, ptr %97, align 4, !tbaa !19
  br label %73, !llvm.loop !24

100:                                              ; preds = %85, %73
  %101 = load i32, ptr %8, align 4, !tbaa !9
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %116

103:                                              ; preds = %100
  %104 = load ptr, ptr %5, align 8, !tbaa !5
  %105 = load i32, ptr %9, align 4, !tbaa !9
  %106 = load i32, ptr %7, align 4, !tbaa !9
  %107 = call i32 @QSPI_WaitFlagStateUntilTimeout(ptr noundef %104, i32 noundef 2, i32 noundef 1, i32 noundef %105, i32 noundef %106)
  store i32 %107, ptr %8, align 4, !tbaa !9
  %108 = load i32, ptr %8, align 4, !tbaa !9
  %109 = icmp eq i32 %108, 0
  br i1 %109, label %110, label %115

110:                                              ; preds = %103
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !11
  %114 = getelementptr inbounds %struct.QUADSPI_TypeDef, ptr %113, i32 0, i32 3
  store volatile i32 2, ptr %114, align 4, !tbaa !26
  br label %115

115:                                              ; preds = %110, %103
  br label %116

116:                                              ; preds = %115, %100
  %117 = load ptr, ptr %5, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %117, i32 0, i32 10
  store volatile i32 1, ptr %118, align 4, !tbaa !15
  br label %124

119:                                              ; preds = %33
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %120, i32 0, i32 11
  %122 = load volatile i32, ptr %121, align 8, !tbaa !16
  %123 = or i32 %122, 8
  store volatile i32 %123, ptr %121, align 8, !tbaa !16
  store i32 1, ptr %8, align 4, !tbaa !9
  br label %124

124:                                              ; preds = %119, %116
  br label %126

125:                                              ; preds = %28
  store i32 2, ptr %8, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %125, %124
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %5, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.QSPI_HandleTypeDef, ptr %128, i32 0, i32 9
  store volatile i32 0, ptr %129, align 8, !tbaa !14
  br label %130

130:                                              ; preds = %127
  br label %131

131:                                              ; preds = %130
  %132 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %132, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %133

133:                                              ; preds = %131, %22
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  %134 = load i32, ptr %4, align 4
  ret i32 %134
}

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 = !{!"int", !7, i64 0}
!11 = !{!12, !6, i64 0}
!12 = !{!"", !6, i64 0, !13, i64 8, !6, i64 40, !10, i64 48, !10, i64 52, !6, i64 56, !10, i64 64, !10, i64 68, !6, i64 72, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92}
!13 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!14 = !{!12, !10, i64 80}
!15 = !{!12, !10, i64 84}
!16 = !{!12, !10, i64 88}
!17 = !{!18, !10, i64 16}
!18 = !{!"", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48}
!19 = !{!12, !10, i64 52}
!20 = !{!12, !10, i64 48}
!21 = !{!12, !6, i64 40}
!22 = !{!18, !10, i64 20}
!23 = !{!7, !7, i64 0}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!18, !10, i64 12}


; 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 @HAL_GetTick() local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden i32 @QSPI_WaitFlagStateUntilTimeout(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local i32 @HAL_QSPI_Transmit(ptr noundef %0, ptr noundef %1, i32 noundef %2) local_unnamed_addr #1 {
  %4 = tail call i32 @HAL_GetTick() #2
  %5 = load ptr, ptr %0, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %5, i64 32
  %7 = getelementptr inbounds i8, ptr %0, i64 80
  %8 = load volatile i32, ptr %7, align 8, !tbaa !12
  %9 = icmp eq i32 %8, 1
  br i1 %9, label %47, label %10

10:                                               ; preds = %3
  store volatile i32 1, ptr %7, align 8, !tbaa !12
  %11 = getelementptr inbounds i8, ptr %0, i64 84
  %12 = load volatile i32, ptr %11, align 4, !tbaa !13
  %13 = icmp eq i32 %12, 1
  br i1 %13, label %14, label %46

14:                                               ; preds = %10
  %15 = getelementptr inbounds i8, ptr %0, i64 88
  store volatile i32 0, ptr %15, align 8, !tbaa !14
  %.not = icmp eq ptr %1, null
  br i1 %.not, label %43, label %16

16:                                               ; preds = %14
  store volatile i32 18, ptr %11, align 4, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %5, i64 16
  %18 = load volatile i32, ptr %17, align 4, !tbaa !15
  %19 = add i32 %18, 1
  %20 = getelementptr inbounds i8, ptr %0, i64 52
  store volatile i32 %19, ptr %20, align 4, !tbaa !17
  %21 = load volatile i32, ptr %17, align 4, !tbaa !15
  %22 = add i32 %21, 1
  %23 = getelementptr inbounds i8, ptr %0, i64 48
  store volatile i32 %22, ptr %23, align 8, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %0, i64 40
  store ptr %1, ptr %24, align 8, !tbaa !19
  %25 = getelementptr inbounds i8, ptr %5, i64 20
  %26 = load volatile i32, ptr %25, align 4, !tbaa !20
  %27 = and i32 %26, -201326593
  store volatile i32 %27, ptr %25, align 4, !tbaa !20
  %28 = load volatile i32, ptr %20, align 4, !tbaa !17
  %.not4043 = icmp eq i32 %28, 0
  br i1 %.not4043, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %16, %30
  %29 = tail call i32 @QSPI_WaitFlagStateUntilTimeout(ptr noundef nonnull %0, i32 noundef 4, i32 noundef 1, i32 noundef %4, i32 noundef %2)
  %.not41 = icmp eq i32 %29, 0
  br i1 %.not41, label %30, label %.loopexit

30:                                               ; preds = %.lr.ph
  %31 = load ptr, ptr %24, align 8, !tbaa !19
  %32 = load i8, ptr %31, align 1, !tbaa !21
  store volatile i8 %32, ptr %6, align 1, !tbaa !21
  %33 = load ptr, ptr %24, align 8, !tbaa !19
  %34 = getelementptr inbounds i8, ptr %33, i64 1
  store ptr %34, ptr %24, align 8, !tbaa !19
  %35 = load volatile i32, ptr %20, align 4, !tbaa !17
  %36 = add i32 %35, -1
  store volatile i32 %36, ptr %20, align 4, !tbaa !17
  %37 = load volatile i32, ptr %20, align 4, !tbaa !17
  %.not40 = icmp eq i32 %37, 0
  br i1 %.not40, label %._crit_edge, label %.lr.ph, !llvm.loop !22

._crit_edge:                                      ; preds = %30, %16
  %38 = tail call i32 @QSPI_WaitFlagStateUntilTimeout(ptr noundef nonnull %0, i32 noundef 2, i32 noundef 1, i32 noundef %4, i32 noundef %2)
  %39 = icmp eq i32 %38, 0
  br i1 %39, label %40, label %.loopexit

40:                                               ; preds = %._crit_edge
  %41 = load ptr, ptr %0, align 8, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %41, i64 12
  store volatile i32 2, ptr %42, align 4, !tbaa !24
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph, %._crit_edge, %40
  %.2 = phi i32 [ 0, %40 ], [ %38, %._crit_edge ], [ %29, %.lr.ph ]
  store volatile i32 1, ptr %11, align 4, !tbaa !13
  br label %46

43:                                               ; preds = %14
  %44 = load volatile i32, ptr %15, align 8, !tbaa !14
  %45 = or i32 %44, 8
  store volatile i32 %45, ptr %15, align 8, !tbaa !14
  br label %46

46:                                               ; preds = %10, %43, %.loopexit
  %.3 = phi i32 [ %.2, %.loopexit ], [ 1, %43 ], [ 2, %10 ]
  store volatile i32 0, ptr %7, align 8, !tbaa !12
  br label %47

47:                                               ; preds = %3, %46
  %.0 = phi i32 [ %.3, %46 ], [ 2, %3 ]
  ret i32 %.0
}

attributes #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 = { 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 = { 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, !7, i64 0}
!6 = !{!"", !7, i64 0, !10, i64 8, !7, i64 40, !11, i64 48, !11, i64 52, !7, i64 56, !11, i64 64, !11, i64 68, !7, i64 72, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28}
!11 = !{!"int", !8, i64 0}
!12 = !{!6, !11, i64 80}
!13 = !{!6, !11, i64 84}
!14 = !{!6, !11, i64 88}
!15 = !{!16, !11, i64 16}
!16 = !{!"", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48}
!17 = !{!6, !11, i64 52}
!18 = !{!6, !11, i64 48}
!19 = !{!6, !7, i64 40}
!20 = !{!16, !11, i64 20}
!21 = !{!8, !8, i64 0}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = !{!16, !11, i64 12}


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