; LLVM IR from jgaeddert/liquid-dsp :: src/dotprod/src/dotprod_rrrf.sse (dotprod_rrrf_execute_sse4)

; 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.dotprod_rrrf_s = type { i32, ptr }

; 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; 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 @dotprod_rrrf_execute_sse4(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca <4 x float>, align 16
  %8 = alloca <4 x float>, align 16
  %9 = alloca <4 x float>, align 16
  %10 = alloca <4 x float>, align 16
  %11 = alloca <4 x float>, align 16
  %12 = alloca <4 x float>, align 16
  %13 = alloca <4 x float>, align 16
  %14 = alloca <4 x float>, align 16
  %15 = alloca <4 x float>, align 16
  %16 = alloca <4 x float>, align 16
  %17 = alloca <4 x float>, align 16
  %18 = alloca <4 x float>, align 16
  %19 = alloca <4 x float>, align 16
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca [4 x float], align 16
  %23 = alloca float, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 16, ptr %19) #4
  %24 = call <4 x float> @_mm_setzero_ps()
  store <4 x float> %24, ptr %19, align 16, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #4
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %25, i32 0, i32 0
  %27 = load i32, ptr %26, align 8, !tbaa !10
  %28 = lshr i32 %27, 4
  %29 = shl i32 %28, 2
  store i32 %29, ptr %20, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #4
  store i32 0, ptr %21, align 4, !tbaa !13
  br label %30

30:                                               ; preds = %123, %3
  %31 = load i32, ptr %21, align 4, !tbaa !13
  %32 = load i32, ptr %20, align 4, !tbaa !13
  %33 = icmp ult i32 %31, %32
  br i1 %33, label %34, label %126

