; LLVM IR from ashishzero/karma :: src/modules/core/lin_maths.ll (Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_)

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

%union.Vec2 = type { %struct.anon.1 }
%struct.anon.1 = type { float, float }
%struct.Ray2d = type { %union.Vec2, %union.Vec2 }
%struct.Mm_Rect = type { %union.Vec2, %union.Vec2 }

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #0

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4Vec2S_(<2 x float>, <2 x float>) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zpl4Vec2S_(<2 x float>, <2 x float>) #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zml4Vec2f(<2 x float>, float noundef) #2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_(<2 x float> %0, <2 x float> %1, ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef %3, ptr noundef %4) #4 {
  %6 = alloca i1, align 1
  %7 = alloca %union.Vec2, align 4
  %8 = alloca %union.Vec2, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca %struct.Ray2d, align 4
  %13 = alloca %union.Vec2, align 4
  %14 = alloca %union.Vec2, align 4
  %15 = alloca float, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca float, align 4
  %19 = alloca float, align 4
  %20 = alloca float, align 4
  %21 = alloca float, align 4
  %22 = alloca %union.Vec2, align 4
  %23 = alloca %union.Vec2, align 4
  %24 = alloca %union.Vec2, align 4
  %25 = alloca %union.Vec2, align 4
  %26 = getelementptr inbounds %union.Vec2, ptr %7, i32 0, i32 0
  store <2 x float> %0, ptr %26, align 4
  %27 = getelementptr inbounds %union.Vec2, ptr %8, i32 0, i32 0
  store <2 x float> %1, ptr %27, align 4
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #5
  %28 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %28, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !9
  %29 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %13, ptr align 4 %8, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %14, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !9
  %30 = getelementptr inbounds %union.Vec2, ptr %13, i32 0, i32 0
  %31 = load <2 x float>, ptr %30, align 4
  %32 = getelementptr inbounds %union.Vec2, ptr %14, i32 0, i32 0
  %33 = load <2 x float>, ptr %32, align 4
  %34 = call <2 x float> @_Zmi4Vec2S_(<2 x float> %31, <2 x float> %33)
  %35 = getelementptr inbounds %union.Vec2, ptr %29, i32 0, i32 0
  store <2 x float> %34, ptr %35, align 4
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  store float 0.000000e+00, ptr %36, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store float 1.000000e+00, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  store i32 0, ptr %16, align 4, !tbaa !13
  br label %37

37:                                               ; preds = %144, %5
  %38 = load i32, ptr %16, align 4, !tbaa !13
  %39 = icmp slt i32 %38, 2
  br i1 %39, label %41, label %40

40:                                               ; preds = %37
  store i32 2, ptr %17, align 4
  br label %147

41:                                               ; preds = %37
  %42 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 1
  %43 = load i32, ptr %16, align 4, !tbaa !13
  %44 = sext i32 %43 to i64
  %45 = getelementptr inbounds [2 x float], ptr %42, i64 0, i64 %44
  %46 = load float, ptr %45, align 4, !tbaa !10
  %47 = call float @llvm.fabs.f32(float %46)
  %48 = fcmp olt float %47, 0x3E80000000000000
  br i1 %48, label %49, label %77

49:                                               ; preds = %41
  %50 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 0
  %51 = load i32, ptr %16, align 4, !tbaa !13
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds [2 x float], ptr %50, i64 0, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !10
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = getelementptr inbounds %struct.Mm_Rect, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %16, align 4, !tbaa !13
  %58 = sext i32 %57 to i64
  %59 = getelementptr inbounds [2 x float], ptr %56, i64 0, i64 %58
  %60 = load float, ptr %59, align 4, !tbaa !10
  %61 = fcmp olt float %54, %60
  br i1 %61, label %75, label %62

62:                                               ; preds = %49
  %63 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 0
  %64 = load i32, ptr %16, align 4, !tbaa !13
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [2 x float], ptr %63, i64 0, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !10
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = getelementptr inbounds %struct.Mm_Rect, ptr %68, i32 0, i32 1
  %70 = load i32, ptr %16, align 4, !tbaa !13
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [2 x float], ptr %69, i64 0, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !10
  %74 = fcmp ogt float %67, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %62, %49
  store i1 false, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %147

76:                                               ; preds = %62
  br label %143

77:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %78 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 1
  %79 = load i32, ptr %16, align 4, !tbaa !13
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds [2 x float], ptr %78, i64 0, i64 %80
  %82 = load float, ptr %81, align 4, !tbaa !10
  %83 = fdiv float 1.000000e+00, %82
  store float %83, ptr %18, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %84 = load ptr, ptr %9, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.Mm_Rect, ptr %84, i32 0, i32 0
  %86 = load i32, ptr %16, align 4, !tbaa !13
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2 x float], ptr %85, i64 0, i64 %87
  %89 = load float, ptr %88, align 4, !tbaa !10
  %90 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 0
  %91 = load i32, ptr %16, align 4, !tbaa !13
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [2 x float], ptr %90, i64 0, i64 %92
  %94 = load float, ptr %93, align 4, !tbaa !10
  %95 = fsub float %89, %94
  %96 = load float, ptr %18, align 4, !tbaa !11
  %97 = fmul float %95, %96
  store float %97, ptr %19, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.Mm_Rect, ptr %98, i32 0, i32 1
  %100 = load i32, ptr %16, align 4, !tbaa !13
  %101 = sext i32 %100 to i64
  %102 = getelementptr inbounds [2 x float], ptr %99, i64 0, i64 %101
  %103 = load float, ptr %102, align 4, !tbaa !10
  %104 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 0
  %105 = load i32, ptr %16, align 4, !tbaa !13
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds [2 x float], ptr %104, i64 0, i64 %106
  %108 = load float, ptr %107, align 4, !tbaa !10
  %109 = fsub float %103, %108
  %110 = load float, ptr %18, align 4, !tbaa !11
  %111 = fmul float %109, %110
  store float %111, ptr %20, align 4, !tbaa !11
  %112 = load float, ptr %19, align 4, !tbaa !11
  %113 = load float, ptr %20, align 4, !tbaa !11
  %114 = fcmp ogt float %112, %113
  br i1 %114, label %115, label %119

115:                                              ; preds = %77
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %116 = load float, ptr %19, align 4, !tbaa !11
  store float %116, ptr %21, align 4, !tbaa !11
  %117 = load float, ptr %20, align 4, !tbaa !11
  store float %117, ptr %19, align 4, !tbaa !11
  %118 = load float, ptr %21, align 4, !tbaa !11
  store float %118, ptr %20, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %119

119:                                              ; preds = %115, %77
  %120 = load float, ptr %19, align 4, !tbaa !11
  %121 = load ptr, ptr %10, align 8, !tbaa !5
  %122 = load float, ptr %121, align 4, !tbaa !11
  %123 = fcmp ogt float %120, %122
  br i1 %123, label %124, label %127

124:                                              ; preds = %119
  %125 = load float, ptr %19, align 4, !tbaa !11
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  store float %125, ptr %126, align 4, !tbaa !11
  br label %127

127:                                              ; preds = %124, %119
  %128 = load float, ptr %20, align 4, !tbaa !11
  %129 = load float, ptr %15, align 4, !tbaa !11
  %130 = fcmp ogt float %128, %129
  br i1 %130, label %131, label %133

131:                                              ; preds = %127
  %132 = load float, ptr %20, align 4, !tbaa !11
  store float %132, ptr %15, align 4, !tbaa !11
  br label %133

133:                                              ; preds = %131, %127
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = load float, ptr %134, align 4, !tbaa !11
  %136 = load float, ptr %15, align 4, !tbaa !11
  %137 = fcmp ogt float %135, %136
  br i1 %137, label %138, label %139

138:                                              ; preds = %133
  store i1 false, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %140

139:                                              ; preds = %133
  store i32 0, ptr %17, align 4
  br label %140

140:                                              ; preds = %139, %138
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  %141 = load i32, ptr %17, align 4
  switch i32 %141, label %147 [
    i32 0, label %142
  ]

142:                                              ; preds = %140
  br label %143

143:                                              ; preds = %142, %76
  br label %144

144:                                              ; preds = %143
  %145 = load i32, ptr %16, align 4, !tbaa !13
  %146 = add nsw i32 %145, 1
  store i32 %146, ptr %16, align 4, !tbaa !13
  br label %37, !llvm.loop !15

147:                                              ; preds = %140, %75, %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  %148 = load i32, ptr %17, align 4
  switch i32 %148, label %165 [
    i32 2, label %149
  ]

149:                                              ; preds = %147
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %150 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %150, i64 8, i1 false), !tbaa.struct !9
  %151 = getelementptr inbounds %struct.Ray2d, ptr %12, i32 0, i32 1
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %25, ptr align 4 %151, i64 8, i1 false), !tbaa.struct !9
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = load float, ptr %152, align 4, !tbaa !11
  %154 = getelementptr inbounds %union.Vec2, ptr %25, i32 0, i32 0
  %155 = load <2 x float>, ptr %154, align 4
  %156 = call <2 x float> @_Zml4Vec2f(<2 x float> %155, float noundef %153)
  %157 = getelementptr inbounds %union.Vec2, ptr %24, i32 0, i32 0
  store <2 x float> %156, ptr %157, align 4
  %158 = getelementptr inbounds %union.Vec2, ptr %23, i32 0, i32 0
  %159 = load <2 x float>, ptr %158, align 4
  %160 = getelementptr inbounds %union.Vec2, ptr %24, i32 0, i32 0
  %161 = load <2 x float>, ptr %160, align 4
  %162 = call <2 x float> @_Zpl4Vec2S_(<2 x float> %159, <2 x float> %161)
  %163 = getelementptr inbounds %union.Vec2, ptr %22, i32 0, i32 0
  store <2 x float> %162, ptr %163, align 4
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %164, ptr align 4 %22, i64 8, i1 false), !tbaa.struct !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  store i1 true, ptr %6, align 1
  store i32 1, ptr %17, align 4
  br label %165

165:                                              ; preds = %149, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #5
  %166 = load i1, ptr %6, align 1
  ret i1 %166
}

attributes #0 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="64" "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 = !{i64 0, i64 8, !10}
!10 = !{!7, !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"int", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"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"

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zmi4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fabs.f32(float) #1

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zpl4Vec2S_(<2 x float>, <2 x float>) local_unnamed_addr #0

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_Zml4Vec2f(<2 x float>, float noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_Z25intersect_mm_rect_segment4Vec2S_RK7Mm_RectPfPS_(<2 x float> %0, <2 x float> %1, ptr nocapture noundef nonnull readonly align 4 dereferenceable(16) %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4) local_unnamed_addr #2 {
  %6 = tail call <2 x float> @_Zmi4Vec2S_(<2 x float> %1, <2 x float> %0)
  store float 0.000000e+00, ptr %3, align 4, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %2, i64 8
  %.sroa.7.8.vec.extract = extractelement <2 x float> %6, i64 0
  %8 = tail call float @llvm.fabs.f32(float %.sroa.7.8.vec.extract)
  %9 = fcmp olt float %8, 0x3E80000000000000
  %10 = load float, ptr %2, align 4, !tbaa !9
  br i1 %9, label %11, label %15

11:                                               ; preds = %5
  %.sroa.0.0.vec.extract64 = extractelement <2 x float> %0, i64 0
  %12 = fcmp olt float %.sroa.0.0.vec.extract64, %10
  %13 = load float, ptr %7, align 4
  %14 = fcmp ogt float %.sroa.0.0.vec.extract64, %13
  %or.cond = select i1 %12, i1 true, i1 %14
  br i1 %or.cond, label %.loopexit, label %28

15:                                               ; preds = %5
  %16 = fdiv float 1.000000e+00, %.sroa.7.8.vec.extract
  %.sroa.0.0.vec.extract = extractelement <2 x float> %0, i64 0
  %17 = fsub float %10, %.sroa.0.0.vec.extract
  %18 = fmul float %16, %17
  %19 = load float, ptr %7, align 4, !tbaa !9
  %20 = fsub float %19, %.sroa.0.0.vec.extract
  %21 = fmul float %16, %20
  %22 = fcmp ogt float %18, %21
  %.052 = select i1 %22, float %18, float %21
  %.051 = select i1 %22, float %21, float %18
  %23 = fcmp ogt float %.051, 0.000000e+00
  br i1 %23, label %25, label %.thread

.thread:                                          ; preds = %15
  %24 = fcmp ogt float %.052, 1.000000e+00
  %.14667 = select i1 %24, float %.052, float 1.000000e+00
  br label %28

25:                                               ; preds = %15
  store float %.051, ptr %3, align 4, !tbaa !5
  %26 = fcmp ogt float %.052, 1.000000e+00
  %.146 = select i1 %26, float %.052, float 1.000000e+00
  %27 = fcmp ule float %.051, %.146
  br i1 %27, label %28, label %.loopexit

28:                                               ; preds = %11, %.thread, %25
  %29 = phi float [ %.051, %25 ], [ 0.000000e+00, %.thread ], [ 0.000000e+00, %11 ]
  %.247 = phi float [ %.146, %25 ], [ %.14667, %.thread ], [ 1.000000e+00, %11 ]
  %.sroa.7.12.vec.extract = extractelement <2 x float> %6, i64 1
  %30 = tail call float @llvm.fabs.f32(float %.sroa.7.12.vec.extract)
  %31 = fcmp olt float %30, 0x3E80000000000000
  %32 = getelementptr inbounds i8, ptr %2, i64 4
  %33 = load float, ptr %32, align 4, !tbaa !9
  br i1 %31, label %54, label %34

34:                                               ; preds = %28
  %35 = fdiv float 1.000000e+00, %.sroa.7.12.vec.extract
  %36 = getelementptr inbounds i8, ptr %2, i64 12
  %37 = load float, ptr %36, align 4, !tbaa !9
  %38 = insertelement <2 x float> poison, float %33, i64 0
  %39 = insertelement <2 x float> %38, float %37, i64 1
  %40 = shufflevector <2 x float> %0, <2 x float> poison, <2 x i32> <i32 1, i32 1>
  %41 = fsub <2 x float> %39, %40
  %42 = insertelement <2 x float> poison, float %35, i64 0
  %43 = shufflevector <2 x float> %42, <2 x float> poison, <2 x i32> zeroinitializer
  %44 = fmul <2 x float> %43, %41
  %45 = extractelement <2 x float> %44, i64 0
  %46 = extractelement <2 x float> %44, i64 1
  %47 = fcmp ogt float %45, %46
  %.052.1 = select i1 %47, float %45, float %46
  %.051.1 = select i1 %47, float %46, float %45
  %48 = fcmp ogt float %.051.1, %29
  br i1 %48, label %49, label %50

49:                                               ; preds = %34
  store float %.051.1, ptr %3, align 4, !tbaa !5
  br label %50

50:                                               ; preds = %49, %34
  %51 = phi float [ %.051.1, %49 ], [ %29, %34 ]
  %52 = fcmp ogt float %.052.1, %.247
  %.146.1 = select i1 %52, float %.052.1, float %.247
  %53 = fcmp ule float %51, %.146.1
  br i1 %53, label %.critedge, label %.loopexit

54:                                               ; preds = %28
  %.sroa.0.4.vec.extract66 = extractelement <2 x float> %0, i64 1
  %55 = fcmp olt float %.sroa.0.4.vec.extract66, %33
  %56 = getelementptr inbounds i8, ptr %2, i64 12
  %57 = load float, ptr %56, align 4
  %58 = fcmp ogt float %.sroa.0.4.vec.extract66, %57
  %or.cond71 = select i1 %55, i1 true, i1 %58
  br i1 %or.cond71, label %.loopexit, label %.critedge

.critedge:                                        ; preds = %54, %50
  %59 = phi float [ %51, %50 ], [ %29, %54 ]
  %60 = tail call <2 x float> @_Zml4Vec2f(<2 x float> %6, float noundef %59)
  %61 = tail call <2 x float> @_Zpl4Vec2S_(<2 x float> %0, <2 x float> %60)
  store <2 x float> %61, ptr %4, align 4, !tbaa !9
  br label %.loopexit

.loopexit:                                        ; preds = %25, %11, %50, %54, %.critedge
  %62 = phi i1 [ true, %.critedge ], [ false, %54 ], [ false, %50 ], [ false, %11 ], [ false, %25 ]
  ret i1 %62
}

attributes #0 = { inlinehint mustprogress uwtable "min-legal-vector-width"="64" "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 nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress uwtable "min-legal-vector-width"="64" "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" }

!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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass