; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseGemm32f.ll (ZN4Simd4Base9Gemm32fNTEmmmPKfS2_mS2_mS2_Pfm)

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

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.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: mustprogress nounwind uwtable
define dso_local void @_ZN4Simd4Base9Gemm32fNTEmmmPKfS2_mS2_mS2_Pfm(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr noundef %3, ptr noundef %4, i64 noundef %5, ptr noundef %6, i64 noundef %7, ptr noundef %8, ptr noundef %9, i64 noundef %10) #2 {
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = alloca float, align 4
  %24 = alloca i64, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca i64, align 8
  %28 = alloca i64, align 8
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca float, align 4
  %32 = alloca i64, align 8
  store i64 %0, ptr %12, align 8, !tbaa !5
  store i64 %1, ptr %13, align 8, !tbaa !5
  store i64 %2, ptr %14, align 8, !tbaa !5
  store ptr %3, ptr %15, align 8, !tbaa !9
  store ptr %4, ptr %16, align 8, !tbaa !9
  store i64 %5, ptr %17, align 8, !tbaa !5
  store ptr %6, ptr %18, align 8, !tbaa !9
  store i64 %7, ptr %19, align 8, !tbaa !5
  store ptr %8, ptr %20, align 8, !tbaa !9
  store ptr %9, ptr %21, align 8, !tbaa !9
  store i64 %10, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %33 = load ptr, ptr %20, align 8, !tbaa !9
  %34 = getelementptr inbounds float, ptr %33, i64 0
  %35 = load float, ptr %34, align 4, !tbaa !11
  store float %35, ptr %23, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  store i64 0, ptr %24, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %115, %11
  %37 = load i64, ptr %24, align 8, !tbaa !5
  %38 = load i64, ptr %12, align 8, !tbaa !5
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %41, label %40

40:                                               ; preds = %36
  store i32 2, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  br label %118

41:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #3
  %42 = load ptr, ptr %21, align 8, !tbaa !9
  %43 = load i64, ptr %24, align 8, !tbaa !5
  %44 = load i64, ptr %22, align 8, !tbaa !5
  %45 = mul i64 %43, %44
  %46 = getelementptr inbounds float, ptr %42, i64 %45
  store ptr %46, ptr %26, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #3
  store i64 0, ptr %27, align 8, !tbaa !5
  br label %47

47:                                               ; preds = %62, %41
  %48 = load i64, ptr %27, align 8, !tbaa !5
  %49 = load i64, ptr %13, align 8, !tbaa !5
  %50 = icmp ult i64 %48, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %47
  store i32 5, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #3
  br label %65

52:                                               ; preds = %47
  %53 = load float, ptr %23, align 4, !tbaa !11
  %54 = load ptr, ptr %26, align 8, !tbaa !9
  %55 = load i64, ptr %27, align 8, !tbaa !5
  %56 = getelementptr inbounds float, ptr %54, i64 %55
  %57 = load float, ptr %56, align 4, !tbaa !11
  %58 = fmul float %53, %57
  %59 = load ptr, ptr %26, align 8, !tbaa !9
  %60 = load i64, ptr %27, align 8, !tbaa !5
  %61 = getelementptr inbounds float, ptr %59, i64 %60
  store float %58, ptr %61, align 4, !tbaa !11
  br label %62

62:                                               ; preds = %52
  %63 = load i64, ptr %27, align 8, !tbaa !5
  %64 = add i64 %63, 1
  store i64 %64, ptr %27, align 8, !tbaa !5
  br label %47, !llvm.loop !13

65:                                               ; preds = %51
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #3
  store i64 0, ptr %28, align 8, !tbaa !5
  br label %66

66:                                               ; preds = %111, %65
  %67 = load i64, ptr %28, align 8, !tbaa !5
  %68 = load i64, ptr %13, align 8, !tbaa !5
  %69 = icmp ult i64 %67, %68
  br i1 %69, label %71, label %70

70:                                               ; preds = %66
  store i32 8, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #3
  br label %114

71:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #3
  %72 = load ptr, ptr %16, align 8, !tbaa !9
  %73 = load i64, ptr %24, align 8, !tbaa !5
  %74 = load i64, ptr %14, align 8, !tbaa !5
  %75 = mul i64 %73, %74
  %76 = getelementptr inbounds float, ptr %72, i64 %75
  store ptr %76, ptr %29, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #3
  %77 = load ptr, ptr %18, align 8, !tbaa !9
  %78 = load i64, ptr %28, align 8, !tbaa !5
  %79 = load i64, ptr %14, align 8, !tbaa !5
  %80 = mul i64 %78, %79
  %81 = getelementptr inbounds float, ptr %77, i64 %80
  store ptr %81, ptr %30, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  store float 0.000000e+00, ptr %31, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #3
  store i64 0, ptr %32, align 8, !tbaa !5
  br label %82

82:                                               ; preds = %98, %71
  %83 = load i64, ptr %32, align 8, !tbaa !5
  %84 = load i64, ptr %14, align 8, !tbaa !5
  %85 = icmp ult i64 %83, %84
  br i1 %85, label %87, label %86

86:                                               ; preds = %82
  store i32 11, ptr %25, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #3
  br label %101

87:                                               ; preds = %82
  %88 = load ptr, ptr %29, align 8, !tbaa !9
  %89 = load i64, ptr %32, align 8, !tbaa !5
  %90 = getelementptr inbounds float, ptr %88, i64 %89
  %91 = load float, ptr %90, align 4, !tbaa !11
  %92 = load ptr, ptr %30, align 8, !tbaa !9
  %93 = load i64, ptr %32, align 8, !tbaa !5
  %94 = getelementptr inbounds float, ptr %92, i64 %93
  %95 = load float, ptr %94, align 4, !tbaa !11
  %96 = load float, ptr %31, align 4, !tbaa !11
  %97 = call float @llvm.fmuladd.f32(float %91, float %95, float %96)
  store float %97, ptr %31, align 4, !tbaa !11
  br label %98

98:                                               ; preds = %87
  %99 = load i64, ptr %32, align 8, !tbaa !5
  %100 = add i64 %99, 1
  store i64 %100, ptr %32, align 8, !tbaa !5
  br label %82, !llvm.loop !15

101:                                              ; preds = %86
  %102 = load float, ptr %31, align 4, !tbaa !11
  %103 = load ptr, ptr %15, align 8, !tbaa !9
  %104 = getelementptr inbounds float, ptr %103, i64 0
  %105 = load float, ptr %104, align 4, !tbaa !11
  %106 = load ptr, ptr %26, align 8, !tbaa !9
  %107 = load i64, ptr %28, align 8, !tbaa !5
  %108 = getelementptr inbounds float, ptr %106, i64 %107
  %109 = load float, ptr %108, align 4, !tbaa !11
  %110 = call float @llvm.fmuladd.f32(float %102, float %105, float %109)
  store float %110, ptr %108, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #3
  br label %111

111:                                              ; preds = %101
  %112 = load i64, ptr %28, align 8, !tbaa !5
  %113 = add i64 %112, 1
  store i64 %113, ptr %28, align 8, !tbaa !5
  br label %66, !llvm.loop !16

114:                                              ; preds = %70
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #3
  br label %115

115:                                              ; preds = %114
  %116 = load i64, ptr %24, align 8, !tbaa !5
  %117 = add i64 %116, 1
  store i64 %117, ptr %24, align 8, !tbaa !5
  br label %36, !llvm.loop !17

118:                                              ; preds = %40
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}


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

; Function Attrs: mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) uwtable
define dso_local void @_ZN4Simd4Base9Gemm32fNTEmmmPKfS2_mS2_mS2_Pfm(i64 noundef %0, i64 noundef %1, i64 noundef %2, ptr nocapture noundef readonly %3, ptr nocapture noundef readonly %4, i64 noundef %5, ptr nocapture noundef readonly %6, i64 noundef %7, ptr nocapture noundef readonly %8, ptr nocapture noundef %9, i64 noundef %10) local_unnamed_addr #1 {
  %12 = load float, ptr %8, align 4, !tbaa !5
  %.not = icmp eq i64 %0, 0
  %.not62 = icmp eq i64 %1, 0
  %or.cond = or i1 %.not, %.not62
  br i1 %or.cond, label %._crit_edge, label %.lr.ph48.split.us

.lr.ph48.split.us:                                ; preds = %11
  %.not64 = icmp eq i64 %2, 0
  br i1 %.not64, label %.lr.ph.us.us60.preheader, label %.lr.ph.us.us.preheader.preheader

.lr.ph.us.us.preheader.preheader:                 ; preds = %.lr.ph48.split.us
  %min.iters.check = icmp ult i64 %1, 8
  %n.vec = and i64 %1, -8
  %broadcast.splatinsert = insertelement <4 x float> poison, float %12, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n = icmp eq i64 %n.vec, %1
  %xtraiter = and i64 %2, 3
  %13 = icmp ult i64 %2, 4
  %unroll_iter = and i64 %2, -4
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.lr.ph.us.us.preheader

.lr.ph.us.us60.preheader:                         ; preds = %.lr.ph48.split.us
  %14 = add i64 %0, 4611686018427387903
  %15 = mul i64 %14, %10
  %16 = add i64 %15, %1
  %17 = shl i64 %16, 2
  %scevgep = getelementptr i8, ptr %9, i64 %17
  %scevgep78 = getelementptr i8, ptr %3, i64 4
  %min.iters.check98 = icmp ult i64 %1, 8
  %n.vec101 = and i64 %1, -8
  %broadcast.splatinsert107 = insertelement <4 x float> poison, float %12, i64 0
  %broadcast.splat108 = shufflevector <4 x float> %broadcast.splatinsert107, <4 x float> poison, <4 x i32> zeroinitializer
  %cmp.n110 = icmp eq i64 %n.vec101, %1
  %min.iters.check81 = icmp ult i64 %1, 8
  %bound0 = icmp ugt ptr %scevgep78, %9
  %bound1 = icmp ugt ptr %scevgep, %3
  %found.conflict = and i1 %bound0, %bound1
  %.mask = and i64 %10, 2305843009213693952
  %stride.check = icmp ne i64 %.mask, 0
  %18 = or i1 %found.conflict, %stride.check
  %n.vec84 = and i64 %1, -8
  %cmp.n95 = icmp eq i64 %n.vec84, %1
  %xtraiter115 = and i64 %1, 1
  %lcmp.mod116.not = icmp eq i64 %xtraiter115, 0
  %19 = add i64 %1, -1
  br label %.lr.ph.us.us60

.lr.ph.us.us.preheader:                           ; preds = %.lr.ph.us.us.preheader.preheader, %._crit_edge46.split.us.us.us
  %.03647.us.us = phi i64 [ %70, %._crit_edge46.split.us.us.us ], [ 0, %.lr.ph.us.us.preheader.preheader ]
  %20 = mul i64 %.03647.us.us, %10
  %21 = getelementptr inbounds float, ptr %9, i64 %20
  br i1 %min.iters.check, label %.lr.ph.us.us.preheader112, label %vector.body

vector.body:                                      ; preds = %.lr.ph.us.us.preheader, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.lr.ph.us.us.preheader ]
  %22 = getelementptr inbounds float, ptr %21, i64 %index
  %23 = getelementptr inbounds i8, ptr %22, i64 16
  %wide.load = load <4 x float>, ptr %22, align 4, !tbaa !5
  %wide.load77 = load <4 x float>, ptr %23, align 4, !tbaa !5
  %24 = fmul <4 x float> %broadcast.splat, %wide.load
  %25 = fmul <4 x float> %broadcast.splat, %wide.load77
  store <4 x float> %24, ptr %22, align 4, !tbaa !5
  store <4 x float> %25, ptr %23, align 4, !tbaa !5
  %index.next = add nuw i64 %index, 8
  %26 = icmp eq i64 %index.next, %n.vec
  br i1 %26, label %middle.block, label %vector.body, !llvm.loop !9

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %.preheader.us.us, label %.lr.ph.us.us.preheader112

.lr.ph.us.us.preheader112:                        ; preds = %middle.block, %.lr.ph.us.us.preheader
  %.03840.us.us.ph = phi i64 [ 0, %.lr.ph.us.us.preheader ], [ %n.vec, %middle.block ]
  br label %.lr.ph.us.us

.lr.ph.us.us:                                     ; preds = %.lr.ph.us.us.preheader112, %.lr.ph.us.us
  %.03840.us.us = phi i64 [ %30, %.lr.ph.us.us ], [ %.03840.us.us.ph, %.lr.ph.us.us.preheader112 ]
  %27 = getelementptr inbounds float, ptr %21, i64 %.03840.us.us
  %28 = load float, ptr %27, align 4, !tbaa !5
  %29 = fmul float %12, %28
  store float %29, ptr %27, align 4, !tbaa !5
  %30 = add nuw i64 %.03840.us.us, 1
  %exitcond.not = icmp eq i64 %30, %1
  br i1 %exitcond.not, label %.preheader.us.us, label %.lr.ph.us.us, !llvm.loop !13

.preheader.us.us:                                 ; preds = %.lr.ph.us.us, %middle.block
  %31 = mul i64 %.03647.us.us, %2
  %32 = getelementptr inbounds float, ptr %4, i64 %31
  br label %.lr.ph43.us.us.us

.lr.ph43.us.us.us:                                ; preds = %._crit_edge.us.us.us, %.preheader.us.us
  %.03744.us.us.us = phi i64 [ 0, %.preheader.us.us ], [ %69, %._crit_edge.us.us.us ]
  %33 = mul i64 %.03744.us.us.us, %2
  %34 = getelementptr inbounds float, ptr %6, i64 %33
  br i1 %13, label %._crit_edge.us.us.us.unr-lcssa, label %.lr.ph43.us.us.us.new

.lr.ph43.us.us.us.new:                            ; preds = %.lr.ph43.us.us.us, %.lr.ph43.us.us.us.new
  %.042.us.us.us = phi i64 [ %58, %.lr.ph43.us.us.us.new ], [ 0, %.lr.ph43.us.us.us ]
  %.03541.us.us.us = phi float [ %57, %.lr.ph43.us.us.us.new ], [ 0.000000e+00, %.lr.ph43.us.us.us ]
  %niter = phi i64 [ %niter.next.3, %.lr.ph43.us.us.us.new ], [ 0, %.lr.ph43.us.us.us ]
  %35 = getelementptr inbounds float, ptr %32, i64 %.042.us.us.us
  %36 = load float, ptr %35, align 4, !tbaa !5
  %37 = getelementptr inbounds float, ptr %34, i64 %.042.us.us.us
  %38 = load float, ptr %37, align 4, !tbaa !5
  %39 = tail call float @llvm.fmuladd.f32(float %36, float %38, float %.03541.us.us.us)
  %40 = or disjoint i64 %.042.us.us.us, 1
  %41 = getelementptr inbounds float, ptr %32, i64 %40
  %42 = load float, ptr %41, align 4, !tbaa !5
  %43 = getelementptr inbounds float, ptr %34, i64 %40
  %44 = load float, ptr %43, align 4, !tbaa !5
  %45 = tail call float @llvm.fmuladd.f32(float %42, float %44, float %39)
  %46 = or disjoint i64 %.042.us.us.us, 2
  %47 = getelementptr inbounds float, ptr %32, i64 %46
  %48 = load float, ptr %47, align 4, !tbaa !5
  %49 = getelementptr inbounds float, ptr %34, i64 %46
  %50 = load float, ptr %49, align 4, !tbaa !5
  %51 = tail call float @llvm.fmuladd.f32(float %48, float %50, float %45)
  %52 = or disjoint i64 %.042.us.us.us, 3
  %53 = getelementptr inbounds float, ptr %32, i64 %52
  %54 = load float, ptr %53, align 4, !tbaa !5
  %55 = getelementptr inbounds float, ptr %34, i64 %52
  %56 = load float, ptr %55, align 4, !tbaa !5
  %57 = tail call float @llvm.fmuladd.f32(float %54, float %56, float %51)
  %58 = add nuw i64 %.042.us.us.us, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge.us.us.us.unr-lcssa, label %.lr.ph43.us.us.us.new, !llvm.loop !14

._crit_edge.us.us.us.unr-lcssa:                   ; preds = %.lr.ph43.us.us.us.new, %.lr.ph43.us.us.us
  %.lcssa.ph = phi float [ poison, %.lr.ph43.us.us.us ], [ %57, %.lr.ph43.us.us.us.new ]
  %.042.us.us.us.unr = phi i64 [ 0, %.lr.ph43.us.us.us ], [ %58, %.lr.ph43.us.us.us.new ]
  %.03541.us.us.us.unr = phi float [ 0.000000e+00, %.lr.ph43.us.us.us ], [ %57, %.lr.ph43.us.us.us.new ]
  br i1 %lcmp.mod.not, label %._crit_edge.us.us.us, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge.us.us.us.unr-lcssa, %.epil.preheader
  %.042.us.us.us.epil = phi i64 [ %64, %.epil.preheader ], [ %.042.us.us.us.unr, %._crit_edge.us.us.us.unr-lcssa ]
  %.03541.us.us.us.epil = phi float [ %63, %.epil.preheader ], [ %.03541.us.us.us.unr, %._crit_edge.us.us.us.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge.us.us.us.unr-lcssa ]
  %59 = getelementptr inbounds float, ptr %32, i64 %.042.us.us.us.epil
  %60 = load float, ptr %59, align 4, !tbaa !5
  %61 = getelementptr inbounds float, ptr %34, i64 %.042.us.us.us.epil
  %62 = load float, ptr %61, align 4, !tbaa !5
  %63 = tail call float @llvm.fmuladd.f32(float %60, float %62, float %.03541.us.us.us.epil)
  %64 = add nuw i64 %.042.us.us.us.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge.us.us.us, label %.epil.preheader, !llvm.loop !15

._crit_edge.us.us.us:                             ; preds = %.epil.preheader, %._crit_edge.us.us.us.unr-lcssa
  %.lcssa = phi float [ %.lcssa.ph, %._crit_edge.us.us.us.unr-lcssa ], [ %63, %.epil.preheader ]
  %65 = load float, ptr %3, align 4, !tbaa !5
  %66 = getelementptr inbounds float, ptr %21, i64 %.03744.us.us.us
  %67 = load float, ptr %66, align 4, !tbaa !5
  %68 = tail call float @llvm.fmuladd.f32(float %.lcssa, float %65, float %67)
  store float %68, ptr %66, align 4, !tbaa !5
  %69 = add nuw i64 %.03744.us.us.us, 1
  %exitcond69.not = icmp eq i64 %69, %1
  br i1 %exitcond69.not, label %._crit_edge46.split.us.us.us, label %.lr.ph43.us.us.us, !llvm.loop !17

._crit_edge46.split.us.us.us:                     ; preds = %._crit_edge.us.us.us
  %70 = add nuw i64 %.03647.us.us, 1
  %exitcond70.not = icmp eq i64 %70, %0
  br i1 %exitcond70.not, label %._crit_edge, label %.lr.ph.us.us.preheader, !llvm.loop !18

.lr.ph.us.us60:                                   ; preds = %.lr.ph.us.us60.preheader, %._crit_edge46.split.us50.us
  %.03647.us.us57 = phi i64 [ %102, %._crit_edge46.split.us50.us ], [ 0, %.lr.ph.us.us60.preheader ]
  %71 = mul i64 %.03647.us.us57, %10
  %72 = getelementptr inbounds float, ptr %9, i64 %71
  br i1 %min.iters.check98, label %scalar.ph97.preheader, label %vector.body103

scalar.ph97.preheader:                            ; preds = %middle.block96, %.lr.ph.us.us60
  %.03840.us.us58.ph = phi i64 [ 0, %.lr.ph.us.us60 ], [ %n.vec101, %middle.block96 ]
  br label %scalar.ph97

vector.body103:                                   ; preds = %.lr.ph.us.us60, %vector.body103
  %index104 = phi i64 [ %index.next109, %vector.body103 ], [ 0, %.lr.ph.us.us60 ]
  %73 = getelementptr inbounds float, ptr %72, i64 %index104
  %74 = getelementptr inbounds i8, ptr %73, i64 16
  %wide.load105 = load <4 x float>, ptr %73, align 4, !tbaa !5
  %wide.load106 = load <4 x float>, ptr %74, align 4, !tbaa !5
  %75 = fmul <4 x float> %broadcast.splat108, %wide.load105
  %76 = fmul <4 x float> %broadcast.splat108, %wide.load106
  store <4 x float> %75, ptr %73, align 4, !tbaa !5
  store <4 x float> %76, ptr %74, align 4, !tbaa !5
  %index.next109 = add nuw i64 %index104, 8
  %77 = icmp eq i64 %index.next109, %n.vec101
  br i1 %77, label %middle.block96, label %vector.body103, !llvm.loop !19

middle.block96:                                   ; preds = %vector.body103
  br i1 %cmp.n110, label %..preheader_crit_edge.us.us61.preheader, label %scalar.ph97.preheader

..preheader_crit_edge.us.us61:                    ; preds = %..preheader_crit_edge.us.us61, %..preheader_crit_edge.us.us61.preheader111.new
  %.03744.us49.us = phi i64 [ %.03744.us49.us.unr, %..preheader_crit_edge.us.us61.preheader111.new ], [ %85, %..preheader_crit_edge.us.us61 ]
  %78 = load float, ptr %3, align 4, !tbaa !5
  %79 = getelementptr inbounds float, ptr %72, i64 %.03744.us49.us
  %80 = load float, ptr %79, align 4, !tbaa !5
  %81 = tail call float @llvm.fmuladd.f32(float %78, float 0.000000e+00, float %80)
  store float %81, ptr %79, align 4, !tbaa !5
  %82 = load float, ptr %3, align 4, !tbaa !5
  %gep = getelementptr float, ptr %invariant.gep, i64 %.03744.us49.us
  %83 = load float, ptr %gep, align 4, !tbaa !5
  %84 = tail call float @llvm.fmuladd.f32(float %82, float 0.000000e+00, float %83)
  store float %84, ptr %gep, align 4, !tbaa !5
  %85 = add nuw i64 %.03744.us49.us, 2
  %exitcond72.not.1 = icmp eq i64 %85, %1
  br i1 %exitcond72.not.1, label %._crit_edge46.split.us50.us, label %..preheader_crit_edge.us.us61, !llvm.loop !20

scalar.ph97:                                      ; preds = %scalar.ph97.preheader, %scalar.ph97
  %.03840.us.us58 = phi i64 [ %89, %scalar.ph97 ], [ %.03840.us.us58.ph, %scalar.ph97.preheader ]
  %86 = getelementptr inbounds float, ptr %72, i64 %.03840.us.us58
  %87 = load float, ptr %86, align 4, !tbaa !5
  %88 = fmul float %12, %87
  store float %88, ptr %86, align 4, !tbaa !5
  %89 = add nuw i64 %.03840.us.us58, 1
  %exitcond71.not = icmp eq i64 %89, %1
  br i1 %exitcond71.not, label %..preheader_crit_edge.us.us61.preheader, label %scalar.ph97, !llvm.loop !21

..preheader_crit_edge.us.us61.preheader:          ; preds = %scalar.ph97, %middle.block96
  %brmerge = select i1 %min.iters.check81, i1 true, i1 %18
  br i1 %brmerge, label %..preheader_crit_edge.us.us61.preheader111, label %vector.ph82

..preheader_crit_edge.us.us61.preheader111:       ; preds = %..preheader_crit_edge.us.us61.preheader, %middle.block79
  %.03744.us49.us.ph = phi i64 [ 0, %..preheader_crit_edge.us.us61.preheader ], [ %n.vec84, %middle.block79 ]
  br i1 %lcmp.mod116.not, label %..preheader_crit_edge.us.us61.prol.loopexit, label %..preheader_crit_edge.us.us61.prol

..preheader_crit_edge.us.us61.prol:               ; preds = %..preheader_crit_edge.us.us61.preheader111
  %90 = load float, ptr %3, align 4, !tbaa !5
  %91 = getelementptr inbounds float, ptr %72, i64 %.03744.us49.us.ph
  %92 = load float, ptr %91, align 4, !tbaa !5
  %93 = tail call float @llvm.fmuladd.f32(float %90, float 0.000000e+00, float %92)
  store float %93, ptr %91, align 4, !tbaa !5
  %94 = or disjoint i64 %.03744.us49.us.ph, 1
  br label %..preheader_crit_edge.us.us61.prol.loopexit

..preheader_crit_edge.us.us61.prol.loopexit:      ; preds = %..preheader_crit_edge.us.us61.prol, %..preheader_crit_edge.us.us61.preheader111
  %.03744.us49.us.unr = phi i64 [ %.03744.us49.us.ph, %..preheader_crit_edge.us.us61.preheader111 ], [ %94, %..preheader_crit_edge.us.us61.prol ]
  %95 = icmp eq i64 %.03744.us49.us.ph, %19
  br i1 %95, label %._crit_edge46.split.us50.us, label %..preheader_crit_edge.us.us61.preheader111.new

..preheader_crit_edge.us.us61.preheader111.new:   ; preds = %..preheader_crit_edge.us.us61.prol.loopexit
  %invariant.gep = getelementptr i8, ptr %72, i64 4
  br label %..preheader_crit_edge.us.us61

vector.ph82:                                      ; preds = %..preheader_crit_edge.us.us61.preheader
  %96 = load float, ptr %3, align 4, !tbaa !5, !alias.scope !22
  %broadcast.splatinsert92 = insertelement <4 x float> poison, float %96, i64 0
  %broadcast.splat93 = shufflevector <4 x float> %broadcast.splatinsert92, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body86

vector.body86:                                    ; preds = %vector.body86, %vector.ph82
  %index87 = phi i64 [ 0, %vector.ph82 ], [ %index.next94, %vector.body86 ]
  %97 = getelementptr inbounds float, ptr %72, i64 %index87
  %98 = getelementptr inbounds i8, ptr %97, i64 16
  %wide.load88 = load <4 x float>, ptr %97, align 4, !tbaa !5, !alias.scope !25, !noalias !22
  %wide.load89 = load <4 x float>, ptr %98, align 4, !tbaa !5, !alias.scope !25, !noalias !22
  %99 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat93, <4 x float> zeroinitializer, <4 x float> %wide.load88)
  %100 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %broadcast.splat93, <4 x float> zeroinitializer, <4 x float> %wide.load89)
  store <4 x float> %99, ptr %97, align 4, !tbaa !5, !alias.scope !25, !noalias !22
  store <4 x float> %100, ptr %98, align 4, !tbaa !5, !alias.scope !25, !noalias !22
  %index.next94 = add nuw i64 %index87, 8
  %101 = icmp eq i64 %index.next94, %n.vec84
  br i1 %101, label %middle.block79, label %vector.body86, !llvm.loop !27

middle.block79:                                   ; preds = %vector.body86
  br i1 %cmp.n95, label %._crit_edge46.split.us50.us, label %..preheader_crit_edge.us.us61.preheader111

._crit_edge46.split.us50.us:                      ; preds = %..preheader_crit_edge.us.us61.prol.loopexit, %..preheader_crit_edge.us.us61, %middle.block79
  %102 = add nuw i64 %.03647.us.us57, 1
  %exitcond73.not = icmp eq i64 %102, %0
  br i1 %exitcond73.not, label %._crit_edge, label %.lr.ph.us.us60, !llvm.loop !18

._crit_edge:                                      ; preds = %._crit_edge46.split.us.us.us, %._crit_edge46.split.us50.us, %11
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x float> @llvm.fmuladd.v4f32(<4 x float>, <4 x float>, <4 x float>) #2

attributes #0 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #1 = { mustprogress nofree norecurse nosync nounwind memory(argmem: readwrite) 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 = { 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, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10, !11, !12}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!"llvm.loop.isvectorized", i32 1}
!12 = !{!"llvm.loop.unroll.runtime.disable"}
!13 = distinct !{!13, !10, !12, !11}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !10, !11, !12}
!20 = distinct !{!20, !10, !11}
!21 = distinct !{!21, !10, !12, !11}
!22 = !{!23}
!23 = distinct !{!23, !24}
!24 = distinct !{!24, !"LVerDomain"}
!25 = !{!26}
!26 = distinct !{!26, !24}
!27 = distinct !{!27, !10, !11, !12}


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