34:                                               ; preds = %30
  %35 = load ptr, ptr %5, align 8, !tbaa !5
  %36 = load i32, ptr %21, align 4, !tbaa !13
  %37 = mul i32 4, %36
  %38 = add i32 %37, 0
  %39 = zext i32 %38 to i64
  %40 = getelementptr inbounds float, ptr %35, i64 %39
  %41 = call <4 x float> @_mm_loadu_ps(ptr noundef %40)
  store <4 x float> %41, ptr %7, align 16, !tbaa !9
  %42 = load ptr, ptr %5, align 8, !tbaa !5
  %43 = load i32, ptr %21, align 4, !tbaa !13
  %44 = mul i32 4, %43
  %45 = add i32 %44, 4
  %46 = zext i32 %45 to i64
  %47 = getelementptr inbounds float, ptr %42, i64 %46
  %48 = call <4 x float> @_mm_loadu_ps(ptr noundef %47)
  store <4 x float> %48, ptr %8, align 16, !tbaa !9
  %49 = load ptr, ptr %5, align 8, !tbaa !5
  %50 = load i32, ptr %21, align 4, !tbaa !13
  %51 = mul i32 4, %50
  %52 = add i32 %51, 8
  %53 = zext i32 %52 to i64
  %54 = getelementptr inbounds float, ptr %49, i64 %53
  %55 = call <4 x float> @_mm_loadu_ps(ptr noundef %54)
  store <4 x float> %55, ptr %9, align 16, !tbaa !9
  %56 = load ptr, ptr %5, align 8, !tbaa !5
  %57 = load i32, ptr %21, align 4, !tbaa !13
  %58 = mul i32 4, %57
  %59 = add i32 %58, 12
  %60 = zext i32 %59 to i64
  %61 = getelementptr inbounds float, ptr %56, i64 %60
  %62 = call <4 x float> @_mm_loadu_ps(ptr noundef %61)
  store <4 x float> %62, ptr %10, align 16, !tbaa !9
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %63, i32 0, i32 1
  %65 = load ptr, ptr %64, align 8, !tbaa !14
  %66 = load i32, ptr %21, align 4, !tbaa !13
  %67 = mul i32 4, %66
  %68 = add i32 %67, 0
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds float, ptr %65, i64 %69
  %71 = call <4 x float> @_mm_load_ps(ptr noundef %70)
  store <4 x float> %71, ptr %11, align 16, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !14
  %75 = load i32, ptr %21, align 4, !tbaa !13
  %76 = mul i32 4, %75
  %77 = add i32 %76, 4
  %78 = zext i32 %77 to i64
  %79 = getelementptr inbounds float, ptr %74, i64 %78
  %80 = call <4 x float> @_mm_load_ps(ptr noundef %79)
  store <4 x float> %80, ptr %12, align 16, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %81, i32 0, i32 1
  %83 = load ptr, ptr %82, align 8, !tbaa !14
  %84 = load i32, ptr %21, align 4, !tbaa !13
  %85 = mul i32 4, %84
  %86 = add i32 %85, 8
  %87 = zext i32 %86 to i64
  %88 = getelementptr inbounds float, ptr %83, i64 %87
  %89 = call <4 x float> @_mm_load_ps(ptr noundef %88)
  store <4 x float> %89, ptr %13, align 16, !tbaa !9
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %90, i32 0, i32 1
  %92 = load ptr, ptr %91, align 8, !tbaa !14
  %93 = load i32, ptr %21, align 4, !tbaa !13
  %94 = mul i32 4, %93
  %95 = add i32 %94, 12
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds float, ptr %92, i64 %96
  %98 = call <4 x float> @_mm_load_ps(ptr noundef %97)
  store <4 x float> %98, ptr %14, align 16, !tbaa !9
  %99 = load <4 x float>, ptr %7, align 16, !tbaa !9
  %100 = load <4 x float>, ptr %11, align 16, !tbaa !9
  %101 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %99, <4 x float> noundef %100)
  store <4 x float> %101, ptr %15, align 16, !tbaa !9
  %102 = load <4 x float>, ptr %8, align 16, !tbaa !9
  %103 = load <4 x float>, ptr %12, align 16, !tbaa !9
  %104 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %102, <4 x float> noundef %103)
  store <4 x float> %104, ptr %16, align 16, !tbaa !9
  %105 = load <4 x float>, ptr %9, align 16, !tbaa !9
  %106 = load <4 x float>, ptr %13, align 16, !tbaa !9
  %107 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %105, <4 x float> noundef %106)
  store <4 x float> %107, ptr %17, align 16, !tbaa !9
  %108 = load <4 x float>, ptr %10, align 16, !tbaa !9
  %109 = load <4 x float>, ptr %14, align 16, !tbaa !9
  %110 = call <4 x float> @_mm_mul_ps(<4 x float> noundef %108, <4 x float> noundef %109)
  store <4 x float> %110, ptr %18, align 16, !tbaa !9
  %111 = load <4 x float>, ptr %19, align 16, !tbaa !9
  %112 = load <4 x float>, ptr %15, align 16, !tbaa !9
  %113 = call <4 x float> @_mm_add_ps(<4 x float> noundef %111, <4 x float> noundef %112)
  store <4 x float> %113, ptr %19, align 16, !tbaa !9
  %114 = load <4 x float>, ptr %19, align 16, !tbaa !9
  %115 = load <4 x float>, ptr %16, align 16, !tbaa !9
  %116 = call <4 x float> @_mm_add_ps(<4 x float> noundef %114, <4 x float> noundef %115)
  store <4 x float> %116, ptr %19, align 16, !tbaa !9
  %117 = load <4 x float>, ptr %19, align 16, !tbaa !9
  %118 = load <4 x float>, ptr %17, align 16, !tbaa !9
  %119 = call <4 x float> @_mm_add_ps(<4 x float> noundef %117, <4 x float> noundef %118)
  store <4 x float> %119, ptr %19, align 16, !tbaa !9
  %120 = load <4 x float>, ptr %19, align 16, !tbaa !9
  %121 = load <4 x float>, ptr %18, align 16, !tbaa !9
  %122 = call <4 x float> @_mm_add_ps(<4 x float> noundef %120, <4 x float> noundef %121)
  store <4 x float> %122, ptr %19, align 16, !tbaa !9
  br label %123

123:                                              ; preds = %34
  %124 = load i32, ptr %21, align 4, !tbaa !13
  %125 = add i32 %124, 4
  store i32 %125, ptr %21, align 4, !tbaa !13
  br label %30, !llvm.loop !15

126:                                              ; preds = %30
  call void @llvm.lifetime.start.p0(i64 16, ptr %22) #4
  %127 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 0
  %128 = load <4 x float>, ptr %19, align 16, !tbaa !9
  call void @_mm_store_ps(ptr noundef %127, <4 x float> noundef %128)
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #4
  %129 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 0
  %130 = load float, ptr %129, align 16, !tbaa !17
  %131 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 1
  %132 = load float, ptr %131, align 4, !tbaa !17
  %133 = fadd float %130, %132
  %134 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 2
  %135 = load float, ptr %134, align 8, !tbaa !17
  %136 = fadd float %133, %135
  %137 = getelementptr inbounds [4 x float], ptr %22, i64 0, i64 3
  %138 = load float, ptr %137, align 4, !tbaa !17
  %139 = fadd float %136, %138
  store float %139, ptr %23, align 4, !tbaa !17
  %140 = load i32, ptr %20, align 4, !tbaa !13
  %141 = mul i32 4, %140
  store i32 %141, ptr %21, align 4, !tbaa !13
  br label %142

142:                                              ; preds = %163, %126
  %143 = load i32, ptr %21, align 4, !tbaa !13
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %144, i32 0, i32 0
  %146 = load i32, ptr %145, align 8, !tbaa !10
  %147 = icmp ult i32 %143, %146
  br i1 %147, label %148, label %166

148:                                              ; preds = %142
  %149 = load ptr, ptr %5, align 8, !tbaa !5
  %150 = load i32, ptr %21, align 4, !tbaa !13
  %151 = zext i32 %150 to i64
  %152 = getelementptr inbounds float, ptr %149, i64 %151
  %153 = load float, ptr %152, align 4, !tbaa !17
  %154 = load ptr, ptr %4, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.dotprod_rrrf_s, ptr %154, i32 0, i32 1
  %156 = load ptr, ptr %155, align 8, !tbaa !14
  %157 = load i32, ptr %21, align 4, !tbaa !13
  %158 = zext i32 %157 to i64
  %159 = getelementptr inbounds float, ptr %156, i64 %158
  %160 = load float, ptr %159, align 4, !tbaa !17
  %161 = load float, ptr %23, align 4, !tbaa !17
  %162 = call float @llvm.fmuladd.f32(float %153, float %160, float %161)
  store float %162, ptr %23, align 4, !tbaa !17
  br label %163

163:                                              ; preds = %148
  %164 = load i32, ptr %21, align 4, !tbaa !13
  %165 = add i32 %164, 1
  store i32 %165, ptr %21, align 4, !tbaa !13
  br label %142, !llvm.loop !19

166:                                              ; preds = %142
  %167 = load float, ptr %23, align 4, !tbaa !17
  %168 = load ptr, ptr %6, align 8, !tbaa !5
  store float %167, ptr %168, align 4, !tbaa !17
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 16, ptr %7) #4
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_setzero_ps() #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_loadu_ps(ptr noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_load_ps(ptr noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_mul_ps(<4 x float> noundef, <4 x float> noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_add_ps(<4 x float> noundef, <4 x float> noundef) #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_store_ps(ptr noundef, <4 x float> noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = !{!11, !12, i64 0}
!11 = !{!"dotprod_rrrf_s", !12, i64 0, !6, i64 8}
!12 = !{!"int", !7, i64 0}
!13 = !{!12, !12, i64 0}
!14 = !{!11, !6, i64 8}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !7, i64 0}
!19 = distinct !{!19, !16}


; 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: 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 speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #1

; Function Attrs: mustprogress 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 noundef i32 @dotprod_rrrf_execute_sse4(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 {
  %4 = alloca [4 x float], align 16
  %5 = tail call <4 x float> @_mm_setzero_ps()
  %6 = load i32, ptr %0, align 8, !tbaa !5
  %7 = lshr i32 %6, 2
  %8 = and i32 %7, 1073741820
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = zext nneg i32 %8 to i64
  br label %11

11:                                               ; preds = %.lr.ph, %11
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %11 ]
  %.04850 = phi <4 x float> [ %5, %.lr.ph ], [ %43, %11 ]
  %12 = shl nuw i64 %indvars.iv, 2
  %13 = getelementptr inbounds float, ptr %1, i64 %12
  %14 = tail call <4 x float> @_mm_loadu_ps(ptr noundef %13)
  %15 = or disjoint i64 %12, 4
  %16 = getelementptr inbounds float, ptr %1, i64 %15
  %17 = tail call <4 x float> @_mm_loadu_ps(ptr noundef nonnull %16)
  %18 = or disjoint i64 %12, 8
  %19 = getelementptr inbounds float, ptr %1, i64 %18
  %20 = tail call <4 x float> @_mm_loadu_ps(ptr noundef nonnull %19)
  %21 = or disjoint i64 %12, 12
  %22 = getelementptr inbounds float, ptr %1, i64 %21
  %23 = tail call <4 x float> @_mm_loadu_ps(ptr noundef nonnull %22)
  %24 = load ptr, ptr %9, align 8, !tbaa !11
  %25 = getelementptr inbounds float, ptr %24, i64 %12
  %26 = tail call <4 x float> @_mm_load_ps(ptr noundef %25)
  %27 = load ptr, ptr %9, align 8, !tbaa !11
  %28 = getelementptr inbounds float, ptr %27, i64 %15
  %29 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %28)
  %30 = load ptr, ptr %9, align 8, !tbaa !11
  %31 = getelementptr inbounds float, ptr %30, i64 %18
  %32 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %31)
  %33 = load ptr, ptr %9, align 8, !tbaa !11
  %34 = getelementptr inbounds float, ptr %33, i64 %21
  %35 = tail call <4 x float> @_mm_load_ps(ptr noundef nonnull %34)
  %36 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %14, <4 x float> noundef %26)
  %37 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %17, <4 x float> noundef %29)
  %38 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %20, <4 x float> noundef %32)
  %39 = tail call <4 x float> @_mm_mul_ps(<4 x float> noundef %23, <4 x float> noundef %35)
  %40 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %.04850, <4 x float> noundef %36)
  %41 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %40, <4 x float> noundef %37)
  %42 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %41, <4 x float> noundef %38)
  %43 = tail call <4 x float> @_mm_add_ps(<4 x float> noundef %42, <4 x float> noundef %39)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 4
  %44 = icmp ult i64 %indvars.iv.next, %10
  br i1 %44, label %11, label %._crit_edge, !llvm.loop !12

._crit_edge:                                      ; preds = %11, %3
  %.048.lcssa = phi <4 x float> [ %5, %3 ], [ %43, %11 ]
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #4
  call void @_mm_store_ps(ptr noundef nonnull %4, <4 x float> noundef %.048.lcssa)
  %45 = load float, ptr %4, align 16, !tbaa !14
  %46 = getelementptr inbounds i8, ptr %4, i64 4
  %47 = load float, ptr %46, align 4, !tbaa !14
  %48 = fadd float %45, %47
  %49 = getelementptr inbounds i8, ptr %4, i64 8
  %50 = load float, ptr %49, align 8, !tbaa !14
  %51 = fadd float %48, %50
  %52 = getelementptr inbounds i8, ptr %4, i64 12
  %53 = load float, ptr %52, align 4, !tbaa !14
  %54 = fadd float %51, %53
  %55 = shl nuw i32 %8, 2
  %56 = load i32, ptr %0, align 8, !tbaa !5
  %57 = icmp ult i32 %55, %56
  br i1 %57, label %.lr.ph55, label %._crit_edge56

.lr.ph55:                                         ; preds = %._crit_edge
  %58 = getelementptr inbounds i8, ptr %0, i64 8
  %59 = load ptr, ptr %58, align 8, !tbaa !11
  %60 = and i32 %6, -16
  %61 = and i32 %6, -16
  %62 = zext i32 %61 to i64
  %63 = add i32 %56, %60
  %64 = sub i32 %63, %55
  %65 = and i32 %6, -16
  %xtraiter = and i32 %56, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph55, %.prol.preheader
  %indvars.iv60.prol = phi i64 [ %indvars.iv.next61.prol, %.prol.preheader ], [ %62, %.lr.ph55 ]
  %.053.prol = phi float [ %70, %.prol.preheader ], [ %54, %.lr.ph55 ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph55 ]
  %66 = getelementptr inbounds float, ptr %1, i64 %indvars.iv60.prol
  %67 = load float, ptr %66, align 4, !tbaa !14
  %68 = getelementptr inbounds float, ptr %59, i64 %indvars.iv60.prol
  %69 = load float, ptr %68, align 4, !tbaa !14
  %70 = call float @llvm.fmuladd.f32(float %67, float %69, float %.053.prol)
  %indvars.iv.next61.prol = add nuw nsw i64 %indvars.iv60.prol, 1
  %prol.iter.next = add i32 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i32 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.prol.loopexit, label %.prol.preheader, !llvm.loop !16

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph55
  %.lcssa.unr = phi float [ poison, %.lr.ph55 ], [ %70, %.prol.preheader ]
  %indvars.iv60.unr = phi i64 [ %62, %.lr.ph55 ], [ %indvars.iv.next61.prol, %.prol.preheader ]
  %.053.unr = phi float [ %54, %.lr.ph55 ], [ %70, %.prol.preheader ]
  %71 = sub i32 %65, %56
  %72 = icmp ugt i32 %71, -4
  br i1 %72, label %._crit_edge56, label %.lr.ph55.new

.lr.ph55.new:                                     ; preds = %.prol.loopexit, %.lr.ph55.new
  %indvars.iv60 = phi i64 [ %indvars.iv.next61.3, %.lr.ph55.new ], [ %indvars.iv60.unr, %.prol.loopexit ]
  %.053 = phi float [ %92, %.lr.ph55.new ], [ %.053.unr, %.prol.loopexit ]
  %73 = getelementptr inbounds float, ptr %1, i64 %indvars.iv60
  %74 = load float, ptr %73, align 4, !tbaa !14
  %75 = getelementptr inbounds float, ptr %59, i64 %indvars.iv60
  %76 = load float, ptr %75, align 4, !tbaa !14
  %77 = call float @llvm.fmuladd.f32(float %74, float %76, float %.053)
  %indvars.iv.next61 = add nuw nsw i64 %indvars.iv60, 1
  %78 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next61
  %79 = load float, ptr %78, align 4, !tbaa !14
  %80 = getelementptr inbounds float, ptr %59, i64 %indvars.iv.next61
  %81 = load float, ptr %80, align 4, !tbaa !14
  %82 = call float @llvm.fmuladd.f32(float %79, float %81, float %77)
  %indvars.iv.next61.1 = add nuw nsw i64 %indvars.iv60, 2
  %83 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next61.1
  %84 = load float, ptr %83, align 4, !tbaa !14
  %85 = getelementptr inbounds float, ptr %59, i64 %indvars.iv.next61.1
  %86 = load float, ptr %85, align 4, !tbaa !14
  %87 = call float @llvm.fmuladd.f32(float %84, float %86, float %82)
  %indvars.iv.next61.2 = add nuw nsw i64 %indvars.iv60, 3
  %88 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next61.2
  %89 = load float, ptr %88, align 4, !tbaa !14
  %90 = getelementptr inbounds float, ptr %59, i64 %indvars.iv.next61.2
  %91 = load float, ptr %90, align 4, !tbaa !14
  %92 = call float @llvm.fmuladd.f32(float %89, float %91, float %87)
  %indvars.iv.next61.3 = add nuw nsw i64 %indvars.iv60, 4
  %lftr.wideiv.3 = trunc i64 %indvars.iv.next61.3 to i32
  %exitcond.not.3 = icmp eq i32 %64, %lftr.wideiv.3
  br i1 %exitcond.not.3, label %._crit_edge56, label %.lr.ph55.new, !llvm.loop !18

._crit_edge56:                                    ; preds = %.prol.loopexit, %.lr.ph55.new, %._crit_edge
  %.0.lcssa = phi float [ %54, %._crit_edge ], [ %.lcssa.unr, %.prol.loopexit ], [ %92, %.lr.ph55.new ]
  store float %.0.lcssa, ptr %2, align 4, !tbaa !14
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #4
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_setzero_ps() local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_loadu_ps(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_load_ps(ptr noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_mul_ps(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden <4 x float> @_mm_add_ps(<4 x float> noundef, <4 x float> noundef) local_unnamed_addr #3

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @_mm_store_ps(ptr noundef, <4 x float> noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nounwind uwtable "min-legal-vector-width"="128" "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 = { alwaysinline nounwind uwtable "min-legal-vector-width"="128" "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, !7, i64 0}
!6 = !{!"dotprod_rrrf_s", !7, i64 0, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 8}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = !{!15, !15, i64 0}
!15 = !{!"float", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.unroll.disable"}
!18 = distinct !{!18, !13}


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