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

; 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::SynetConvolution16b" = type { %"struct.Simd::Deletable", %"struct.Simd::ConvParam", %"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::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::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::SynetConvolution16bNhwcSpecV1" = type { %"class.Simd::SynetConvolution16b", %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", %"struct.Simd::Array.2", ptr, ptr, ptr }
%"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.Simd::Array.2" = type { ptr, i64 }

; 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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV19SetWeightEPKf(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr noundef %1) unnamed_addr #1 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i32, align 4
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %17 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #3
  %18 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %17, i32 0, i32 1
  store ptr %18, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #3
  %19 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bNhwcSpecV1", ptr %17, i32 0, i32 1
  store ptr %19, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %17, i32 0, i32 4
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %21, i32 0, i32 5
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %24, i32 0, i32 3
  %26 = load i64, ptr %25, align 8, !tbaa !12
  %27 = mul i64 %23, %26
  call void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %20, i64 noundef %27, i1 noundef zeroext true, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %28 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %17, i32 0, i32 4
  %29 = getelementptr inbounds %"struct.Simd::Array.0", ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  store ptr %30, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %31 = load ptr, ptr %5, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %31, i32 0, i32 11
  %33 = load i64, ptr %32, align 8, !tbaa !29
  %34 = load ptr, ptr %5, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %34, i32 0, i32 0
  %36 = load i64, ptr %35, align 8, !tbaa !30
  %37 = mul i64 %33, %36
  store i64 %37, ptr %8, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  store i64 0, ptr %9, align 8, !tbaa !31
  br label %38

38:                                               ; preds = %152, %2
  %39 = load i64, ptr %9, align 8, !tbaa !31
  %40 = load ptr, ptr %5, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %40, i32 0, i32 5
  %42 = load i64, ptr %41, align 8, !tbaa !32
  %43 = icmp ult i64 %39, %42
  br i1 %43, label %45, label %44

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

45:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !31
  br label %46

46:                                               ; preds = %148, %45
  %47 = load i64, ptr %11, align 8, !tbaa !31
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %48, i32 0, i32 10
  %50 = load i64, ptr %49, align 8, !tbaa !33
  %51 = icmp ult i64 %47, %50
  br i1 %51, label %53, label %52

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

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !31
  br label %54

54:                                               ; preds = %141, %53
  %55 = load i64, ptr %12, align 8, !tbaa !31
  %56 = load i64, ptr %8, align 8, !tbaa !31
  %57 = icmp ult i64 %55, %56
  br i1 %57, label %59, label %58

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

59:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !31
  br label %60

60:                                               ; preds = %137, %59
  %61 = load i64, ptr %13, align 8, !tbaa !31
  %62 = load ptr, ptr %6, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %62, i32 0, i32 12
  %64 = load i64, ptr %63, align 8, !tbaa !34
  %65 = icmp ult i64 %61, %64
  br i1 %65, label %67, label %66

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

67:                                               ; preds = %60
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %68 = load ptr, ptr %4, align 8, !tbaa !5
  %69 = load i64, ptr %11, align 8, !tbaa !31
  %70 = load i64, ptr %8, align 8, !tbaa !31
  %71 = mul i64 %69, %70
  %72 = load i64, ptr %12, align 8, !tbaa !31
  %73 = add i64 %71, %72
  %74 = load i64, ptr %13, align 8, !tbaa !31
  %75 = add i64 %73, %74
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %76, i32 0, i32 5
  %78 = load i64, ptr %77, align 8, !tbaa !32
  %79 = mul i64 %75, %78
  %80 = getelementptr inbounds float, ptr %68, i64 %79
  %81 = load i64, ptr %9, align 8, !tbaa !31
  %82 = getelementptr inbounds float, ptr %80, i64 %81
  store ptr %82, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  store i64 0, ptr %15, align 8, !tbaa !31
  br label %83

83:                                               ; preds = %133, %67
  %84 = load i64, ptr %15, align 8, !tbaa !31
  %85 = load ptr, ptr %6, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %85, i32 0, i32 9
  %87 = load i64, ptr %86, align 8, !tbaa !35
  %88 = icmp ult i64 %84, %87
  br i1 %88, label %90, label %89

89:                                               ; preds = %83
  store i32 14, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %136

90:                                               ; preds = %83
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store i64 0, ptr %16, align 8, !tbaa !31
  br label %91

91:                                               ; preds = %127, %90
  %92 = load i64, ptr %16, align 8, !tbaa !31
  %93 = icmp ult i64 %92, 2
  br i1 %93, label %95, label %94

94:                                               ; preds = %91
  store i32 17, ptr %10, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %130

95:                                               ; preds = %91
  %96 = load i64, ptr %9, align 8, !tbaa !31
  %97 = load i64, ptr %15, align 8, !tbaa !31
  %98 = add i64 %96, %97
  %99 = load ptr, ptr %5, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %99, i32 0, i32 5
  %101 = load i64, ptr %100, align 8, !tbaa !32
  %102 = icmp ult i64 %98, %101
  br i1 %102, label %103, label %123

103:                                              ; preds = %95
  %104 = load i64, ptr %12, align 8, !tbaa !31
  %105 = load i64, ptr %13, align 8, !tbaa !31
  %106 = add i64 %104, %105
  %107 = load i64, ptr %16, align 8, !tbaa !31
  %108 = add i64 %106, %107
  %109 = load i64, ptr %8, align 8, !tbaa !31
  %110 = icmp ult i64 %108, %109
  br i1 %110, label %111, label %123

111:                                              ; preds = %103
  %112 = load ptr, ptr %14, align 8, !tbaa !5
  %113 = load i64, ptr %16, align 8, !tbaa !31
  %114 = load ptr, ptr %5, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %114, i32 0, i32 5
  %116 = load i64, ptr %115, align 8, !tbaa !32
  %117 = mul i64 %113, %116
  %118 = getelementptr inbounds float, ptr %112, i64 %117
  %119 = load float, ptr %118, align 4, !tbaa !36
  %120 = call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %119)
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds i16, ptr %121, i32 1
  store ptr %122, ptr %7, align 8, !tbaa !5
  store i16 %120, ptr %121, align 2, !tbaa !38
  br label %126

123:                                              ; preds = %103, %95
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds i16, ptr %124, i32 1
  store ptr %125, ptr %7, align 8, !tbaa !5
  store i16 0, ptr %124, align 2, !tbaa !38
  br label %126

126:                                              ; preds = %123, %111
  br label %127

127:                                              ; preds = %126
  %128 = load i64, ptr %16, align 8, !tbaa !31
  %129 = add i64 %128, 1
  store i64 %129, ptr %16, align 8, !tbaa !31
  br label %91, !llvm.loop !40

130:                                              ; preds = %94
  %131 = load ptr, ptr %14, align 8, !tbaa !5
  %132 = getelementptr inbounds float, ptr %131, i32 1
  store ptr %132, ptr %14, align 8, !tbaa !5
  br label %133

133:                                              ; preds = %130
  %134 = load i64, ptr %15, align 8, !tbaa !31
  %135 = add i64 %134, 1
  store i64 %135, ptr %15, align 8, !tbaa !31
  br label %83, !llvm.loop !42

136:                                              ; preds = %89
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %137

137:                                              ; preds = %136
  %138 = load i64, ptr %13, align 8, !tbaa !31
  %139 = add i64 %138, 2
  store i64 %139, ptr %13, align 8, !tbaa !31
  br label %60, !llvm.loop !43

140:                                              ; preds = %66
  br label %141

141:                                              ; preds = %140
  %142 = load ptr, ptr %6, align 8, !tbaa !5
  %143 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %142, i32 0, i32 12
  %144 = load i64, ptr %143, align 8, !tbaa !34
  %145 = load i64, ptr %12, align 8, !tbaa !31
  %146 = add i64 %145, %144
  store i64 %146, ptr %12, align 8, !tbaa !31
  br label %54, !llvm.loop !44

147:                                              ; preds = %58
  br label %148

148:                                              ; preds = %147
  %149 = load i64, ptr %11, align 8, !tbaa !31
  %150 = add i64 %149, 1
  store i64 %150, ptr %11, align 8, !tbaa !31
  br label %46, !llvm.loop !45

151:                                              ; preds = %52
  br label %152

152:                                              ; preds = %151
  %153 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bNhwcSpecV1", ptr %17, i32 0, i32 1
  %154 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %153, i32 0, i32 9
  %155 = load i64, ptr %154, align 8, !tbaa !46
  %156 = load i64, ptr %9, align 8, !tbaa !31
  %157 = add i64 %156, %155
  store i64 %157, ptr %9, align 8, !tbaa !31
  br label %38, !llvm.loop !49

158:                                              ; preds = %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #3
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #2 align 2

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

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 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++ TBAA"}
!9 = !{!10, !11, i64 40}
!10 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV18AlgParamE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !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, !11, i64 152, !11, i64 160}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 24}
!13 = !{!14, !6, i64 240}
!14 = !{!"_ZTSN4Simd19SynetConvolution16bE", !15, i64 0, !16, i64 8, !23, i64 192, !24, i64 208, !26, i64 240, !27, i64 256, !27, i64 272, !28, i64 288, !28, i64 289, !28, i64 290, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320}
!15 = !{!"_ZTSN4Simd9DeletableE"}
!16 = !{!"_ZTSN4Simd9ConvParamE", !17, i64 0, !21, i64 160, !11, i64 168, !22, i64 176}
!17 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !18, i64 24, !19, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !18, i64 56, !19, 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, !20, i64 152}
!18 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!19 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!20 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!21 = !{!"_ZTS8SimdBool", !7, i64 0}
!22 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!23 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !11, i64 8}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !11, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !11, i64 8}
!27 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!28 = !{!"bool", !7, i64 0}
!29 = !{!17, !11, i64 72}
!30 = !{!17, !11, i64 0}
!31 = !{!11, !11, i64 0}
!32 = !{!17, !11, i64 32}
!33 = !{!17, !11, i64 64}
!34 = !{!10, !11, i64 96}
!35 = !{!10, !11, i64 72}
!36 = !{!37, !37, i64 0}
!37 = !{!"float", !7, i64 0}
!38 = !{!39, !39, i64 0}
!39 = !{!"short", !7, i64 0}
!40 = distinct !{!40, !41}
!41 = !{!"llvm.loop.mustprogress"}
!42 = distinct !{!42, !41}
!43 = distinct !{!43, !41}
!44 = distinct !{!44, !41}
!45 = distinct !{!45, !41}
!46 = !{!47, !11, i64 400}
!47 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV1E", !14, i64 0, !10, i64 328, !48, i64 496, !6, i64 512, !6, i64 520, !6, i64 528}
!48 = !{!"_ZTSN4Simd5ArrayIiEE", !6, i64 0, !11, i64 8}
!49 = distinct !{!49, !41}


; 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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV19SetWeightEPKf(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr nocapture noundef readonly %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 8
  %4 = getelementptr inbounds i8, ptr %0, i64 240
  %5 = getelementptr inbounds i8, ptr %0, i64 368
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 352
  %8 = load i64, ptr %7, align 8, !tbaa !10
  %9 = mul i64 %8, %6
  tail call void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %4, i64 noundef %9, i1 noundef zeroext true, i64 noundef 8)
  %10 = getelementptr inbounds i8, ptr %0, i64 80
  %11 = load i64, ptr %10, align 8, !tbaa !11
  %12 = load i64, ptr %3, align 8, !tbaa !16
  %13 = mul i64 %12, %11
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  %15 = load i64, ptr %14, align 8, !tbaa !17
  %.not = icmp eq i64 %15, 0
  br i1 %.not, label %._crit_edge, label %.preheader54.lr.ph

.preheader54.lr.ph:                               ; preds = %2
  %16 = getelementptr inbounds i8, ptr %0, i64 72
  %.not96 = icmp eq i64 %13, 0
  %17 = getelementptr inbounds i8, ptr %0, i64 424
  %18 = getelementptr inbounds i8, ptr %0, i64 400
  %19 = load i64, ptr %16, align 8, !tbaa !18
  %.not97 = icmp eq i64 %19, 0
  br i1 %.not97, label %._crit_edge, label %.preheader54.preheader

.preheader54.preheader:                           ; preds = %.preheader54.lr.ph
  %20 = load ptr, ptr %4, align 8, !tbaa !19
  br label %.preheader54

.preheader54:                                     ; preds = %.preheader54.preheader, %._crit_edge75
  %21 = phi i64 [ %86, %._crit_edge75 ], [ %15, %.preheader54.preheader ]
  %22 = phi i64 [ %87, %._crit_edge75 ], [ %19, %.preheader54.preheader ]
  %23 = phi i64 [ %88, %._crit_edge75 ], [ %19, %.preheader54.preheader ]
  %.04792 = phi i64 [ %90, %._crit_edge75 ], [ 0, %.preheader54.preheader ]
  %.04891 = phi ptr [ %.1.lcssa, %._crit_edge75 ], [ %20, %.preheader54.preheader ]
  %.not98 = icmp eq i64 %23, 0
  br i1 %.not98, label %._crit_edge75, label %.preheader53.lr.ph

.preheader53.lr.ph:                               ; preds = %.preheader54
  %invariant.gep = getelementptr float, ptr %1, i64 %.04792
  %24 = load i64, ptr %17, align 8
  %.not99 = icmp eq i64 %24, 0
  %or.cond = select i1 %.not96, i1 true, i1 %.not99
  br i1 %or.cond, label %._crit_edge75, label %.preheader53.us

.preheader53.us:                                  ; preds = %.preheader53.lr.ph, %._crit_edge70.us
  %25 = phi i64 [ %79, %._crit_edge70.us ], [ %22, %.preheader53.lr.ph ]
  %26 = phi i64 [ %80, %._crit_edge70.us ], [ %24, %.preheader53.lr.ph ]
  %27 = phi i64 [ %81, %._crit_edge70.us ], [ %24, %.preheader53.lr.ph ]
  %28 = phi i64 [ %82, %._crit_edge70.us ], [ %24, %.preheader53.lr.ph ]
  %29 = phi i64 [ %83, %._crit_edge70.us ], [ 1, %.preheader53.lr.ph ]
  %.04674.us = phi i64 [ %84, %._crit_edge70.us ], [ 0, %.preheader53.lr.ph ]
  %.173.us = phi ptr [ %.us-phi72.us, %._crit_edge70.us ], [ %.04891, %.preheader53.lr.ph ]
  %30 = mul i64 %.04674.us, %13
  %.not100 = icmp eq i64 %29, 0
  br i1 %.not100, label %._crit_edge70.us, label %.preheader52.us83

._crit_edge62.us:                                 ; preds = %._crit_edge.us, %.lr.ph.us, %.preheader52.us83
  %31 = phi i64 [ %62, %.preheader52.us83 ], [ %62, %.lr.ph.us ], [ %42, %._crit_edge.us ]
  %32 = phi i64 [ %63, %.preheader52.us83 ], [ %63, %.lr.ph.us ], [ %43, %._crit_edge.us ]
  %33 = phi i64 [ %64, %.preheader52.us83 ], [ %63, %.lr.ph.us ], [ %44, %._crit_edge.us ]
  %34 = phi i64 [ 0, %.preheader52.us83 ], [ %63, %.lr.ph.us ], [ %44, %._crit_edge.us ]
  %.3.lcssa.us = phi ptr [ %.267.us, %.preheader52.us83 ], [ %.267.us, %.lr.ph.us ], [ %.4.lcssa.us, %._crit_edge.us ]
  %35 = add i64 %34, %.04568.us84
  %36 = icmp ult i64 %35, %13
  br i1 %36, label %.preheader52.us83, label %._crit_edge70.us.loopexit106, !llvm.loop !32

.lr.ph.split.us87:                                ; preds = %.lr.ph.us, %._crit_edge.us
  %37 = phi i64 [ %42, %._crit_edge.us ], [ %62, %.lr.ph.us ]
  %38 = phi i64 [ %43, %._crit_edge.us ], [ %63, %.lr.ph.us ]
  %39 = phi i64 [ %44, %._crit_edge.us ], [ %64, %.lr.ph.us ]
  %40 = phi i64 [ %45, %._crit_edge.us ], [ %78, %.lr.ph.us ]
  %41 = phi i64 [ %46, %._crit_edge.us ], [ 1, %.lr.ph.us ]
  %.04461.us77 = phi i64 [ %47, %._crit_edge.us ], [ 0, %.lr.ph.us ]
  %.360.us = phi ptr [ %.4.lcssa.us, %._crit_edge.us ], [ %.267.us, %.lr.ph.us ]
  %.not103 = icmp eq i64 %41, 0
  br i1 %.not103, label %._crit_edge.us, label %.preheader.lr.ph.us

._crit_edge.us.loopexit:                          ; preds = %.split.us78
  %.pre111 = load i64, ptr %17, align 8, !tbaa !35
  br label %._crit_edge.us

._crit_edge.us:                                   ; preds = %._crit_edge.us.loopexit, %.lr.ph.split.us87
  %42 = phi i64 [ %37, %.lr.ph.split.us87 ], [ %.pre111, %._crit_edge.us.loopexit ]
  %43 = phi i64 [ %38, %.lr.ph.split.us87 ], [ %.pre111, %._crit_edge.us.loopexit ]
  %44 = phi i64 [ %39, %.lr.ph.split.us87 ], [ %.pre111, %._crit_edge.us.loopexit ]
  %45 = phi i64 [ %40, %.lr.ph.split.us87 ], [ %66, %._crit_edge.us.loopexit ]
  %46 = phi i64 [ 0, %.lr.ph.split.us87 ], [ %66, %._crit_edge.us.loopexit ]
  %.4.lcssa.us = phi ptr [ %.360.us, %.lr.ph.split.us87 ], [ %.us-phi.us, %._crit_edge.us.loopexit ]
  %47 = add i64 %.04461.us77, 2
  %48 = icmp ult i64 %47, %44
  br i1 %48, label %.lr.ph.split.us87, label %._crit_edge62.us, !llvm.loop !36

49:                                               ; preds = %.preheader.split.us85.preheader
  %50 = load float, ptr %.04358.us, align 4, !tbaa !37
  %51 = tail call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %50)
  %.pre = load i64, ptr %14, align 8, !tbaa !17
  br label %.preheader.split.us85.1

.preheader.split.us85.1:                          ; preds = %49, %.preheader.split.us85.preheader
  %52 = phi i64 [ %.pre, %49 ], [ %60, %.preheader.split.us85.preheader ]
  %storemerge.us = phi i16 [ %51, %49 ], [ 0, %.preheader.split.us85.preheader ]
  %.6.us82 = getelementptr inbounds i8, ptr %.457.us, i64 2
  store i16 %storemerge.us, ptr %.457.us, align 2, !tbaa !39
  %53 = icmp ult i64 %59, %52
  %or.cond.1 = select i1 %53, i1 %76, i1 false
  br i1 %or.cond.1, label %54, label %.split.us78.loopexit

54:                                               ; preds = %.preheader.split.us85.1
  %55 = getelementptr inbounds float, ptr %.04358.us, i64 %52
  %56 = load float, ptr %55, align 4, !tbaa !37
  %57 = tail call noundef zeroext i16 @_ZN4Simd4Base17Float32ToBFloat16Ef(float noundef %56)
  br label %.split.us78.loopexit

.split.us78.loopexit:                             ; preds = %54, %.preheader.split.us85.1
  %storemerge.us.1 = phi i16 [ %57, %54 ], [ 0, %.preheader.split.us85.1 ]
  store i16 %storemerge.us.1, ptr %.6.us82, align 2, !tbaa !39
  %.pre110 = load i64, ptr %18, align 8, !tbaa !41
  br label %.split.us78

.preheader.us:                                    ; preds = %.preheader.lr.ph.us, %.split.us78
  %58 = phi i64 [ %40, %.preheader.lr.ph.us ], [ %66, %.split.us78 ]
  %.04259.us = phi i64 [ 0, %.preheader.lr.ph.us ], [ %68, %.split.us78 ]
  %.04358.us = phi ptr [ %gep.us, %.preheader.lr.ph.us ], [ %67, %.split.us78 ]
  %.457.us = phi ptr [ %.360.us, %.preheader.lr.ph.us ], [ %.us-phi.us, %.split.us78 ]
  %59 = add i64 %.04259.us, %.04792
  %60 = load i64, ptr %14, align 8, !tbaa !17
  %61 = icmp ult i64 %59, %60
  br i1 %61, label %.preheader.split.us85.preheader, label %.preheader.split.us.us.preheader

.preheader.split.us.us.preheader:                 ; preds = %.preheader.us
  store i32 0, ptr %.457.us, align 2
  br label %.split.us78

.preheader.split.us85.preheader:                  ; preds = %.preheader.us
  br i1 %74, label %49, label %.preheader.split.us85.1

.preheader52.us83:                                ; preds = %.preheader53.us, %._crit_edge62.us
  %62 = phi i64 [ %31, %._crit_edge62.us ], [ %26, %.preheader53.us ]
  %63 = phi i64 [ %32, %._crit_edge62.us ], [ %27, %.preheader53.us ]
  %64 = phi i64 [ %33, %._crit_edge62.us ], [ %28, %.preheader53.us ]
  %65 = phi i64 [ %34, %._crit_edge62.us ], [ 1, %.preheader53.us ]
  %.04568.us84 = phi i64 [ %35, %._crit_edge62.us ], [ 0, %.preheader53.us ]
  %.267.us = phi ptr [ %.3.lcssa.us, %._crit_edge62.us ], [ %.173.us, %.preheader53.us ]
  %.not101 = icmp eq i64 %65, 0
  br i1 %.not101, label %._crit_edge62.us, label %.lr.ph.us

.split.us78:                                      ; preds = %.preheader.split.us.us.preheader, %.split.us78.loopexit
  %66 = phi i64 [ %.pre110, %.split.us78.loopexit ], [ %58, %.preheader.split.us.us.preheader ]
  %.us-phi.us = getelementptr i8, ptr %.457.us, i64 4
  %67 = getelementptr inbounds i8, ptr %.04358.us, i64 4
  %68 = add nuw i64 %.04259.us, 1
  %69 = icmp ult i64 %68, %66
  br i1 %69, label %.preheader.us, label %._crit_edge.us.loopexit, !llvm.loop !42

.preheader.lr.ph.us:                              ; preds = %.lr.ph.split.us87
  %70 = load i64, ptr %14, align 8, !tbaa !17
  %71 = add i64 %77, %.04461.us77
  %72 = mul i64 %70, %71
  %gep.us = getelementptr float, ptr %invariant.gep, i64 %72
  %73 = add i64 %.04461.us77, %.04568.us84
  %74 = icmp ult i64 %73, %13
  %75 = add i64 %73, 1
  %76 = icmp ult i64 %75, %13
  br label %.preheader.us

.lr.ph.us:                                        ; preds = %.preheader52.us83
  %77 = add i64 %.04568.us84, %30
  %78 = load i64, ptr %18, align 8, !tbaa !41
  %.not102 = icmp eq i64 %78, 0
  br i1 %.not102, label %._crit_edge62.us, label %.lr.ph.split.us87

._crit_edge70.us.loopexit106:                     ; preds = %._crit_edge62.us
  %.pre112 = load i64, ptr %16, align 8, !tbaa !18
  br label %._crit_edge70.us

._crit_edge70.us:                                 ; preds = %.preheader53.us, %._crit_edge70.us.loopexit106
  %79 = phi i64 [ %.pre112, %._crit_edge70.us.loopexit106 ], [ %25, %.preheader53.us ]
  %80 = phi i64 [ %31, %._crit_edge70.us.loopexit106 ], [ %26, %.preheader53.us ]
  %81 = phi i64 [ %32, %._crit_edge70.us.loopexit106 ], [ %26, %.preheader53.us ]
  %82 = phi i64 [ %33, %._crit_edge70.us.loopexit106 ], [ %26, %.preheader53.us ]
  %83 = phi i64 [ %34, %._crit_edge70.us.loopexit106 ], [ %26, %.preheader53.us ]
  %.us-phi72.us = phi ptr [ %.3.lcssa.us, %._crit_edge70.us.loopexit106 ], [ %.173.us, %.preheader53.us ]
  %84 = add nuw i64 %.04674.us, 1
  %85 = icmp ult i64 %84, %79
  br i1 %85, label %.preheader53.us, label %._crit_edge75.loopexit108, !llvm.loop !43

._crit_edge:                                      ; preds = %._crit_edge75, %.preheader54.lr.ph, %2
  ret void

._crit_edge75.loopexit108:                        ; preds = %._crit_edge70.us
  %.pre113 = load i64, ptr %14, align 8, !tbaa !17
  br label %._crit_edge75

._crit_edge75:                                    ; preds = %.preheader53.lr.ph, %._crit_edge75.loopexit108, %.preheader54
  %86 = phi i64 [ %21, %.preheader54 ], [ %.pre113, %._crit_edge75.loopexit108 ], [ %21, %.preheader53.lr.ph ]
  %87 = phi i64 [ %22, %.preheader54 ], [ %79, %._crit_edge75.loopexit108 ], [ %22, %.preheader53.lr.ph ]
  %88 = phi i64 [ 0, %.preheader54 ], [ %79, %._crit_edge75.loopexit108 ], [ %23, %.preheader53.lr.ph ]
  %.1.lcssa = phi ptr [ %.04891, %.preheader54 ], [ %.us-phi72.us, %._crit_edge75.loopexit108 ], [ %.04891, %.preheader53.lr.ph ]
  %89 = load i64, ptr %18, align 8, !tbaa !44
  %90 = add i64 %89, %.04792
  %91 = icmp ult i64 %90, %86
  br i1 %91, label %.preheader54, label %._crit_edge, !llvm.loop !47
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayItE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #1 align 2

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

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 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, !7, i64 40}
!6 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV18AlgParamE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 24}
!11 = !{!12, !7, i64 72}
!12 = !{!"_ZTS25SimdConvolutionParameters", !7, i64 0, !7, i64 8, !7, i64 16, !13, i64 24, !14, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !13, i64 56, !14, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !15, i64 152}
!13 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!14 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!15 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!16 = !{!12, !7, i64 0}
!17 = !{!12, !7, i64 32}
!18 = !{!12, !7, i64 64}
!19 = !{!20, !26, i64 240}
!20 = !{!"_ZTSN4Simd19SynetConvolution16bE", !21, i64 0, !22, i64 8, !25, i64 192, !27, i64 208, !29, i64 240, !30, i64 256, !30, i64 272, !31, i64 288, !31, i64 289, !31, i64 290, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320}
!21 = !{!"_ZTSN4Simd9DeletableE"}
!22 = !{!"_ZTSN4Simd9ConvParamE", !12, i64 0, !23, i64 160, !7, i64 168, !24, i64 176}
!23 = !{!"_ZTS8SimdBool", !8, i64 0}
!24 = !{!"_ZTS26SimdSynetCompatibilityType", !8, i64 0}
!25 = !{!"_ZTSN4Simd5ArrayIhEE", !26, i64 0, !7, i64 8}
!26 = !{!"any pointer", !8, i64 0}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !7, i64 8, !8, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !26, i64 0}
!29 = !{!"_ZTSN4Simd5ArrayItEE", !26, i64 0, !7, i64 8}
!30 = !{!"_ZTSN4Simd5ArrayIfEE", !26, i64 0, !7, i64 8}
!31 = !{!"bool", !8, i64 0}
!32 = distinct !{!32, !33, !34}
!33 = !{!"llvm.loop.mustprogress"}
!34 = !{!"llvm.loop.unswitch.partial.disable"}
!35 = !{!6, !7, i64 96}
!36 = distinct !{!36, !33, !34}
!37 = !{!38, !38, i64 0}
!38 = !{!"float", !8, i64 0}
!39 = !{!40, !40, i64 0}
!40 = !{!"short", !8, i64 0}
!41 = !{!6, !7, i64 72}
!42 = distinct !{!42, !33}
!43 = distinct !{!43, !33, !34}
!44 = !{!45, !7, i64 400}
!45 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV1E", !20, i64 0, !6, i64 328, !46, i64 496, !26, i64 512, !26, i64 520, !26, i64 528}
!46 = !{!"_ZTSN4Simd5ArrayIiEE", !26, i64 0, !7, i64 8}
!47 = distinct !{!47, !33, !34}


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