; LLVM IR from aap/librw :: src/base.ll (ZN2rw3V3d16transformVectorsEPS0_PKS0_iPKNS_6MatrixE)

; 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.rw::V3d" = type { float, float, float }
%"struct.rw::Matrix" = type { %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32, %"struct.rw::V3d", i32 }

; 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: 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) #2

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN2rw3V3d16transformVectorsEPS0_PKS0_iPKNS_6MatrixE(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3) #3 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca %"struct.rw::V3d", align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 12, ptr %10) #4
  store i32 0, ptr %9, align 4, !tbaa !9
  br label %11

11:                                               ; preds = %122, %4
  %12 = load i32, ptr %9, align 4, !tbaa !9
  %13 = load i32, ptr %7, align 4, !tbaa !9
  %14 = icmp slt i32 %12, %13
  br i1 %14, label %15, label %125

15:                                               ; preds = %11
  %16 = load ptr, ptr %6, align 8, !tbaa !5
  %17 = load i32, ptr %9, align 4, !tbaa !9
  %18 = sext i32 %17 to i64
  %19 = getelementptr inbounds %"struct.rw::V3d", ptr %16, i64 %18
  %20 = getelementptr inbounds %"struct.rw::V3d", ptr %19, i32 0, i32 0
  %21 = load float, ptr %20, align 4, !tbaa !11
  %22 = load ptr, ptr %8, align 8, !tbaa !5
  %23 = getelementptr inbounds %"struct.rw::Matrix", ptr %22, i32 0, i32 0
  %24 = getelementptr inbounds %"struct.rw::V3d", ptr %23, i32 0, i32 0
  %25 = load float, ptr %24, align 4, !tbaa !14
  %26 = load ptr, ptr %6, align 8, !tbaa !5
  %27 = load i32, ptr %9, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = getelementptr inbounds %"struct.rw::V3d", ptr %26, i64 %28
  %30 = getelementptr inbounds %"struct.rw::V3d", ptr %29, i32 0, i32 1
  %31 = load float, ptr %30, align 4, !tbaa !16
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.rw::Matrix", ptr %32, i32 0, i32 2
  %34 = getelementptr inbounds %"struct.rw::V3d", ptr %33, i32 0, i32 0
  %35 = load float, ptr %34, align 4, !tbaa !17
  %36 = fmul float %31, %35
  %37 = call float @llvm.fmuladd.f32(float %21, float %25, float %36)
  %38 = load ptr, ptr %6, align 8, !tbaa !5
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds %"struct.rw::V3d", ptr %38, i64 %40
  %42 = getelementptr inbounds %"struct.rw::V3d", ptr %41, i32 0, i32 2
  %43 = load float, ptr %42, align 4, !tbaa !18
  %44 = load ptr, ptr %8, align 8, !tbaa !5
  %45 = getelementptr inbounds %"struct.rw::Matrix", ptr %44, i32 0, i32 4
  %46 = getelementptr inbounds %"struct.rw::V3d", ptr %45, i32 0, i32 0
  %47 = load float, ptr %46, align 4, !tbaa !19
  %48 = call float @llvm.fmuladd.f32(float %43, float %47, float %37)
  %49 = getelementptr inbounds %"struct.rw::V3d", ptr %10, i32 0, i32 0
  store float %48, ptr %49, align 4, !tbaa !11
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  %51 = load i32, ptr %9, align 4, !tbaa !9
  %52 = sext i32 %51 to i64
  %53 = getelementptr inbounds %"struct.rw::V3d", ptr %50, i64 %52
  %54 = getelementptr inbounds %"struct.rw::V3d", ptr %53, i32 0, i32 0
  %55 = load float, ptr %54, align 4, !tbaa !11
  %56 = load ptr, ptr %8, align 8, !tbaa !5
  %57 = getelementptr inbounds %"struct.rw::Matrix", ptr %56, i32 0, i32 0
  %58 = getelementptr inbounds %"struct.rw::V3d", ptr %57, i32 0, i32 1
  %59 = load float, ptr %58, align 4, !tbaa !20
  %60 = load ptr, ptr %6, align 8, !tbaa !5
  %61 = load i32, ptr %9, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds %"struct.rw::V3d", ptr %60, i64 %62
  %64 = getelementptr inbounds %"struct.rw::V3d", ptr %63, i32 0, i32 1
  %65 = load float, ptr %64, align 4, !tbaa !16
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  %67 = getelementptr inbounds %"struct.rw::Matrix", ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %"struct.rw::V3d", ptr %67, i32 0, i32 1
  %69 = load float, ptr %68, align 4, !tbaa !21
  %70 = fmul float %65, %69
  %71 = call float @llvm.fmuladd.f32(float %55, float %59, float %70)
  %72 = load ptr, ptr %6, align 8, !tbaa !5
  %73 = load i32, ptr %9, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds %"struct.rw::V3d", ptr %72, i64 %74
  %76 = getelementptr inbounds %"struct.rw::V3d", ptr %75, i32 0, i32 2
  %77 = load float, ptr %76, align 4, !tbaa !18
  %78 = load ptr, ptr %8, align 8, !tbaa !5
  %79 = getelementptr inbounds %"struct.rw::Matrix", ptr %78, i32 0, i32 4
  %80 = getelementptr inbounds %"struct.rw::V3d", ptr %79, i32 0, i32 1
  %81 = load float, ptr %80, align 4, !tbaa !22
  %82 = call float @llvm.fmuladd.f32(float %77, float %81, float %71)
  %83 = getelementptr inbounds %"struct.rw::V3d", ptr %10, i32 0, i32 1
  store float %82, ptr %83, align 4, !tbaa !16
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i32, ptr %9, align 4, !tbaa !9
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds %"struct.rw::V3d", ptr %84, i64 %86
  %88 = getelementptr inbounds %"struct.rw::V3d", ptr %87, i32 0, i32 0
  %89 = load float, ptr %88, align 4, !tbaa !11
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds %"struct.rw::Matrix", ptr %90, i32 0, i32 0
  %92 = getelementptr inbounds %"struct.rw::V3d", ptr %91, i32 0, i32 2
  %93 = load float, ptr %92, align 4, !tbaa !23
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = load i32, ptr %9, align 4, !tbaa !9
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds %"struct.rw::V3d", ptr %94, i64 %96
  %98 = getelementptr inbounds %"struct.rw::V3d", ptr %97, i32 0, i32 1
  %99 = load float, ptr %98, align 4, !tbaa !16
  %100 = load ptr, ptr %8, align 8, !tbaa !5
  %101 = getelementptr inbounds %"struct.rw::Matrix", ptr %100, i32 0, i32 2
  %102 = getelementptr inbounds %"struct.rw::V3d", ptr %101, i32 0, i32 2
  %103 = load float, ptr %102, align 4, !tbaa !24
  %104 = fmul float %99, %103
  %105 = call float @llvm.fmuladd.f32(float %89, float %93, float %104)
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load i32, ptr %9, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds %"struct.rw::V3d", ptr %106, i64 %108
  %110 = getelementptr inbounds %"struct.rw::V3d", ptr %109, i32 0, i32 2
  %111 = load float, ptr %110, align 4, !tbaa !18
  %112 = load ptr, ptr %8, align 8, !tbaa !5
  %113 = getelementptr inbounds %"struct.rw::Matrix", ptr %112, i32 0, i32 4
  %114 = getelementptr inbounds %"struct.rw::V3d", ptr %113, i32 0, i32 2
  %115 = load float, ptr %114, align 4, !tbaa !25
  %116 = call float @llvm.fmuladd.f32(float %111, float %115, float %105)
  %117 = getelementptr inbounds %"struct.rw::V3d", ptr %10, i32 0, i32 2
  store float %116, ptr %117, align 4, !tbaa !18
  %118 = load ptr, ptr %5, align 8, !tbaa !5
  %119 = load i32, ptr %9, align 4, !tbaa !9
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds %"struct.rw::V3d", ptr %118, i64 %120
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %121, ptr align 4 %10, i64 12, i1 false), !tbaa.struct !26
  br label %122

