; LLVM IR from FedericaPaoli1/stm32-speech-recognition-and-traduction :: Drivers/CMSIS/DSP/Source/FilteringFunctions (arm_fir_f32)

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

; Function Attrs: nounwind uwtable
define dso_local void @arm_fir_f32(ptr noundef %0, ptr noundef %1, ptr noundef %2, i32 noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca float, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i32 %3, ptr %8, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %19 = load ptr, ptr %5, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.arm_fir_instance_f32, ptr %19, i32 0, i32 1
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  store ptr %21, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.arm_fir_instance_f32, ptr %22, i32 0, i32 2
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  store ptr %24, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #3
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.arm_fir_instance_f32, ptr %25, i32 0, i32 0
  %27 = load i16, ptr %26, align 8, !tbaa !15
  %28 = zext i16 %27 to i32
  store i32 %28, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #3
  %29 = load ptr, ptr %5, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.arm_fir_instance_f32, ptr %29, i32 0, i32 1
  %31 = load ptr, ptr %30, align 8, !tbaa !11
  %32 = load i32, ptr %15, align 4, !tbaa !9
  %33 = sub i32 %32, 1
  %34 = zext i32 %33 to i64
  %35 = getelementptr inbounds float, ptr %31, i64 %34
  store ptr %35, ptr %11, align 8, !tbaa !5
  %36 = load i32, ptr %8, align 4, !tbaa !9
  store i32 %36, ptr %18, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %63, %4
  %38 = load i32, ptr %18, align 4, !tbaa !9
  %39 = icmp ugt i32 %38, 0
  br i1 %39, label %40, label %71

40:                                               ; preds = %37
  %41 = load ptr, ptr %6, align 8, !tbaa !5
  %42 = getelementptr inbounds float, ptr %41, i32 1
  store ptr %42, ptr %6, align 8, !tbaa !5
  %43 = load float, ptr %41, align 4, !tbaa !16
  %44 = load ptr, ptr %11, align 8, !tbaa !5
  %45 = getelementptr inbounds float, ptr %44, i32 1
  store ptr %45, ptr %11, align 8, !tbaa !5
  store float %43, ptr %44, align 4, !tbaa !16
  store float 0.000000e+00, ptr %14, align 4, !tbaa !16
  %46 = load ptr, ptr %9, align 8, !tbaa !5
  store ptr %46, ptr %12, align 8, !tbaa !5
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %47, ptr %13, align 8, !tbaa !5
  %48 = load i32, ptr %15, align 4, !tbaa !9
  store i32 %48, ptr %16, align 4, !tbaa !9
  br label %49

49:                                               ; preds = %52, %40
  %50 = load i32, ptr %16, align 4, !tbaa !9
  %51 = icmp ugt i32 %50, 0
  br i1 %51, label %52, label %63

52:                                               ; preds = %49
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = getelementptr inbounds float, ptr %53, i32 1
  store ptr %54, ptr %12, align 8, !tbaa !5
  %55 = load float, ptr %53, align 4, !tbaa !16
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = getelementptr inbounds float, ptr %56, i32 1
  store ptr %57, ptr %13, align 8, !tbaa !5
  %58 = load float, ptr %56, align 4, !tbaa !16
  %59 = load float, ptr %14, align 4, !tbaa !16
  %60 = call float @llvm.fmuladd.f32(float %55, float %58, float %59)
  store float %60, ptr %14, align 4, !tbaa !16
  %61 = load i32, ptr %16, align 4, !tbaa !9
  %62 = add i32 %61, -1
  store i32 %62, ptr %16, align 4, !tbaa !9
  br label %49, !llvm.loop !18

63:                                               ; preds = %49
  %64 = load float, ptr %14, align 4, !tbaa !16
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds float, ptr %65, i32 1
  store ptr %66, ptr %7, align 8, !tbaa !5
  store float %64, ptr %65, align 4, !tbaa !16
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds float, ptr %67, i64 1
  store ptr %68, ptr %9, align 8, !tbaa !5
  %69 = load i32, ptr %18, align 4, !tbaa !9
  %70 = add i32 %69, -1
  store i32 %70, ptr %18, align 4, !tbaa !9
  br label %37, !llvm.loop !20

71:                                               ; preds = %37
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.arm_fir_instance_f32, ptr %72, i32 0, i32 1
  %74 = load ptr, ptr %73, align 8, !tbaa !11
  store ptr %74, ptr %11, align 8, !tbaa !5
  %75 = load i32, ptr %15, align 4, !tbaa !9
  %76 = sub i32 %75, 1
  store i32 %76, ptr %17, align 4, !tbaa !9
  br label %77

77:                                               ; preds = %80, %71
  %78 = load i32, ptr %17, align 4, !tbaa !9
  %79 = icmp ugt i32 %78, 0
  br i1 %79, label %80, label %88

80:                                               ; preds = %77
  %81 = load ptr, ptr %9, align 8, !tbaa !5
  %82 = getelementptr inbounds float, ptr %81, i32 1
  store ptr %82, ptr %9, align 8, !tbaa !5
  %83 = load float, ptr %81, align 4, !tbaa !16
  %84 = load ptr, ptr %11, align 8, !tbaa !5
  %85 = getelementptr inbounds float, ptr %84, i32 1
  store ptr %85, ptr %11, align 8, !tbaa !5
  store float %83, ptr %84, align 4, !tbaa !16
  %86 = load i32, ptr %17, align 4, !tbaa !9
  %87 = add i32 %86, -1
  store i32 %87, ptr %17, align 4, !tbaa !9
  br label %77, !llvm.loop !21

88:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 8}
!12 = !{!"", !13, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 16}
!15 = !{!12, !13, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = distinct !{!20, !19}
!21 = distinct !{!21, !19}


; 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: nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) uwtable
define dso_local void @arm_fir_f32(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2, i32 noundef %3) local_unnamed_addr #0 {
  %5 = ptrtoint ptr %1 to i64
  %6 = ptrtoint ptr %2 to i64
  %7 = getelementptr inbounds i8, ptr %0, i64 8
  %8 = load ptr, ptr %7, align 8, !tbaa !5
  %9 = ptrtoint ptr %8 to i64
  %10 = getelementptr inbounds i8, ptr %0, i64 16
  %11 = load ptr, ptr %10, align 8, !tbaa !11
  %12 = load i16, ptr %0, align 8, !tbaa !12
  %13 = zext i16 %12 to i32
  %14 = add nsw i32 %13, -1
  %.not43 = icmp eq i32 %3, 0
  br i1 %.not43, label %.preheader, label %.lr.ph50

