; LLVM IR from ermig1979/Simd :: src/Simd (SimdBaseSynetDeconvolution16b)

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

%"class.Simd::SynetDeconvolution16b" = type { %"struct.Simd::Deletable", %"struct.Simd::DeconvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string", %"struct.Simd::Array.0", %"struct.Simd::Array.1", %"struct.Simd::Array.1", i8, i8, i8, i64, i64, i64, i64 }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::DeconvParam" = type <{ %struct.SimdConvolutionParameters, i32, [4 x i8], i64, i32, [4 x i8] }>
%struct.SimdConvolutionParameters = type { i64, i64, i64, i32, i32, i64, i64, i64, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32 }
%"struct.Simd::Array" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array.1" = type { ptr, i64 }
%"class.Simd::Base::SynetDeconvolution16bGemm" = type { %"class.Simd::SynetDeconvolution16b", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd21SynetDeconvolution16b7SetBiasEPKfm(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, i64 noundef) #0 align 2

; 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd21SynetDeconvolution16b9SetParamsEPKfm(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, i64 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetDeconvolution16bGemm9SetParamsEPKfS3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i32, align 4
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  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 ptr %3, ptr %8, align 8, !tbaa !5
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %17 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 1
  store ptr %17, ptr %9, align 8, !tbaa !5
  %18 = load ptr, ptr %9, align 8, !tbaa !5
  %19 = getelementptr inbounds %"struct.Simd::DeconvParam", ptr %18, i32 0, i32 1
  %20 = load i32, ptr %19, align 8, !tbaa !9
  %21 = icmp ne i32 %20, 0
  br i1 %21, label %22, label %30

22:                                               ; preds = %4
  %23 = load ptr, ptr %6, align 8, !tbaa !5
  %24 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 4
  %25 = getelementptr inbounds %"struct.Simd::Array.0", ptr %24, i32 0, i32 1
  %26 = load i64, ptr %25, align 8, !tbaa !18
  %27 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 4
  %28 = getelementptr inbounds %"struct.Simd::Array.0", ptr %27, i32 0, i32 0
  %29 = load ptr, ptr %28, align 8, !tbaa !27
  call void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef %23, i64 noundef %26, ptr noundef %29)
  br label %95

30:                                               ; preds = %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  store ptr %31, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %32 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 4
  %33 = getelementptr inbounds %"struct.Simd::Array.0", ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !27
  store ptr %34, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !28
  br label %35

35:                                               ; preds = %91, %30
  %36 = load i64, ptr %12, align 8, !tbaa !28
  %37 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 1
  %38 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %37, i32 0, i32 20
  %39 = load i64, ptr %38, align 8, !tbaa !29
  %40 = icmp ult i64 %36, %39
  br i1 %40, label %42, label %41

41:                                               ; preds = %35
  store i32 2, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %94

42:                                               ; preds = %35
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #5
  store i64 0, ptr %14, align 8, !tbaa !28
  br label %43

43:                                               ; preds = %79, %42
  %44 = load i64, ptr %14, align 8, !tbaa !28
  %45 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bGemm", ptr %16, i32 0, i32 1
  %46 = load i64, ptr %45, align 8, !tbaa !30
  %47 = icmp ult i64 %44, %46
  br i1 %47, label %49, label %48

48:                                               ; preds = %43
  store i32 5, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #5
  br label %82

49:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store i64 0, ptr %15, align 8, !tbaa !28
  br label %50

50:                                               ; preds = %75, %49
  %51 = load i64, ptr %15, align 8, !tbaa !28
  %52 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bGemm", ptr %16, i32 0, i32 3
  %53 = load i64, ptr %52, align 8, !tbaa !32
  %54 = icmp ult i64 %51, %53
  br i1 %54, label %56, label %55

55:                                               ; preds = %50
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  br label %78

56:                                               ; preds = %50
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = load i64, ptr %15, align 8, !tbaa !28
  %59 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bGemm", ptr %16, i32 0, i32 1
  %60 = load i64, ptr %59, align 8, !tbaa !30
  %61 = mul i64 %58, %60
  %62 = load i64, ptr %14, align 8, !tbaa !28
  %63 = add i64 %61, %62
  %64 = getelementptr inbounds float, ptr %57, i64 %63
  %65 = load float, ptr %64, align 4, !tbaa !33
  %66 = call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %65)
  %67 = load ptr, ptr %11, align 8, !tbaa !5
  %68 = load i64, ptr %14, align 8, !tbaa !28
  %69 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bGemm", ptr %16, i32 0, i32 3
  %70 = load i64, ptr %69, align 8, !tbaa !32
  %71 = mul i64 %68, %70
  %72 = load i64, ptr %15, align 8, !tbaa !28
  %73 = add i64 %71, %72
  %74 = getelementptr inbounds i16, ptr %67, i64 %73
  store i16 %66, ptr %74, align 2, !tbaa !35
  br label %75

75:                                               ; preds = %56
  %76 = load i64, ptr %15, align 8, !tbaa !28
  %77 = add i64 %76, 1
  store i64 %77, ptr %15, align 8, !tbaa !28
  br label %50, !llvm.loop !37

78:                                               ; preds = %55
  br label %79

79:                                               ; preds = %78
  %80 = load i64, ptr %14, align 8, !tbaa !28
  %81 = add i64 %80, 1
  store i64 %81, ptr %14, align 8, !tbaa !28
  br label %43, !llvm.loop !39

82:                                               ; preds = %48
  %83 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bGemm", ptr %16, i32 0, i32 7
  %84 = load i64, ptr %83, align 8, !tbaa !40
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds float, ptr %85, i64 %84
  store ptr %86, ptr %10, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bGemm", ptr %16, i32 0, i32 7
  %88 = load i64, ptr %87, align 8, !tbaa !40
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds i16, ptr %89, i64 %88
  store ptr %90, ptr %11, align 8, !tbaa !5
  br label %91

91:                                               ; preds = %82
  %92 = load i64, ptr %12, align 8, !tbaa !28
  %93 = add i64 %92, 1
  store i64 %93, ptr %12, align 8, !tbaa !28
  br label %35, !llvm.loop !41

94:                                               ; preds = %41
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %95

95:                                               ; preds = %94, %22
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = call noundef i64 @_ZN4Simd9AlignmentEv()
  call void @_ZN4Simd21SynetDeconvolution16b7SetBiasEPKfm(ptr noundef nonnull align 8 dereferenceable(328) %16, ptr noundef %96, i64 noundef %97)
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = call noundef i64 @_ZN4Simd9AlignmentEv()
  call void @_ZN4Simd21SynetDeconvolution16b9SetParamsEPKfm(ptr noundef nonnull align 8 dereferenceable(328) %16, ptr noundef %98, i64 noundef %99)
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void
}

declare void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef, i64 noundef, ptr noundef) #2

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd9AlignmentEv() #4

attributes #0 = { mustprogress 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { alwaysinline mustprogress 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 = { alwaysinline 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 #5 = { 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, !16, i64 160}
!10 = !{!"_ZTSN4Simd11DeconvParamE", !11, i64 0, !16, i64 160, !12, i64 168, !17, i64 176}
!11 = !{!"_ZTS25SimdConvolutionParameters", !12, i64 0, !12, i64 8, !12, i64 16, !13, i64 24, !14, i64 28, !12, i64 32, !12, i64 40, !12, i64 48, !13, i64 56, !14, i64 60, !12, i64 64, !12, i64 72, !12, i64 80, !12, i64 88, !12, i64 96, !12, i64 104, !12, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !15, i64 152}
!12 = !{!"long", !7, i64 0}
!13 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!14 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!15 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!16 = !{!"_ZTS8SimdBool", !7, i64 0}
!17 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!18 = !{!19, !12, i64 248}
!19 = !{!"_ZTSN4Simd21SynetDeconvolution16bE", !20, i64 0, !10, i64 8, !21, i64 192, !22, i64 208, !24, i64 240, !25, i64 256, !25, i64 272, !26, i64 288, !26, i64 289, !26, i64 290, !12, i64 296, !12, i64 304, !12, i64 312, !12, i64 320}
!20 = !{!"_ZTSN4Simd9DeletableE"}
!21 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !12, i64 8}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !12, i64 8, !7, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!24 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !12, i64 8}
!25 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !12, i64 8}
!26 = !{!"bool", !7, i64 0}
!27 = !{!19, !6, i64 240}
!28 = !{!12, !12, i64 0}
!29 = !{!11, !12, i64 144}
!30 = !{!31, !12, i64 328}
!31 = !{!"_ZTSN4Simd4Base25SynetDeconvolution16bGemmE", !19, i64 0, !12, i64 328, !12, i64 336, !12, i64 344, !12, i64 352, !12, i64 360, !12, i64 368, !12, i64 376, !12, i64 384, !12, i64 392, !12, i64 400, !12, i64 408, !12, i64 416, !12, i64 424}
!32 = !{!31, !12, i64 344}
!33 = !{!34, !34, i64 0}
!34 = !{!"float", !7, i64 0}
!35 = !{!36, !36, i64 0}
!36 = !{!"short", !7, i64 0}
!37 = distinct !{!37, !38}
!38 = !{!"llvm.loop.mustprogress"}
!39 = distinct !{!39, !38}
!40 = !{!31, !12, i64 376}
!41 = distinct !{!41, !38}


; 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 uwtable
declare dso_local void @_ZN4Simd21SynetDeconvolution16b7SetBiasEPKfm(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd21SynetDeconvolution16b9SetParamsEPKfm(ptr noundef nonnull align 8 dereferenceable(328), ptr noundef, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base25SynetDeconvolution16bGemm9SetParamsEPKfS3_S3_(ptr noundef nonnull align 8 dereferenceable(432) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 168
  %6 = load i32, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i32 %6, 0
  br i1 %.not, label %12, label %7

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 240
  %9 = getelementptr inbounds i8, ptr %0, i64 248
  %10 = load i64, ptr %9, align 8, !tbaa !16
  %11 = load ptr, ptr %8, align 8, !tbaa !26
  tail call void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef %1, i64 noundef %10, ptr noundef %11)
  br label %.loopexit

12:                                               ; preds = %4
  %13 = getelementptr inbounds i8, ptr %0, i64 152
  %14 = load i64, ptr %13, align 8, !tbaa !27
  %.not30 = icmp eq i64 %14, 0
  br i1 %.not30, label %.loopexit, label %.preheader23.lr.ph

.preheader23.lr.ph:                               ; preds = %12
  %15 = getelementptr inbounds i8, ptr %0, i64 328
  %16 = getelementptr inbounds i8, ptr %0, i64 344
  %17 = getelementptr inbounds i8, ptr %0, i64 376
  %18 = load i64, ptr %15, align 8, !tbaa !28
  %.not31 = icmp eq i64 %18, 0
  br i1 %.not31, label %.loopexit, label %.preheader23.preheader

.preheader23.preheader:                           ; preds = %.preheader23.lr.ph
  %19 = getelementptr inbounds i8, ptr %0, i64 240
  %20 = load ptr, ptr %19, align 8, !tbaa !26
  br label %.preheader23

.preheader23:                                     ; preds = %.preheader23.preheader, %._crit_edge26
  %21 = phi i64 [ %27, %._crit_edge26 ], [ %14, %.preheader23.preheader ]
  %22 = phi i64 [ %28, %._crit_edge26 ], [ %18, %.preheader23.preheader ]
  %23 = phi i64 [ %29, %._crit_edge26 ], [ %18, %.preheader23.preheader ]
  %.02029 = phi i64 [ %33, %._crit_edge26 ], [ 0, %.preheader23.preheader ]
  %.02128 = phi ptr [ %32, %._crit_edge26 ], [ %20, %.preheader23.preheader ]
  %.02227 = phi ptr [ %31, %._crit_edge26 ], [ %1, %.preheader23.preheader ]
  %.not32 = icmp eq i64 %23, 0
  br i1 %.not32, label %._crit_edge26, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader23
  %24 = load i64, ptr %16, align 8, !tbaa !30
  %.not33 = icmp eq i64 %24, 0
  br i1 %.not33, label %._crit_edge26, label %.preheader

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %25 = phi i64 [ %35, %._crit_edge ], [ %22, %.preheader.lr.ph ]
  %26 = phi i64 [ %36, %._crit_edge ], [ 1, %.preheader.lr.ph ]
  %.01925 = phi i64 [ %37, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %.not34 = icmp eq i64 %26, 0
  br i1 %.not34, label %._crit_edge, label %.lr.ph

._crit_edge26.loopexit35:                         ; preds = %._crit_edge
  %.pre37 = load i64, ptr %13, align 8, !tbaa !27
  br label %._crit_edge26

._crit_edge26:                                    ; preds = %.preheader.lr.ph, %._crit_edge26.loopexit35, %.preheader23
  %27 = phi i64 [ %.pre37, %._crit_edge26.loopexit35 ], [ %21, %.preheader23 ], [ %21, %.preheader.lr.ph ]
  %28 = phi i64 [ %35, %._crit_edge26.loopexit35 ], [ %22, %.preheader23 ], [ %22, %.preheader.lr.ph ]
  %29 = phi i64 [ %35, %._crit_edge26.loopexit35 ], [ 0, %.preheader23 ], [ %23, %.preheader.lr.ph ]
  %30 = load i64, ptr %17, align 8, !tbaa !31
  %31 = getelementptr inbounds float, ptr %.02227, i64 %30
  %32 = getelementptr inbounds i16, ptr %.02128, i64 %30
  %33 = add nuw i64 %.02029, 1
  %34 = icmp ult i64 %33, %27
  br i1 %34, label %.preheader23, label %.loopexit, !llvm.loop !32

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %.pre = load i64, ptr %15, align 8, !tbaa !28
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %35 = phi i64 [ %.pre, %._crit_edge.loopexit ], [ %25, %.preheader ]
  %36 = phi i64 [ %45, %._crit_edge.loopexit ], [ 0, %.preheader ]
  %37 = add nuw i64 %.01925, 1
  %38 = icmp ult i64 %37, %35
  br i1 %38, label %.preheader, label %._crit_edge26.loopexit35, !llvm.loop !35

.lr.ph:                                           ; preds = %.preheader, %.lr.ph
  %.024 = phi i64 [ %49, %.lr.ph ], [ 0, %.preheader ]
  %39 = load i64, ptr %15, align 8, !tbaa !28
  %40 = mul i64 %39, %.024
  %41 = add i64 %40, %.01925
  %42 = getelementptr inbounds float, ptr %.02227, i64 %41
  %43 = load float, ptr %42, align 4, !tbaa !36
  %44 = tail call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %43)
  %45 = load i64, ptr %16, align 8, !tbaa !30
  %46 = mul i64 %45, %.01925
  %47 = add i64 %46, %.024
  %48 = getelementptr inbounds i16, ptr %.02128, i64 %47
  store i16 %44, ptr %48, align 2, !tbaa !38
  %49 = add nuw i64 %.024, 1
  %50 = icmp ult i64 %49, %45
  br i1 %50, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !40

.loopexit:                                        ; preds = %._crit_edge26, %.preheader23.lr.ph, %12, %7
  %51 = tail call noundef i64 @_ZN4Simd9AlignmentEv()
  tail call void @_ZN4Simd21SynetDeconvolution16b7SetBiasEPKfm(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %2, i64 noundef %51)
  %52 = tail call noundef i64 @_ZN4Simd9AlignmentEv()
  tail call void @_ZN4Simd21SynetDeconvolution16b9SetParamsEPKfm(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %3, i64 noundef %52)
  ret void
}

declare void @_ZN4Simd4Base17Float32ToBFloat16EPKfmPt(ptr noundef, i64 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd9AlignmentEv() local_unnamed_addr #3

attributes #0 = { mustprogress 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 = { "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 = { alwaysinline mustprogress 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 = { alwaysinline 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" }

!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, !14, i64 160}
!6 = !{!"_ZTSN4Simd11DeconvParamE", !7, i64 0, !14, i64 160, !8, i64 168, !15, i64 176}
!7 = !{!"_ZTS25SimdConvolutionParameters", !8, i64 0, !8, i64 8, !8, i64 16, !11, i64 24, !12, i64 28, !8, i64 32, !8, i64 40, !8, i64 48, !11, i64 56, !12, i64 60, !8, i64 64, !8, i64 72, !8, i64 80, !8, i64 88, !8, i64 96, !8, i64 104, !8, i64 112, !8, i64 120, !8, i64 128, !8, i64 136, !8, i64 144, !13, i64 152}
!8 = !{!"long", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTS18SimdTensorDataType", !9, i64 0}
!12 = !{!"_ZTS20SimdTensorFormatType", !9, i64 0}
!13 = !{!"_ZTS29SimdConvolutionActivationType", !9, i64 0}
!14 = !{!"_ZTS8SimdBool", !9, i64 0}
!15 = !{!"_ZTS26SimdSynetCompatibilityType", !9, i64 0}
!16 = !{!17, !8, i64 248}
!17 = !{!"_ZTSN4Simd21SynetDeconvolution16bE", !18, i64 0, !6, i64 8, !19, i64 192, !21, i64 208, !23, i64 240, !24, i64 256, !24, i64 272, !25, i64 288, !25, i64 289, !25, i64 290, !8, i64 296, !8, i64 304, !8, i64 312, !8, i64 320}
!18 = !{!"_ZTSN4Simd9DeletableE"}
!19 = !{!"_ZTSN4Simd5ArrayIhEE", !20, i64 0, !8, i64 8}
!20 = !{!"any pointer", !9, i64 0}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !8, i64 8, !9, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !20, i64 0}
!23 = !{!"_ZTSN4Simd5ArrayItEE", !20, i64 0, !8, i64 8}
!24 = !{!"_ZTSN4Simd5ArrayIfEE", !20, i64 0, !8, i64 8}
!25 = !{!"bool", !9, i64 0}
!26 = !{!17, !20, i64 240}
!27 = !{!7, !8, i64 144}
!28 = !{!29, !8, i64 328}
!29 = !{!"_ZTSN4Simd4Base25SynetDeconvolution16bGemmE", !17, i64 0, !8, i64 328, !8, i64 336, !8, i64 344, !8, i64 352, !8, i64 360, !8, i64 368, !8, i64 376, !8, i64 384, !8, i64 392, !8, i64 400, !8, i64 408, !8, i64 416, !8, i64 424}
!30 = !{!29, !8, i64 344}
!31 = !{!29, !8, i64 376}
!32 = distinct !{!32, !33, !34}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.unswitch.partial.disable"}
!35 = distinct !{!35, !33, !34}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !9, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"short", !9, i64 0}
!40 = distinct !{!40, !33}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass