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

; 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::Base::SynetConvolution32fDepthwiseDotProduct" = type { %"class.Simd::SynetConvolution32f", i64, i64, i64, i64, i64 }
%"class.Simd::SynetConvolution32f" = type { %"struct.Simd::Deletable", %"struct.Simd::ConvParam", %"struct.Simd::Array", float, float, ptr, ptr, ptr, %"struct.Simd::Runtime", %"struct.Simd::Runtime.3", %"struct.Simd::Array", ptr, ptr, ptr, %"class.std::__cxx11::basic_string" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::ConvParam" = 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::Runtime" = type { ptr, %"class.std::vector", %"class.std::__cxx11::basic_string" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmFunc, Simd::GemmArgs>::Candidate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Simd::Runtime.3" = type { ptr, %"class.std::vector.4", %"class.std::__cxx11::basic_string" }
%"class.std::vector.4" = type { %"struct.std::_Vector_base.5" }
%"struct.std::_Vector_base.5" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate, std::allocator<Simd::Runtime<Simd::GemmCbFunc, Simd::GemmCbArgs>::Candidate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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] }

; 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: mustprogress uwtable
define dso_local void @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProduct7ForwardEPKfPfS4_(ptr noundef nonnull align 8 dereferenceable(480) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = 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
  %13 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  store i64 0, ptr %9, align 8, !tbaa !9
  br label %14

14:                                               ; preds = %115, %4
  %15 = load i64, ptr %9, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 3
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %18 = icmp ult i64 %15, %17
  br i1 %18, label %20, label %19

19:                                               ; preds = %14
  store i32 2, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %118

20:                                               ; preds = %14
  %21 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 6
  %22 = load ptr, ptr %21, align 8, !tbaa !36
  %23 = icmp ne ptr %22, null
  br i1 %23, label %24, label %61

24:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %25

25:                                               ; preds = %57, %24
  %26 = load i64, ptr %11, align 8, !tbaa !9
  %27 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !37
  %29 = icmp ult i64 %26, %28
  br i1 %29, label %31, label %30

30:                                               ; preds = %25
  store i32 5, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %60

31:                                               ; preds = %25
  %32 = load ptr, ptr %6, align 8, !tbaa !5
  %33 = load i64, ptr %11, align 8, !tbaa !9
  %34 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 2
  %35 = load i64, ptr %34, align 8, !tbaa !38
  %36 = mul i64 %33, %35
  %37 = getelementptr inbounds float, ptr %32, i64 %36
  %38 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 5
  %39 = load ptr, ptr %38, align 8, !tbaa !39
  %40 = load i64, ptr %11, align 8, !tbaa !9
  %41 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 2
  %42 = load i64, ptr %41, align 8, !tbaa !38
  %43 = mul i64 %40, %42
  %44 = getelementptr inbounds float, ptr %39, i64 %43
  %45 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 2
  %46 = load i64, ptr %45, align 8, !tbaa !38
  %47 = call noundef float @_ZN4Simd4Base10DotProductEPKfS2_m(ptr noundef %37, ptr noundef %44, i64 noundef %46)
  %48 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 6
  %49 = load ptr, ptr %48, align 8, !tbaa !36
  %50 = load i64, ptr %11, align 8, !tbaa !9
  %51 = getelementptr inbounds float, ptr %49, i64 %50
  %52 = load float, ptr %51, align 4, !tbaa !40
  %53 = fadd float %47, %52
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = load i64, ptr %11, align 8, !tbaa !9
  %56 = getelementptr inbounds float, ptr %54, i64 %55
  store float %53, ptr %56, align 4, !tbaa !40
  br label %57

57:                                               ; preds = %31
  %58 = load i64, ptr %11, align 8, !tbaa !9
  %59 = add i64 %58, 1
  store i64 %59, ptr %11, align 8, !tbaa !9
  br label %25, !llvm.loop !41

60:                                               ; preds = %30
  br label %92

61:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %88, %61
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 1
  %65 = load i64, ptr %64, align 8, !tbaa !37
  %66 = icmp ult i64 %63, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %62
  store i32 8, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  br label %91

68:                                               ; preds = %62
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = load i64, ptr %12, align 8, !tbaa !9
  %71 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 2
  %72 = load i64, ptr %71, align 8, !tbaa !38
  %73 = mul i64 %70, %72
  %74 = getelementptr inbounds float, ptr %69, i64 %73
  %75 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 5
  %76 = load ptr, ptr %75, align 8, !tbaa !39
  %77 = load i64, ptr %12, align 8, !tbaa !9
  %78 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 2
  %79 = load i64, ptr %78, align 8, !tbaa !38
  %80 = mul i64 %77, %79
  %81 = getelementptr inbounds float, ptr %76, i64 %80
  %82 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 2
  %83 = load i64, ptr %82, align 8, !tbaa !38
  %84 = call noundef float @_ZN4Simd4Base10DotProductEPKfS2_m(ptr noundef %74, ptr noundef %81, i64 noundef %83)
  %85 = load ptr, ptr %8, align 8, !tbaa !5
  %86 = load i64, ptr %12, align 8, !tbaa !9
  %87 = getelementptr inbounds float, ptr %85, i64 %86
  store float %84, ptr %87, align 4, !tbaa !40
  br label %88

88:                                               ; preds = %68
  %89 = load i64, ptr %12, align 8, !tbaa !9
  %90 = add i64 %89, 1
  store i64 %90, ptr %12, align 8, !tbaa !9
  br label %62, !llvm.loop !43

91:                                               ; preds = %67
  br label %92

92:                                               ; preds = %91, %60
  %93 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 1
  %94 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %93, i32 0, i32 21
  %95 = load i32, ptr %94, align 8, !tbaa !44
  %96 = icmp ne i32 %95, 0
  br i1 %96, label %97, label %106

97:                                               ; preds = %92
  %98 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 1
  %99 = load i64, ptr %98, align 8, !tbaa !37
  %100 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 1
  %101 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %100, i32 0, i32 21
  %102 = load i32, ptr %101, align 8, !tbaa !44
  %103 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 7
  %104 = load ptr, ptr %103, align 8, !tbaa !45
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base28ConvolutionBiasAndActivationEPKfmm29SimdConvolutionActivationTypeS2_8SimdBoolPf(ptr noundef null, i64 noundef %99, i64 noundef 1, i32 noundef %102, ptr noundef %104, i32 noundef 0, ptr noundef %105)
  br label %106

106:                                              ; preds = %97, %92
  %107 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 4
  %108 = load i64, ptr %107, align 8, !tbaa !46
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  %110 = getelementptr inbounds float, ptr %109, i64 %108
  store ptr %110, ptr %6, align 8, !tbaa !5
  %111 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fDepthwiseDotProduct", ptr %13, i32 0, i32 5
  %112 = load i64, ptr %111, align 8, !tbaa !47
  %113 = load ptr, ptr %8, align 8, !tbaa !5
  %114 = getelementptr inbounds float, ptr %113, i64 %112
  store ptr %114, ptr %8, align 8, !tbaa !5
  br label %115

115:                                              ; preds = %106
  %116 = load i64, ptr %9, align 8, !tbaa !9
  %117 = add i64 %116, 1
  store i64 %117, ptr %9, align 8, !tbaa !9
  br label %14, !llvm.loop !48

118:                                              ; preds = %19
  ret void
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd4Base10DotProductEPKfS2_m(ptr noundef, ptr noundef, i64 noundef) #2

declare void @_ZN4Simd4Base28ConvolutionBiasAndActivationEPKfmm29SimdConvolutionActivationTypeS2_8SimdBoolPf(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { 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 #3 = { "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 = !{!"long", !7, i64 0}
!11 = !{!12, !10, i64 456}
!12 = !{!"_ZTSN4Simd4Base38SynetConvolution32fDepthwiseDotProductE", !13, i64 0, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472}
!13 = !{!"_ZTSN4Simd19SynetConvolution32fE", !14, i64 0, !15, i64 8, !22, i64 192, !23, i64 208, !23, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !24, i64 240, !31, i64 304, !22, i64 368, !6, i64 384, !6, i64 392, !6, i64 400, !29, i64 408}
!14 = !{!"_ZTSN4Simd9DeletableE"}
!15 = !{!"_ZTSN4Simd9ConvParamE", !16, i64 0, !20, i64 160, !10, i64 168, !21, i64 176}
!16 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !17, i64 24, !18, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !17, i64 56, !18, i64 60, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120, !10, i64 128, !10, i64 136, !10, i64 144, !19, i64 152}
!17 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!18 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!19 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!20 = !{!"_ZTS8SimdBool", !7, i64 0}
!21 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!22 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!23 = !{!"float", !7, i64 0}
!24 = !{!"_ZTSN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEEE", !6, i64 0, !25, i64 8, !29, i64 32}
!25 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !30, i64 0, !10, i64 8, !7, i64 16}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!31 = !{!"_ZTSN4Simd7RuntimeINS_10GemmCbFuncENS_10GemmCbArgsEEE", !6, i64 0, !32, i64 8, !29, i64 32}
!32 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE12_Vector_implE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!36 = !{!13, !6, i64 224}
!37 = !{!12, !10, i64 440}
!38 = !{!12, !10, i64 448}
!39 = !{!13, !6, i64 216}
!40 = !{!23, !23, i64 0}
!41 = distinct !{!41, !42}
!42 = !{!"llvm.loop.mustprogress"}
!43 = distinct !{!43, !42}
!44 = !{!16, !19, i64 152}
!45 = !{!13, !6, i64 232}
!46 = !{!12, !10, i64 464}
!47 = !{!12, !10, i64 472}
!48 = distinct !{!48, !42}


; 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
define dso_local void @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProduct7ForwardEPKfPfS4_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(480) %0, ptr noundef %1, ptr nocapture noundef readnone %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 456
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %.not37 = icmp eq i64 %6, 0
  br i1 %.not37, label %._crit_edge, label %.lr.ph36

.lr.ph36:                                         ; preds = %4
  %7 = getelementptr inbounds i8, ptr %0, i64 224
  %8 = getelementptr inbounds i8, ptr %0, i64 440
  %9 = getelementptr inbounds i8, ptr %0, i64 448
  %10 = getelementptr inbounds i8, ptr %0, i64 216
  %11 = getelementptr inbounds i8, ptr %0, i64 160
  %12 = getelementptr inbounds i8, ptr %0, i64 232
  %13 = getelementptr inbounds i8, ptr %0, i64 464
  %14 = getelementptr inbounds i8, ptr %0, i64 472
  br label %15

._crit_edge:                                      ; preds = %46, %4
  ret void

15:                                               ; preds = %.lr.ph36, %46
  %.02135 = phi i64 [ 0, %.lr.ph36 ], [ %51, %46 ]
  %.02233 = phi ptr [ %3, %.lr.ph36 ], [ %50, %46 ]
  %.02331 = phi ptr [ %1, %.lr.ph36 ], [ %48, %46 ]
  %16 = load ptr, ptr %7, align 8, !tbaa !34
  %.not = icmp eq ptr %16, null
  %17 = load i64, ptr %8, align 8, !tbaa !35
  %.not39 = icmp eq i64 %17, 0
  br i1 %.not, label %.preheader, label %.preheader26

.preheader26:                                     ; preds = %15
  br i1 %.not39, label %.loopexit, label %.lr.ph

.preheader:                                       ; preds = %15
  br i1 %.not39, label %.loopexit, label %.lr.ph30

.lr.ph:                                           ; preds = %.preheader26, %.lr.ph
  %.02028 = phi i64 [ %29, %.lr.ph ], [ 0, %.preheader26 ]
  %18 = load i64, ptr %9, align 8, !tbaa !36
  %19 = mul i64 %18, %.02028
  %20 = getelementptr inbounds float, ptr %.02331, i64 %19
  %21 = load ptr, ptr %10, align 8, !tbaa !37
  %22 = getelementptr inbounds float, ptr %21, i64 %19
  %23 = tail call noundef float @_ZN4Simd4Base10DotProductEPKfS2_m(ptr noundef %20, ptr noundef %22, i64 noundef %18)
  %24 = load ptr, ptr %7, align 8, !tbaa !34
  %25 = getelementptr inbounds float, ptr %24, i64 %.02028
  %26 = load float, ptr %25, align 4, !tbaa !38
  %27 = fadd float %23, %26
  %28 = getelementptr inbounds float, ptr %.02233, i64 %.02028
  store float %27, ptr %28, align 4, !tbaa !38
  %29 = add nuw i64 %.02028, 1
  %30 = load i64, ptr %8, align 8, !tbaa !35
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %.lr.ph, label %.loopexit, !llvm.loop !39

.lr.ph30:                                         ; preds = %.preheader, %.lr.ph30
  %.029 = phi i64 [ %39, %.lr.ph30 ], [ 0, %.preheader ]
  %32 = load i64, ptr %9, align 8, !tbaa !36
  %33 = mul i64 %32, %.029
  %34 = getelementptr inbounds float, ptr %.02331, i64 %33
  %35 = load ptr, ptr %10, align 8, !tbaa !37
  %36 = getelementptr inbounds float, ptr %35, i64 %33
  %37 = tail call noundef float @_ZN4Simd4Base10DotProductEPKfS2_m(ptr noundef %34, ptr noundef %36, i64 noundef %32)
  %38 = getelementptr inbounds float, ptr %.02233, i64 %.029
  store float %37, ptr %38, align 4, !tbaa !38
  %39 = add nuw i64 %.029, 1
  %40 = load i64, ptr %8, align 8, !tbaa !35
  %41 = icmp ult i64 %39, %40
  br i1 %41, label %.lr.ph30, label %.loopexit, !llvm.loop !41

.loopexit:                                        ; preds = %.lr.ph, %.lr.ph30, %.preheader26, %.preheader
  %42 = phi i64 [ 0, %.preheader26 ], [ 0, %.preheader ], [ %40, %.lr.ph30 ], [ %30, %.lr.ph ]
  %43 = load i32, ptr %11, align 8, !tbaa !42
  %.not25 = icmp eq i32 %43, 0
  br i1 %.not25, label %46, label %44

44:                                               ; preds = %.loopexit
  %45 = load ptr, ptr %12, align 8, !tbaa !43
  tail call void @_ZN4Simd4Base28ConvolutionBiasAndActivationEPKfmm29SimdConvolutionActivationTypeS2_8SimdBoolPf(ptr noundef null, i64 noundef %42, i64 noundef 1, i32 noundef %43, ptr noundef %45, i32 noundef 0, ptr noundef %.02233)
  br label %46

46:                                               ; preds = %44, %.loopexit
  %47 = load i64, ptr %13, align 8, !tbaa !44
  %48 = getelementptr inbounds float, ptr %.02331, i64 %47
  %49 = load i64, ptr %14, align 8, !tbaa !45
  %50 = getelementptr inbounds float, ptr %.02233, i64 %49
  %51 = add nuw i64 %.02135, 1
  %52 = load i64, ptr %5, align 8, !tbaa !5
  %53 = icmp ult i64 %51, %52
  br i1 %53, label %15, label %._crit_edge, !llvm.loop !46
}

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef float @_ZN4Simd4Base10DotProductEPKfS2_m(ptr noundef, ptr noundef, i64 noundef) local_unnamed_addr #1

declare void @_ZN4Simd4Base28ConvolutionBiasAndActivationEPKfmm29SimdConvolutionActivationTypeS2_8SimdBoolPf(ptr noundef, i64 noundef, i64 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

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 = { 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 #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" }

!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, !11, i64 456}
!6 = !{!"_ZTSN4Simd4Base38SynetConvolution32fDepthwiseDotProductE", !7, i64 0, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472}
!7 = !{!"_ZTSN4Simd19SynetConvolution32fE", !8, i64 0, !9, i64 8, !19, i64 192, !21, i64 208, !21, i64 212, !20, i64 216, !20, i64 224, !20, i64 232, !22, i64 240, !29, i64 304, !19, i64 368, !20, i64 384, !20, i64 392, !20, i64 400, !27, i64 408}
!8 = !{!"_ZTSN4Simd9DeletableE"}
!9 = !{!"_ZTSN4Simd9ConvParamE", !10, i64 0, !17, i64 160, !11, i64 168, !18, i64 176}
!10 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !14, i64 24, !15, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !14, i64 56, !15, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !16, i64 152}
!11 = !{!"long", !12, i64 0}
!12 = !{!"omnipotent char", !13, i64 0}
!13 = !{!"Simple C++ TBAA"}
!14 = !{!"_ZTS18SimdTensorDataType", !12, i64 0}
!15 = !{!"_ZTS20SimdTensorFormatType", !12, i64 0}
!16 = !{!"_ZTS29SimdConvolutionActivationType", !12, i64 0}
!17 = !{!"_ZTS8SimdBool", !12, i64 0}
!18 = !{!"_ZTS26SimdSynetCompatibilityType", !12, i64 0}
!19 = !{!"_ZTSN4Simd5ArrayIfEE", !20, i64 0, !11, i64 8}
!20 = !{!"any pointer", !12, i64 0}
!21 = !{!"float", !12, i64 0}
!22 = !{!"_ZTSN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEEE", !20, i64 0, !23, i64 8, !27, i64 32}
!23 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !11, i64 8, !12, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !20, i64 0}
!29 = !{!"_ZTSN4Simd7RuntimeINS_10GemmCbFuncENS_10GemmCbArgsEEE", !20, i64 0, !30, i64 8, !27, i64 32}
!30 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !31, i64 0}
!31 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE12_Vector_implE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!34 = !{!7, !20, i64 224}
!35 = !{!6, !11, i64 440}
!36 = !{!6, !11, i64 448}
!37 = !{!7, !20, i64 216}
!38 = !{!21, !21, i64 0}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = distinct !{!41, !40}
!42 = !{!10, !16, i64 152}
!43 = !{!7, !20, i64 232}
!44 = !{!6, !11, i64 464}
!45 = !{!6, !11, i64 472}
!46 = distinct !{!46, !40}


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