; LLVM IR from glaretechnologies/substrata :: opus/opus-1.3.1/src (mlp)

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

; Function Attrs: nounwind uwtable
define dso_local void @compute_dense(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, 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 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #3
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds %struct.DenseLayer, ptr %11, i32 0, i32 2
  %13 = load i32, ptr %12, align 8, !tbaa !9
  store i32 %13, ptr %9, align 4, !tbaa !12
  %14 = load ptr, ptr %4, align 8, !tbaa !5
  %15 = getelementptr inbounds %struct.DenseLayer, ptr %14, i32 0, i32 3
  %16 = load i32, ptr %15, align 4, !tbaa !13
  store i32 %16, ptr %8, align 4, !tbaa !12
  %17 = load i32, ptr %8, align 4, !tbaa !12
  store i32 %17, ptr %10, align 4, !tbaa !12
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %18

18:                                               ; preds = %35, %3
  %19 = load i32, ptr %7, align 4, !tbaa !12
  %20 = load i32, ptr %8, align 4, !tbaa !12
  %21 = icmp slt i32 %19, %20
  br i1 %21, label %22, label %38

22:                                               ; preds = %18
  %23 = load ptr, ptr %4, align 8, !tbaa !5
  %24 = getelementptr inbounds %struct.DenseLayer, ptr %23, i32 0, i32 0
  %25 = load ptr, ptr %24, align 8, !tbaa !14
  %26 = load i32, ptr %7, align 4, !tbaa !12
  %27 = sext i32 %26 to i64
  %28 = getelementptr inbounds i8, ptr %25, i64 %27
  %29 = load i8, ptr %28, align 1, !tbaa !15
  %30 = sitofp i8 %29 to float
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = load i32, ptr %7, align 4, !tbaa !12
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds float, ptr %31, i64 %33
  store float %30, ptr %34, align 4, !tbaa !16
  br label %35

35:                                               ; preds = %22
  %36 = load i32, ptr %7, align 4, !tbaa !12
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %7, align 4, !tbaa !12
  br label %18, !llvm.loop !18

38:                                               ; preds = %18
  %39 = load ptr, ptr %5, align 8, !tbaa !5
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.DenseLayer, ptr %40, i32 0, i32 1
  %42 = load ptr, ptr %41, align 8, !tbaa !20
  %43 = load i32, ptr %8, align 4, !tbaa !12
  %44 = load i32, ptr %9, align 4, !tbaa !12
  %45 = load i32, ptr %10, align 4, !tbaa !12
  %46 = load ptr, ptr %6, align 8, !tbaa !5
  call void @gemm_accum(ptr noundef %39, ptr noundef %42, i32 noundef %43, i32 noundef %44, i32 noundef %45, ptr noundef %46)
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %47

47:                                               ; preds = %58, %38
  %48 = load i32, ptr %7, align 4, !tbaa !12
  %49 = load i32, ptr %8, align 4, !tbaa !12
  %50 = icmp slt i32 %48, %49
  br i1 %50, label %51, label %61

51:                                               ; preds = %47
  %52 = load ptr, ptr %5, align 8, !tbaa !5
  %53 = load i32, ptr %7, align 4, !tbaa !12
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds float, ptr %52, i64 %54
  %56 = load float, ptr %55, align 4, !tbaa !16
  %57 = fmul float %56, 7.812500e-03
  store float %57, ptr %55, align 4, !tbaa !16
  br label %58

58:                                               ; preds = %51
  %59 = load i32, ptr %7, align 4, !tbaa !12
  %60 = add nsw i32 %59, 1
  store i32 %60, ptr %7, align 4, !tbaa !12
  br label %47, !llvm.loop !21

61:                                               ; preds = %47
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.DenseLayer, ptr %62, i32 0, i32 4
  %64 = load i32, ptr %63, align 8, !tbaa !22
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %86

66:                                               ; preds = %61
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %67

67:                                               ; preds = %82, %66
  %68 = load i32, ptr %7, align 4, !tbaa !12
  %69 = load i32, ptr %8, align 4, !tbaa !12
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %71, label %85

71:                                               ; preds = %67
  %72 = load ptr, ptr %5, align 8, !tbaa !5
  %73 = load i32, ptr %7, align 4, !tbaa !12
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds float, ptr %72, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !16
  %77 = call float @sigmoid_approx(float noundef %76)
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load i32, ptr %7, align 4, !tbaa !12
  %80 = sext i32 %79 to i64
  %81 = getelementptr inbounds float, ptr %78, i64 %80
  store float %77, ptr %81, align 4, !tbaa !16
  br label %82

82:                                               ; preds = %71
  %83 = load i32, ptr %7, align 4, !tbaa !12
  %84 = add nsw i32 %83, 1
  store i32 %84, ptr %7, align 4, !tbaa !12
  br label %67, !llvm.loop !23

85:                                               ; preds = %67
  br label %106

86:                                               ; preds = %61
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %87

87:                                               ; preds = %102, %86
  %88 = load i32, ptr %7, align 4, !tbaa !12
  %89 = load i32, ptr %8, align 4, !tbaa !12
  %90 = icmp slt i32 %88, %89
  br i1 %90, label %91, label %105

91:                                               ; preds = %87
  %92 = load ptr, ptr %5, align 8, !tbaa !5
  %93 = load i32, ptr %7, align 4, !tbaa !12
  %94 = sext i32 %93 to i64
  %95 = getelementptr inbounds float, ptr %92, i64 %94
  %96 = load float, ptr %95, align 4, !tbaa !16
  %97 = call float @tansig_approx(float noundef %96)
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load i32, ptr %7, align 4, !tbaa !12
  %100 = sext i32 %99 to i64
  %101 = getelementptr inbounds float, ptr %98, i64 %100
  store float %97, ptr %101, align 4, !tbaa !16
  br label %102

102:                                              ; preds = %91
  %103 = load i32, ptr %7, align 4, !tbaa !12
  %104 = add nsw i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !12
  br label %87, !llvm.loop !24

105:                                              ; preds = %87
  br label %106

106:                                              ; preds = %105, %85
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #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: nounwind uwtable
declare hidden void @gemm_accum(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sigmoid_approx(float noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @tansig_approx(float noundef) #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 = { inlinehint 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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 20, !11, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 20}
!14 = !{!10, !6, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 8}
!21 = distinct !{!21, !19}
!22 = !{!10, !11, i64 24}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !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: nounwind uwtable
define dso_local void @compute_dense(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %0, i64 16
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 20
  %7 = load i32, ptr %6, align 4, !tbaa !11
  %8 = icmp sgt i32 %7, 0
  br i1 %8, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %3
  %9 = getelementptr inbounds i8, ptr %0, i64 8
  %10 = load ptr, ptr %9, align 8, !tbaa !12
  tail call void @gemm_accum(ptr noundef %1, ptr noundef %10, i32 noundef %7, i32 noundef %5, i32 noundef %7, ptr noundef %2)
  br label %._crit_edge42

.lr.ph:                                           ; preds = %3
  %11 = load ptr, ptr %0, align 8, !tbaa !13
  %wide.trip.count = zext nneg i32 %7 to i64
  %min.iters.check = icmp ult i32 %7, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %12 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %1, i64 %12
  %scevgep66 = getelementptr i8, ptr %11, i64 %wide.trip.count
  %bound0 = icmp ugt ptr %scevgep66, %1
  %bound1 = icmp ult ptr %11, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %13 = getelementptr inbounds i8, ptr %11, i64 %index
  %14 = getelementptr inbounds i8, ptr %13, i64 4
  %wide.load = load <4 x i8>, ptr %13, align 1, !tbaa !14, !alias.scope !15
  %wide.load67 = load <4 x i8>, ptr %14, align 1, !tbaa !14, !alias.scope !15
  %15 = sitofp <4 x i8> %wide.load to <4 x float>
  %16 = sitofp <4 x i8> %wide.load67 to <4 x float>
  %17 = getelementptr inbounds float, ptr %1, i64 %index
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  store <4 x float> %15, ptr %17, align 4, !tbaa !18, !alias.scope !20, !noalias !15
  store <4 x float> %16, ptr %18, align 4, !tbaa !18, !alias.scope !20, !noalias !15
  %index.next = add nuw i64 %index, 8
  %19 = icmp eq i64 %index.next, %n.vec
  br i1 %19, label %middle.block, label %vector.body, !llvm.loop !22

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 ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %20 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv.prol
  %21 = load i8, ptr %20, align 1, !tbaa !14
  %22 = sitofp i8 %21 to float
  %23 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.prol
  store float %22, ptr %23, align 4, !tbaa !18
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !26

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %24 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %25 = icmp ugt i64 %24, -4
  br i1 %25, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %26 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv
  %27 = load i8, ptr %26, align 1, !tbaa !14
  %28 = sitofp i8 %27 to float
  %29 = getelementptr inbounds float, ptr %1, i64 %indvars.iv
  store float %28, ptr %29, align 4, !tbaa !18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %30 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv.next
  %31 = load i8, ptr %30, align 1, !tbaa !14
  %32 = sitofp i8 %31 to float
  %33 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next
  store float %32, ptr %33, align 4, !tbaa !18
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %34 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv.next.1
  %35 = load i8, ptr %34, align 1, !tbaa !14
  %36 = sitofp i8 %35 to float
  %37 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next.1
  store float %36, ptr %37, align 4, !tbaa !18
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %38 = getelementptr inbounds i8, ptr %11, i64 %indvars.iv.next.2
  %39 = load i8, ptr %38, align 1, !tbaa !14
  %40 = sitofp i8 %39 to float
  %41 = getelementptr inbounds float, ptr %1, i64 %indvars.iv.next.2
  store float %40, ptr %41, align 4, !tbaa !18
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !28

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %42 = getelementptr inbounds i8, ptr %0, i64 8
  %43 = load ptr, ptr %42, align 8, !tbaa !12
  tail call void @gemm_accum(ptr noundef nonnull %1, ptr noundef %43, i32 noundef %7, i32 noundef %5, i32 noundef %7, ptr noundef %2)
  br i1 %8, label %.lr.ph41.preheader, label %._crit_edge42

.lr.ph41.preheader:                               ; preds = %._crit_edge
  %wide.trip.count52 = zext nneg i32 %7 to i64
  %min.iters.check70 = icmp ult i32 %7, 8
  br i1 %min.iters.check70, label %.lr.ph41.preheader82, label %vector.ph71

vector.ph71:                                      ; preds = %.lr.ph41.preheader
  %n.vec73 = and i64 %wide.trip.count, 2147483640
  br label %vector.body75

vector.body75:                                    ; preds = %vector.body75, %vector.ph71
  %index76 = phi i64 [ 0, %vector.ph71 ], [ %index.next79, %vector.body75 ]
  %44 = getelementptr inbounds float, ptr %1, i64 %index76
  %45 = getelementptr inbounds i8, ptr %44, i64 16
  %wide.load77 = load <4 x float>, ptr %44, align 4, !tbaa !18
  %wide.load78 = load <4 x float>, ptr %45, align 4, !tbaa !18
  %46 = fmul <4 x float> %wide.load77, <float 7.812500e-03, float 7.812500e-03, float 7.812500e-03, float 7.812500e-03>
  %47 = fmul <4 x float> %wide.load78, <float 7.812500e-03, float 7.812500e-03, float 7.812500e-03, float 7.812500e-03>
  store <4 x float> %46, ptr %44, align 4, !tbaa !18
  store <4 x float> %47, ptr %45, align 4, !tbaa !18
  %index.next79 = add nuw i64 %index76, 8
  %48 = icmp eq i64 %index.next79, %n.vec73
  br i1 %48, label %middle.block68, label %vector.body75, !llvm.loop !29

middle.block68:                                   ; preds = %vector.body75
  %cmp.n80 = icmp eq i64 %n.vec73, %wide.trip.count
  br i1 %cmp.n80, label %._crit_edge42, label %.lr.ph41.preheader82

.lr.ph41.preheader82:                             ; preds = %middle.block68, %.lr.ph41.preheader
  %indvars.iv49.ph = phi i64 [ 0, %.lr.ph41.preheader ], [ %n.vec73, %middle.block68 ]
  br label %.lr.ph41

.lr.ph41:                                         ; preds = %.lr.ph41.preheader82, %.lr.ph41
  %indvars.iv49 = phi i64 [ %indvars.iv.next50, %.lr.ph41 ], [ %indvars.iv49.ph, %.lr.ph41.preheader82 ]
  %49 = getelementptr inbounds float, ptr %1, i64 %indvars.iv49
  %50 = load float, ptr %49, align 4, !tbaa !18
  %51 = fmul float %50, 7.812500e-03
  store float %51, ptr %49, align 4, !tbaa !18
  %indvars.iv.next50 = add nuw nsw i64 %indvars.iv49, 1
  %exitcond53.not = icmp eq i64 %indvars.iv.next50, %wide.trip.count52
  br i1 %exitcond53.not, label %._crit_edge42, label %.lr.ph41, !llvm.loop !30

._crit_edge42:                                    ; preds = %.lr.ph41, %middle.block68, %._crit_edge.thread, %._crit_edge
  %52 = getelementptr inbounds i8, ptr %0, i64 24
  %53 = load i32, ptr %52, align 8, !tbaa !31
  %.not = icmp eq i32 %53, 0
  br i1 %.not, label %.preheader, label %.preheader36

.preheader36:                                     ; preds = %._crit_edge42
  br i1 %8, label %.lr.ph44.preheader, label %.loopexit

.lr.ph44.preheader:                               ; preds = %.preheader36
  %wide.trip.count57 = zext nneg i32 %7 to i64
  br label %.lr.ph44

.preheader:                                       ; preds = %._crit_edge42
  br i1 %8, label %.lr.ph46.preheader, label %.loopexit

.lr.ph46.preheader:                               ; preds = %.preheader
  %wide.trip.count62 = zext nneg i32 %7 to i64
  br label %.lr.ph46

.lr.ph44:                                         ; preds = %.lr.ph44.preheader, %.lr.ph44
  %indvars.iv54 = phi i64 [ 0, %.lr.ph44.preheader ], [ %indvars.iv.next55, %.lr.ph44 ]
  %54 = getelementptr inbounds float, ptr %1, i64 %indvars.iv54
  %55 = load float, ptr %54, align 4, !tbaa !18
  %56 = tail call float @sigmoid_approx(float noundef %55)
  store float %56, ptr %54, align 4, !tbaa !18
  %indvars.iv.next55 = add nuw nsw i64 %indvars.iv54, 1
  %exitcond58.not = icmp eq i64 %indvars.iv.next55, %wide.trip.count57
  br i1 %exitcond58.not, label %.loopexit, label %.lr.ph44, !llvm.loop !32

.lr.ph46:                                         ; preds = %.lr.ph46.preheader, %.lr.ph46
  %indvars.iv59 = phi i64 [ 0, %.lr.ph46.preheader ], [ %indvars.iv.next60, %.lr.ph46 ]
  %57 = getelementptr inbounds float, ptr %1, i64 %indvars.iv59
  %58 = load float, ptr %57, align 4, !tbaa !18
  %59 = tail call float @tansig_approx(float noundef %58)
  store float %59, ptr %57, align 4, !tbaa !18
  %indvars.iv.next60 = add nuw nsw i64 %indvars.iv59, 1
  %exitcond63.not = icmp eq i64 %indvars.iv.next60, %wide.trip.count62
  br i1 %exitcond63.not, label %.loopexit, label %.lr.ph46, !llvm.loop !33

.loopexit:                                        ; preds = %.lr.ph44, %.lr.ph46, %.preheader36, %.preheader
  ret void
}

; Function Attrs: nounwind uwtable
declare hidden void @gemm_accum(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sigmoid_approx(float noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @tansig_approx(float noundef) local_unnamed_addr #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 = { inlinehint 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" }

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


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