.lr.ph50:                                         ; preds = %4
  %15 = zext i32 %14 to i64
  %16 = getelementptr float, ptr %8, i64 %15
  %.not3738 = icmp eq i16 %12, 0
  br i1 %.not3738, label %.lr.ph50.split.us.preheader, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.lr.ph50
  %xtraiter = and i32 %13, 3
  %lcmp.mod.not = icmp eq i32 %xtraiter, 0
  %17 = icmp ult i16 %12, 4
  br label %.lr.ph

.lr.ph50.split.us.preheader:                      ; preds = %.lr.ph50
  %18 = zext i32 %3 to i64
  %min.iters.check = icmp ult i32 %3, 20
  br i1 %min.iters.check, label %.lr.ph50.split.us.preheader118, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph50.split.us.preheader
  %19 = sub i64 %6, %9
  %20 = add i64 %19, -17179869180
  %diff.check = icmp ult i64 %20, 32
  %21 = add i64 %9, 17179869180
  %22 = sub i64 %21, %5
  %diff.check67 = icmp ult i64 %22, 32
  %conflict.rdx = or i1 %diff.check, %diff.check67
  %23 = sub i64 %6, %5
  %diff.check68 = icmp ult i64 %23, 32
  %conflict.rdx69 = or i1 %conflict.rdx, %diff.check68
  br i1 %conflict.rdx69, label %.lr.ph50.split.us.preheader118, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %18, 4294967288
  %.cast = trunc nuw i64 %n.vec to i32
  %ind.end = sub i32 %3, %.cast
  %24 = shl nuw nsw i64 %n.vec, 2
  %ind.end70 = getelementptr i8, ptr %1, i64 %24
  %25 = shl nuw nsw i64 %n.vec, 2
  %ind.end72 = getelementptr i8, ptr %16, i64 %25
  %26 = shl nuw nsw i64 %n.vec, 2
  %ind.end74 = getelementptr i8, ptr %2, i64 %26
  %27 = shl nuw nsw i64 %n.vec, 2
  %ind.end76 = getelementptr i8, ptr %8, i64 %27
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %offset.idx = shl i64 %index, 2
  %next.gep = getelementptr i8, ptr %1, i64 %offset.idx
  %offset.idx79 = shl i64 %index, 2
  %next.gep80 = getelementptr i8, ptr %16, i64 %offset.idx79
  %offset.idx82 = shl i64 %index, 2
  %next.gep83 = getelementptr i8, ptr %2, i64 %offset.idx82
  %28 = getelementptr i8, ptr %next.gep, i64 16
  %wide.load = load <4 x float>, ptr %next.gep, align 4, !tbaa !13
  %wide.load88 = load <4 x float>, ptr %28, align 4, !tbaa !13
  %29 = getelementptr i8, ptr %next.gep80, i64 16
  store <4 x float> %wide.load, ptr %next.gep80, align 4, !tbaa !13
  store <4 x float> %wide.load88, ptr %29, align 4, !tbaa !13
  %30 = getelementptr i8, ptr %next.gep83, i64 16
  store <4 x float> zeroinitializer, ptr %next.gep83, align 4, !tbaa !13
  store <4 x float> zeroinitializer, ptr %30, align 4, !tbaa !13
  %index.next = add nuw i64 %index, 8
  %31 = icmp eq i64 %index.next, %n.vec
  br i1 %31, label %middle.block, label %vector.body, !llvm.loop !15

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %18
  br i1 %cmp.n, label %.preheader, label %.lr.ph50.split.us.preheader118

.lr.ph50.split.us.preheader118:                   ; preds = %middle.block, %vector.memcheck, %.lr.ph50.split.us.preheader
  %.048.us.ph = phi i32 [ %3, %vector.memcheck ], [ %3, %.lr.ph50.split.us.preheader ], [ %ind.end, %middle.block ]
  %.02847.us.ph = phi ptr [ %1, %vector.memcheck ], [ %1, %.lr.ph50.split.us.preheader ], [ %ind.end70, %middle.block ]
  %.03246.us.ph = phi ptr [ %16, %vector.memcheck ], [ %16, %.lr.ph50.split.us.preheader ], [ %ind.end72, %middle.block ]
  %.03345.us.ph = phi ptr [ %2, %vector.memcheck ], [ %2, %.lr.ph50.split.us.preheader ], [ %ind.end74, %middle.block ]
  %.03444.us.ph = phi ptr [ %8, %vector.memcheck ], [ %8, %.lr.ph50.split.us.preheader ], [ %ind.end76, %middle.block ]
  %32 = add i32 %.048.us.ph, -1
  %xtraiter122 = and i32 %.048.us.ph, 3
  %lcmp.mod123.not = icmp eq i32 %xtraiter122, 0
  br i1 %lcmp.mod123.not, label %.lr.ph50.split.us.prol.loopexit, label %.lr.ph50.split.us.prol

.lr.ph50.split.us.prol:                           ; preds = %.lr.ph50.split.us.preheader118, %.lr.ph50.split.us.prol
  %.048.us.prol = phi i32 [ %38, %.lr.ph50.split.us.prol ], [ %.048.us.ph, %.lr.ph50.split.us.preheader118 ]
  %.02847.us.prol = phi ptr [ %33, %.lr.ph50.split.us.prol ], [ %.02847.us.ph, %.lr.ph50.split.us.preheader118 ]
  %.03246.us.prol = phi ptr [ %35, %.lr.ph50.split.us.prol ], [ %.03246.us.ph, %.lr.ph50.split.us.preheader118 ]
  %.03345.us.prol = phi ptr [ %36, %.lr.ph50.split.us.prol ], [ %.03345.us.ph, %.lr.ph50.split.us.preheader118 ]
  %.03444.us.prol = phi ptr [ %37, %.lr.ph50.split.us.prol ], [ %.03444.us.ph, %.lr.ph50.split.us.preheader118 ]
  %prol.iter124 = phi i32 [ %prol.iter124.next, %.lr.ph50.split.us.prol ], [ 0, %.lr.ph50.split.us.preheader118 ]
  %33 = getelementptr inbounds i8, ptr %.02847.us.prol, i64 4
  %34 = load float, ptr %.02847.us.prol, align 4, !tbaa !13
  %35 = getelementptr inbounds i8, ptr %.03246.us.prol, i64 4
  store float %34, ptr %.03246.us.prol, align 4, !tbaa !13
  %36 = getelementptr inbounds i8, ptr %.03345.us.prol, i64 4
  store float 0.000000e+00, ptr %.03345.us.prol, align 4, !tbaa !13
  %37 = getelementptr inbounds i8, ptr %.03444.us.prol, i64 4
  %38 = add i32 %.048.us.prol, -1
  %prol.iter124.next = add i32 %prol.iter124, 1
  %prol.iter124.cmp.not = icmp eq i32 %prol.iter124.next, %xtraiter122
  br i1 %prol.iter124.cmp.not, label %.lr.ph50.split.us.prol.loopexit, label %.lr.ph50.split.us.prol, !llvm.loop !19

.lr.ph50.split.us.prol.loopexit:                  ; preds = %.lr.ph50.split.us.prol, %.lr.ph50.split.us.preheader118
  %.lcssa.unr = phi ptr [ poison, %.lr.ph50.split.us.preheader118 ], [ %37, %.lr.ph50.split.us.prol ]
  %.048.us.unr = phi i32 [ %.048.us.ph, %.lr.ph50.split.us.preheader118 ], [ %38, %.lr.ph50.split.us.prol ]
  %.02847.us.unr = phi ptr [ %.02847.us.ph, %.lr.ph50.split.us.preheader118 ], [ %33, %.lr.ph50.split.us.prol ]
  %.03246.us.unr = phi ptr [ %.03246.us.ph, %.lr.ph50.split.us.preheader118 ], [ %35, %.lr.ph50.split.us.prol ]
  %.03345.us.unr = phi ptr [ %.03345.us.ph, %.lr.ph50.split.us.preheader118 ], [ %36, %.lr.ph50.split.us.prol ]
  %.03444.us.unr = phi ptr [ %.03444.us.ph, %.lr.ph50.split.us.preheader118 ], [ %37, %.lr.ph50.split.us.prol ]
  %39 = icmp ult i32 %32, 3
  br i1 %39, label %.preheader, label %.lr.ph50.split.us

.lr.ph50.split.us:                                ; preds = %.lr.ph50.split.us.prol.loopexit, %.lr.ph50.split.us
  %.048.us = phi i32 [ %57, %.lr.ph50.split.us ], [ %.048.us.unr, %.lr.ph50.split.us.prol.loopexit ]
  %.02847.us = phi ptr [ %52, %.lr.ph50.split.us ], [ %.02847.us.unr, %.lr.ph50.split.us.prol.loopexit ]
  %.03246.us = phi ptr [ %54, %.lr.ph50.split.us ], [ %.03246.us.unr, %.lr.ph50.split.us.prol.loopexit ]
  %.03345.us = phi ptr [ %55, %.lr.ph50.split.us ], [ %.03345.us.unr, %.lr.ph50.split.us.prol.loopexit ]
  %.03444.us = phi ptr [ %56, %.lr.ph50.split.us ], [ %.03444.us.unr, %.lr.ph50.split.us.prol.loopexit ]
  %40 = getelementptr inbounds i8, ptr %.02847.us, i64 4
  %41 = load float, ptr %.02847.us, align 4, !tbaa !13
  %42 = getelementptr inbounds i8, ptr %.03246.us, i64 4
  store float %41, ptr %.03246.us, align 4, !tbaa !13
  %43 = getelementptr inbounds i8, ptr %.03345.us, i64 4
  store float 0.000000e+00, ptr %.03345.us, align 4, !tbaa !13
  %44 = getelementptr inbounds i8, ptr %.02847.us, i64 8
  %45 = load float, ptr %40, align 4, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %.03246.us, i64 8
  store float %45, ptr %42, align 4, !tbaa !13
  %47 = getelementptr inbounds i8, ptr %.03345.us, i64 8
  store float 0.000000e+00, ptr %43, align 4, !tbaa !13
  %48 = getelementptr inbounds i8, ptr %.02847.us, i64 12
  %49 = load float, ptr %44, align 4, !tbaa !13
  %50 = getelementptr inbounds i8, ptr %.03246.us, i64 12
  store float %49, ptr %46, align 4, !tbaa !13
  %51 = getelementptr inbounds i8, ptr %.03345.us, i64 12
  store float 0.000000e+00, ptr %47, align 4, !tbaa !13
  %52 = getelementptr inbounds i8, ptr %.02847.us, i64 16
  %53 = load float, ptr %48, align 4, !tbaa !13
  %54 = getelementptr inbounds i8, ptr %.03246.us, i64 16
  store float %53, ptr %50, align 4, !tbaa !13
  %55 = getelementptr inbounds i8, ptr %.03345.us, i64 16
  store float 0.000000e+00, ptr %51, align 4, !tbaa !13
  %56 = getelementptr inbounds i8, ptr %.03444.us, i64 16
  %57 = add i32 %.048.us, -4
  %.not.us.3 = icmp eq i32 %57, 0
  br i1 %.not.us.3, label %.preheader, label %.lr.ph50.split.us, !llvm.loop !21

.preheader:                                       ; preds = %._crit_edge, %.lr.ph50.split.us.prol.loopexit, %.lr.ph50.split.us, %middle.block, %4
  %.034.lcssa = phi ptr [ %8, %4 ], [ %ind.end76, %middle.block ], [ %.lcssa.unr, %.lr.ph50.split.us.prol.loopexit ], [ %56, %.lr.ph50.split.us ], [ %102, %._crit_edge ]
  %.not3652 = icmp eq i32 %14, 0
  br i1 %.not3652, label %._crit_edge57, label %.lr.ph56.preheader

.lr.ph56.preheader:                               ; preds = %.preheader
  %.034.lcssa90 = ptrtoint ptr %.034.lcssa to i64
  %58 = zext i32 %14 to i64
  %min.iters.check94 = icmp ult i32 %14, 8
  %59 = sub i64 %9, %.034.lcssa90
  %diff.check91 = icmp ult i64 %59, 32
  %or.cond = select i1 %min.iters.check94, i1 true, i1 %diff.check91
  br i1 %or.cond, label %.lr.ph56.preheader117, label %vector.ph95

.lr.ph56.preheader117:                            ; preds = %middle.block92, %.lr.ph56.preheader
  %.02655.ph = phi i32 [ %14, %.lr.ph56.preheader ], [ %ind.end99, %middle.block92 ]
  %.154.ph = phi ptr [ %8, %.lr.ph56.preheader ], [ %ind.end101, %middle.block92 ]
  %.13553.ph = phi ptr [ %.034.lcssa, %.lr.ph56.preheader ], [ %ind.end103, %middle.block92 ]
  %60 = add i32 %.02655.ph, -1
  %xtraiter125 = and i32 %.02655.ph, 7
  %lcmp.mod126.not = icmp eq i32 %xtraiter125, 0
  br i1 %lcmp.mod126.not, label %.lr.ph56.prol.loopexit, label %.lr.ph56.prol

.lr.ph56.prol:                                    ; preds = %.lr.ph56.preheader117, %.lr.ph56.prol
  %.02655.prol = phi i32 [ %64, %.lr.ph56.prol ], [ %.02655.ph, %.lr.ph56.preheader117 ]
  %.154.prol = phi ptr [ %63, %.lr.ph56.prol ], [ %.154.ph, %.lr.ph56.preheader117 ]
  %.13553.prol = phi ptr [ %61, %.lr.ph56.prol ], [ %.13553.ph, %.lr.ph56.preheader117 ]
  %prol.iter127 = phi i32 [ %prol.iter127.next, %.lr.ph56.prol ], [ 0, %.lr.ph56.preheader117 ]
  %61 = getelementptr inbounds i8, ptr %.13553.prol, i64 4
  %62 = load float, ptr %.13553.prol, align 4, !tbaa !13
  %63 = getelementptr inbounds i8, ptr %.154.prol, i64 4
  store float %62, ptr %.154.prol, align 4, !tbaa !13
  %64 = add i32 %.02655.prol, -1
  %prol.iter127.next = add i32 %prol.iter127, 1
  %prol.iter127.cmp.not = icmp eq i32 %prol.iter127.next, %xtraiter125
  br i1 %prol.iter127.cmp.not, label %.lr.ph56.prol.loopexit, label %.lr.ph56.prol, !llvm.loop !22

.lr.ph56.prol.loopexit:                           ; preds = %.lr.ph56.prol, %.lr.ph56.preheader117
  %.02655.unr = phi i32 [ %.02655.ph, %.lr.ph56.preheader117 ], [ %64, %.lr.ph56.prol ]
  %.154.unr = phi ptr [ %.154.ph, %.lr.ph56.preheader117 ], [ %63, %.lr.ph56.prol ]
  %.13553.unr = phi ptr [ %.13553.ph, %.lr.ph56.preheader117 ], [ %61, %.lr.ph56.prol ]
  %65 = icmp ult i32 %60, 7
  br i1 %65, label %._crit_edge57, label %.lr.ph56

vector.ph95:                                      ; preds = %.lr.ph56.preheader
  %n.vec97 = and i64 %58, 4294967288
  %.cast98 = trunc nuw i64 %n.vec97 to i32
  %ind.end99 = sub i32 %14, %.cast98
  %66 = shl nuw nsw i64 %n.vec97, 2
  %ind.end101 = getelementptr i8, ptr %8, i64 %66
  %67 = shl nuw nsw i64 %n.vec97, 2
  %ind.end103 = getelementptr i8, ptr %.034.lcssa, i64 %67
  br label %vector.body105

vector.body105:                                   ; preds = %vector.body105, %vector.ph95
  %index106 = phi i64 [ 0, %vector.ph95 ], [ %index.next115, %vector.body105 ]
  %offset.idx107 = shl i64 %index106, 2
  %next.gep108 = getelementptr i8, ptr %8, i64 %offset.idx107
  %offset.idx110 = shl i64 %index106, 2
  %next.gep111 = getelementptr i8, ptr %.034.lcssa, i64 %offset.idx110
  %68 = getelementptr i8, ptr %next.gep111, i64 16
  %wide.load113 = load <4 x float>, ptr %next.gep111, align 4, !tbaa !13
  %wide.load114 = load <4 x float>, ptr %68, align 4, !tbaa !13
  %69 = getelementptr i8, ptr %next.gep108, i64 16
  store <4 x float> %wide.load113, ptr %next.gep108, align 4, !tbaa !13
  store <4 x float> %wide.load114, ptr %69, align 4, !tbaa !13
  %index.next115 = add nuw i64 %index106, 8
  %70 = icmp eq i64 %index.next115, %n.vec97
  br i1 %70, label %middle.block92, label %vector.body105, !llvm.loop !23

middle.block92:                                   ; preds = %vector.body105
  %cmp.n116 = icmp eq i64 %n.vec97, %58
  br i1 %cmp.n116, label %._crit_edge57, label %.lr.ph56.preheader117

.lr.ph:                                           ; preds = %.lr.ph.preheader, %._crit_edge
  %.048 = phi i32 [ %103, %._crit_edge ], [ %3, %.lr.ph.preheader ]
  %.02847 = phi ptr [ %99, %._crit_edge ], [ %1, %.lr.ph.preheader ]
  %.03246 = phi ptr [ %100, %._crit_edge ], [ %16, %.lr.ph.preheader ]
  %.03345 = phi ptr [ %101, %._crit_edge ], [ %2, %.lr.ph.preheader ]
  %.03444 = phi ptr [ %102, %._crit_edge ], [ %8, %.lr.ph.preheader ]
  %71 = load float, ptr %.02847, align 4, !tbaa !13
  store float %71, ptr %.03246, align 4, !tbaa !13
  br i1 %lcmp.mod.not, label %.prol.loopexit, label %.prol.preheader

.prol.preheader:                                  ; preds = %.lr.ph, %.prol.preheader
  %.02742.prol = phi i32 [ %77, %.prol.preheader ], [ %13, %.lr.ph ]
  %.02941.prol = phi float [ %76, %.prol.preheader ], [ 0.000000e+00, %.lr.ph ]
  %.03040.prol = phi ptr [ %74, %.prol.preheader ], [ %11, %.lr.ph ]
  %.03139.prol = phi ptr [ %72, %.prol.preheader ], [ %.03444, %.lr.ph ]
  %prol.iter = phi i32 [ %prol.iter.next, %.prol.preheader ], [ 0, %.lr.ph ]
  %72 = getelementptr inbounds i8, ptr %.03139.prol, i64 4
  %73 = load float, ptr %.03139.prol, align 4, !tbaa !13
  %74 = getelementptr inbounds i8, ptr %.03040.prol, i64 4
  %75 = load float, ptr %.03040.prol, align 4, !tbaa !13
  %76 = tail call float @llvm.fmuladd.f32(float %73, float %75, float %.02941.prol)
  %77 = add nsw i32 %.02742.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 !24

.prol.loopexit:                                   ; preds = %.prol.preheader, %.lr.ph
  %.lcssa120.unr = phi float [ poison, %.lr.ph ], [ %76, %.prol.preheader ]
  %.02742.unr = phi i32 [ %13, %.lr.ph ], [ %77, %.prol.preheader ]
  %.02941.unr = phi float [ 0.000000e+00, %.lr.ph ], [ %76, %.prol.preheader ]
  %.03040.unr = phi ptr [ %11, %.lr.ph ], [ %74, %.prol.preheader ]
  %.03139.unr = phi ptr [ %.03444, %.lr.ph ], [ %72, %.prol.preheader ]
  br i1 %17, label %._crit_edge, label %.lr.ph.new

.lr.ph.new:                                       ; preds = %.prol.loopexit, %.lr.ph.new
  %.02742 = phi i32 [ %98, %.lr.ph.new ], [ %.02742.unr, %.prol.loopexit ]
  %.02941 = phi float [ %97, %.lr.ph.new ], [ %.02941.unr, %.prol.loopexit ]
  %.03040 = phi ptr [ %95, %.lr.ph.new ], [ %.03040.unr, %.prol.loopexit ]
  %.03139 = phi ptr [ %93, %.lr.ph.new ], [ %.03139.unr, %.prol.loopexit ]
  %78 = getelementptr inbounds i8, ptr %.03139, i64 4
  %79 = load float, ptr %.03139, align 4, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %.03040, i64 4
  %81 = load float, ptr %.03040, align 4, !tbaa !13
  %82 = tail call float @llvm.fmuladd.f32(float %79, float %81, float %.02941)
  %83 = getelementptr inbounds i8, ptr %.03139, i64 8
  %84 = load float, ptr %78, align 4, !tbaa !13
  %85 = getelementptr inbounds i8, ptr %.03040, i64 8
  %86 = load float, ptr %80, align 4, !tbaa !13
  %87 = tail call float @llvm.fmuladd.f32(float %84, float %86, float %82)
  %88 = getelementptr inbounds i8, ptr %.03139, i64 12
  %89 = load float, ptr %83, align 4, !tbaa !13
  %90 = getelementptr inbounds i8, ptr %.03040, i64 12
  %91 = load float, ptr %85, align 4, !tbaa !13
  %92 = tail call float @llvm.fmuladd.f32(float %89, float %91, float %87)
  %93 = getelementptr inbounds i8, ptr %.03139, i64 16
  %94 = load float, ptr %88, align 4, !tbaa !13
  %95 = getelementptr inbounds i8, ptr %.03040, i64 16
  %96 = load float, ptr %90, align 4, !tbaa !13
  %97 = tail call float @llvm.fmuladd.f32(float %94, float %96, float %92)
  %98 = add nsw i32 %.02742, -4
  %.not37.3 = icmp eq i32 %98, 0
  br i1 %.not37.3, label %._crit_edge, label %.lr.ph.new, !llvm.loop !25

._crit_edge:                                      ; preds = %.lr.ph.new, %.prol.loopexit
  %.lcssa120 = phi float [ %.lcssa120.unr, %.prol.loopexit ], [ %97, %.lr.ph.new ]
  %99 = getelementptr inbounds i8, ptr %.02847, i64 4
  %100 = getelementptr inbounds i8, ptr %.03246, i64 4
  %101 = getelementptr inbounds i8, ptr %.03345, i64 4
  store float %.lcssa120, ptr %.03345, align 4, !tbaa !13
  %102 = getelementptr inbounds i8, ptr %.03444, i64 4
  %103 = add i32 %.048, -1
  %.not = icmp eq i32 %103, 0
  br i1 %.not, label %.preheader, label %.lr.ph, !llvm.loop !26

.lr.ph56:                                         ; preds = %.lr.ph56.prol.loopexit, %.lr.ph56
  %.02655 = phi i32 [ %128, %.lr.ph56 ], [ %.02655.unr, %.lr.ph56.prol.loopexit ]
  %.154 = phi ptr [ %127, %.lr.ph56 ], [ %.154.unr, %.lr.ph56.prol.loopexit ]
  %.13553 = phi ptr [ %125, %.lr.ph56 ], [ %.13553.unr, %.lr.ph56.prol.loopexit ]
  %104 = getelementptr inbounds i8, ptr %.13553, i64 4
  %105 = load float, ptr %.13553, align 4, !tbaa !13
  %106 = getelementptr inbounds i8, ptr %.154, i64 4
  store float %105, ptr %.154, align 4, !tbaa !13
  %107 = getelementptr inbounds i8, ptr %.13553, i64 8
  %108 = load float, ptr %104, align 4, !tbaa !13
  %109 = getelementptr inbounds i8, ptr %.154, i64 8
  store float %108, ptr %106, align 4, !tbaa !13
  %110 = getelementptr inbounds i8, ptr %.13553, i64 12
  %111 = load float, ptr %107, align 4, !tbaa !13
  %112 = getelementptr inbounds i8, ptr %.154, i64 12
  store float %111, ptr %109, align 4, !tbaa !13
  %113 = getelementptr inbounds i8, ptr %.13553, i64 16
  %114 = load float, ptr %110, align 4, !tbaa !13
  %115 = getelementptr inbounds i8, ptr %.154, i64 16
  store float %114, ptr %112, align 4, !tbaa !13
  %116 = getelementptr inbounds i8, ptr %.13553, i64 20
  %117 = load float, ptr %113, align 4, !tbaa !13
  %118 = getelementptr inbounds i8, ptr %.154, i64 20
  store float %117, ptr %115, align 4, !tbaa !13
  %119 = getelementptr inbounds i8, ptr %.13553, i64 24
  %120 = load float, ptr %116, align 4, !tbaa !13
  %121 = getelementptr inbounds i8, ptr %.154, i64 24
  store float %120, ptr %118, align 4, !tbaa !13
  %122 = getelementptr inbounds i8, ptr %.13553, i64 28
  %123 = load float, ptr %119, align 4, !tbaa !13
  %124 = getelementptr inbounds i8, ptr %.154, i64 28
  store float %123, ptr %121, align 4, !tbaa !13
  %125 = getelementptr inbounds i8, ptr %.13553, i64 32
  %126 = load float, ptr %122, align 4, !tbaa !13
  %127 = getelementptr inbounds i8, ptr %.154, i64 32
  store float %126, ptr %124, align 4, !tbaa !13
  %128 = add i32 %.02655, -8
  %.not36.7 = icmp eq i32 %128, 0
  br i1 %.not36.7, label %._crit_edge57, label %.lr.ph56, !llvm.loop !27

._crit_edge57:                                    ; preds = %.lr.ph56.prol.loopexit, %.lr.ph56, %middle.block92, %.preheader
  ret void
}

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

attributes #0 = { nofree norecurse nosync nounwind memory(readwrite, inaccessiblemem: none) 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 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 8}
!6 = !{!"", !7, i64 0, !10, i64 8, !10, i64 16}
!7 = !{!"short", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !10, i64 16}
!12 = !{!6, !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"float", !8, i64 0}
!15 = distinct !{!15, !16, !17, !18}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!"llvm.loop.isvectorized", i32 1}
!18 = !{!"llvm.loop.unroll.runtime.disable"}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.unroll.disable"}
!21 = distinct !{!21, !16, !17}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !16, !17, !18}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !16}
!26 = distinct !{!26, !16}
!27 = distinct !{!27, !16, !17}


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