122:                                              ; preds = %15
  %123 = load i32, ptr %9, align 4, !tbaa !9
  %124 = add nsw i32 %123, 1
  store i32 %124, ptr %9, align 4, !tbaa !9
  br label %11, !llvm.loop !28

125:                                              ; preds = %11
  call void @llvm.lifetime.end.p0(i64 12, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  ret void
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #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++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN2rw3V3dE", !13, i64 0, !13, i64 4, !13, i64 8}
!13 = !{!"float", !7, i64 0}
!14 = !{!15, !13, i64 0}
!15 = !{!"_ZTSN2rw6MatrixE", !12, i64 0, !10, i64 12, !12, i64 16, !10, i64 28, !12, i64 32, !10, i64 44, !12, i64 48, !10, i64 60}
!16 = !{!12, !13, i64 4}
!17 = !{!15, !13, i64 16}
!18 = !{!12, !13, i64 8}
!19 = !{!15, !13, i64 32}
!20 = !{!15, !13, i64 4}
!21 = !{!15, !13, i64 20}
!22 = !{!15, !13, i64 36}
!23 = !{!15, !13, i64 8}
!24 = !{!15, !13, i64 24}
!25 = !{!15, !13, i64 40}
!26 = !{i64 0, i64 4, !27, i64 4, i64 4, !27, i64 8, i64 4, !27}
!27 = !{!13, !13, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"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"

%"struct.rw::V3d" = type { float, float, float }

; 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 @_ZN2rw3V3d16transformVectorsEPS0_PKS0_iPKNS_6MatrixE(ptr nocapture noundef writeonly %0, ptr nocapture noundef readonly %1, i32 noundef %2, ptr nocapture noundef readonly %3) local_unnamed_addr #1 align 2 {
  %5 = icmp sgt i32 %2, 0
  br i1 %5, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %4
  %6 = getelementptr inbounds i8, ptr %3, i64 16
  %7 = getelementptr inbounds i8, ptr %3, i64 32
  %8 = getelementptr inbounds i8, ptr %3, i64 4
  %9 = getelementptr inbounds i8, ptr %3, i64 20
  %10 = getelementptr inbounds i8, ptr %3, i64 36
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  %12 = getelementptr inbounds i8, ptr %3, i64 24
  %13 = getelementptr inbounds i8, ptr %3, i64 40
  %wide.trip.count = zext nneg i32 %2 to i64
  %min.iters.check = icmp ult i32 %2, 4
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %14 = mul nuw nsw i64 %wide.trip.count, 12
  %scevgep = getelementptr i8, ptr %0, i64 %14
  %scevgep33 = getelementptr i8, ptr %1, i64 %14
  %scevgep34 = getelementptr i8, ptr %3, i64 44
  %bound0 = icmp ugt ptr %scevgep33, %0
  %bound1 = icmp ugt ptr %scevgep, %1
  %found.conflict = and i1 %bound0, %bound1
  %bound035 = icmp ugt ptr %scevgep34, %0
  %bound136 = icmp ugt ptr %scevgep, %3
  %found.conflict37 = and i1 %bound035, %bound136
  %conflict.rdx = or i1 %found.conflict, %found.conflict37
  br i1 %conflict.rdx, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483644
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %15 = or disjoint i64 %index, 1
  %16 = or disjoint i64 %index, 2
  %17 = or disjoint i64 %index, 3
  %18 = getelementptr inbounds %"struct.rw::V3d", ptr %1, i64 %index
  %19 = getelementptr inbounds %"struct.rw::V3d", ptr %1, i64 %15
  %20 = getelementptr inbounds %"struct.rw::V3d", ptr %1, i64 %16
  %21 = getelementptr inbounds %"struct.rw::V3d", ptr %1, i64 %17
  %22 = load float, ptr %18, align 4, !tbaa !5, !alias.scope !10
  %23 = load float, ptr %19, align 4, !tbaa !5, !alias.scope !10
  %24 = load float, ptr %20, align 4, !tbaa !5, !alias.scope !10
  %25 = load float, ptr %21, align 4, !tbaa !5, !alias.scope !10
  %26 = insertelement <4 x float> poison, float %22, i64 0
  %27 = insertelement <4 x float> %26, float %23, i64 1
  %28 = insertelement <4 x float> %27, float %24, i64 2
  %29 = insertelement <4 x float> %28, float %25, i64 3
  %30 = load float, ptr %3, align 4, !tbaa !13, !alias.scope !16
  %broadcast.splatinsert38 = insertelement <4 x float> poison, float %30, i64 0
  %broadcast.splat39 = shufflevector <4 x float> %broadcast.splatinsert38, <4 x float> poison, <4 x i32> zeroinitializer
  %31 = getelementptr inbounds i8, ptr %18, i64 4
  %32 = getelementptr inbounds i8, ptr %19, i64 4
  %33 = getelementptr inbounds i8, ptr %20, i64 4
  %34 = getelementptr inbounds i8, ptr %21, i64 4
  %35 = load float, ptr %31, align 4, !tbaa !18, !alias.scope !10
  %36 = load float, ptr %32, align 4, !tbaa !18, !alias.scope !10
  %37 = load float, ptr %33, align 4, !tbaa !18, !alias.scope !10
  %38 = load float, ptr %34, align 4, !tbaa !18, !alias.scope !10
  %39 = insertelement <4 x float> poison, float %35, i64 0
  %40 = insertelement <4 x float> %39, float %36, i64 1
  %41 = insertelement <4 x float> %40, float %37, i64 2
  %42 = insertelement <4 x float> %41, float %38, i64 3
  %43 = load float, ptr %6, align 4, !tbaa !19, !alias.scope !16
  %broadcast.splatinsert = insertelement <4 x float> poison, float %43, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  %44 = fmul <4 x float> %42, %broadcast.splat
  %45 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %29, <4 x float> %broadcast.splat39, <4 x float> %44)
  %46 = getelementptr inbounds i8, ptr %18, i64 8
  %47 = getelementptr inbounds i8, ptr %19, i64 8
  %48 = getelementptr inbounds i8, ptr %20, i64 8
  %49 = getelementptr inbounds i8, ptr %21, i64 8
  %50 = load float, ptr %46, align 4, !tbaa !20, !alias.scope !10
  %51 = load float, ptr %47, align 4, !tbaa !20, !alias.scope !10
  %52 = load float, ptr %48, align 4, !tbaa !20, !alias.scope !10
  %53 = load float, ptr %49, align 4, !tbaa !20, !alias.scope !10
  %54 = insertelement <4 x float> poison, float %50, i64 0
  %55 = insertelement <4 x float> %54, float %51, i64 1
  %56 = insertelement <4 x float> %55, float %52, i64 2
  %57 = insertelement <4 x float> %56, float %53, i64 3
  %58 = load float, ptr %7, align 4, !tbaa !21, !alias.scope !16
  %broadcast.splatinsert40 = insertelement <4 x float> poison, float %58, i64 0
  %broadcast.splat41 = shufflevector <4 x float> %broadcast.splatinsert40, <4 x float> poison, <4 x i32> zeroinitializer
  %59 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %57, <4 x float> %broadcast.splat41, <4 x float> %45)
  %60 = load float, ptr %8, align 4, !tbaa !22, !alias.scope !16
  %broadcast.splatinsert44 = insertelement <4 x float> poison, float %60, i64 0
  %broadcast.splat45 = shufflevector <4 x float> %broadcast.splatinsert44, <4 x float> poison, <4 x i32> zeroinitializer
  %61 = load float, ptr %9, align 4, !tbaa !23, !alias.scope !16
  %broadcast.splatinsert42 = insertelement <4 x float> poison, float %61, i64 0
  %broadcast.splat43 = shufflevector <4 x float> %broadcast.splatinsert42, <4 x float> poison, <4 x i32> zeroinitializer
  %62 = fmul <4 x float> %42, %broadcast.splat43
  %63 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %29, <4 x float> %broadcast.splat45, <4 x float> %62)
  %64 = load float, ptr %10, align 4, !tbaa !24, !alias.scope !16
  %broadcast.splatinsert46 = insertelement <4 x float> poison, float %64, i64 0
  %broadcast.splat47 = shufflevector <4 x float> %broadcast.splatinsert46, <4 x float> poison, <4 x i32> zeroinitializer
  %65 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %57, <4 x float> %broadcast.splat47, <4 x float> %63)
  %66 = load float, ptr %11, align 4, !tbaa !25, !alias.scope !16
  %broadcast.splatinsert50 = insertelement <4 x float> poison, float %66, i64 0
  %broadcast.splat51 = shufflevector <4 x float> %broadcast.splatinsert50, <4 x float> poison, <4 x i32> zeroinitializer
  %67 = load float, ptr %12, align 4, !tbaa !26, !alias.scope !16
  %broadcast.splatinsert48 = insertelement <4 x float> poison, float %67, i64 0
  %broadcast.splat49 = shufflevector <4 x float> %broadcast.splatinsert48, <4 x float> poison, <4 x i32> zeroinitializer
  %68 = fmul <4 x float> %42, %broadcast.splat49
  %69 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %29, <4 x float> %broadcast.splat51, <4 x float> %68)
  %70 = load float, ptr %13, align 4, !tbaa !27, !alias.scope !16
  %broadcast.splatinsert52 = insertelement <4 x float> poison, float %70, i64 0
  %broadcast.splat53 = shufflevector <4 x float> %broadcast.splatinsert52, <4 x float> poison, <4 x i32> zeroinitializer
  %71 = tail call <4 x float> @llvm.fmuladd.v4f32(<4 x float> %57, <4 x float> %broadcast.splat53, <4 x float> %69)
  %72 = getelementptr inbounds %"struct.rw::V3d", ptr %0, i64 %index
  %73 = shufflevector <4 x float> %59, <4 x float> %65, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7>
  %74 = shufflevector <4 x float> %71, <4 x float> poison, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 poison, i32 poison, i32 poison, i32 poison>
  %interleaved.vec = shufflevector <8 x float> %73, <8 x float> %74, <12 x i32> <i32 0, i32 4, i32 8, i32 1, i32 5, i32 9, i32 2, i32 6, i32 10, i32 3, i32 7, i32 11>
  store <12 x float> %interleaved.vec, ptr %72, align 4, !tbaa !28
  %index.next = add nuw i64 %index, 4
  %75 = icmp eq i64 %index.next, %n.vec
  br i1 %75, label %middle.block, label %vector.body, !llvm.loop !29

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  br label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.preheader, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %scalar.ph ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %76 = getelementptr inbounds %"struct.rw::V3d", ptr %1, i64 %indvars.iv
  %77 = load float, ptr %76, align 4, !tbaa !5
  %78 = getelementptr inbounds i8, ptr %76, i64 4
  %79 = load float, ptr %78, align 4, !tbaa !18
  %80 = getelementptr inbounds i8, ptr %76, i64 8
  %81 = load float, ptr %80, align 4, !tbaa !20
  %82 = load float, ptr %11, align 4, !tbaa !25
  %83 = load float, ptr %12, align 4, !tbaa !26
  %84 = fmul float %79, %83
  %85 = tail call float @llvm.fmuladd.f32(float %77, float %82, float %84)
  %86 = load float, ptr %13, align 4, !tbaa !27
  %87 = tail call float @llvm.fmuladd.f32(float %81, float %86, float %85)
  %88 = getelementptr inbounds %"struct.rw::V3d", ptr %0, i64 %indvars.iv
  %89 = load <2 x float>, ptr %3, align 4, !tbaa !28
  %90 = load <2 x float>, ptr %6, align 4, !tbaa !28
  %91 = insertelement <2 x float> poison, float %79, i64 0
  %92 = shufflevector <2 x float> %91, <2 x float> poison, <2 x i32> zeroinitializer
  %93 = fmul <2 x float> %92, %90
  %94 = insertelement <2 x float> poison, float %77, i64 0
  %95 = shufflevector <2 x float> %94, <2 x float> poison, <2 x i32> zeroinitializer
  %96 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %95, <2 x float> %89, <2 x float> %93)
  %97 = load <2 x float>, ptr %7, align 4, !tbaa !28
  %98 = insertelement <2 x float> poison, float %81, i64 0
  %99 = shufflevector <2 x float> %98, <2 x float> poison, <2 x i32> zeroinitializer
  %100 = tail call <2 x float> @llvm.fmuladd.v2f32(<2 x float> %99, <2 x float> %97, <2 x float> %96)
  store <2 x float> %100, ptr %88, align 4, !tbaa !28
  %.sroa.5.0..sroa_idx = getelementptr inbounds i8, ptr %88, i64 8
  store float %87, ptr %.sroa.5.0..sroa_idx, align 4, !tbaa !28
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %scalar.ph, !llvm.loop !33

._crit_edge:                                      ; preds = %scalar.ph, %middle.block, %4
  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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <2 x float> @llvm.fmuladd.v2f32(<2 x float>, <2 x float>, <2 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, !7, i64 0}
!6 = !{!"_ZTSN2rw3V3dE", !7, i64 0, !7, i64 4, !7, i64 8}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11}
!11 = distinct !{!11, !12}
!12 = distinct !{!12, !"LVerDomain"}
!13 = !{!14, !7, i64 0}
!14 = !{!"_ZTSN2rw6MatrixE", !6, i64 0, !15, i64 12, !6, i64 16, !15, i64 28, !6, i64 32, !15, i64 44, !6, i64 48, !15, i64 60}
!15 = !{!"int", !8, i64 0}
!16 = !{!17}
!17 = distinct !{!17, !12}
!18 = !{!6, !7, i64 4}
!19 = !{!14, !7, i64 16}
!20 = !{!6, !7, i64 8}
!21 = !{!14, !7, i64 32}
!22 = !{!14, !7, i64 4}
!23 = !{!14, !7, i64 20}
!24 = !{!14, !7, i64 36}
!25 = !{!14, !7, i64 8}
!26 = !{!14, !7, i64 24}
!27 = !{!14, !7, i64 40}
!28 = !{!7, !7, i64 0}
!29 = distinct !{!29, !30, !31, !32}
!30 = !{!"llvm.loop.mustprogress"}
!31 = !{!"llvm.loop.isvectorized", i32 1}
!32 = !{!"llvm.loop.unroll.runtime.disable"}
!33 = distinct !{!33, !30, !31}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass