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

; 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.Simd::Array.1" = type { ptr, i64 }
%"class.Simd::SynetInnerProduct16b" = type { %"struct.Simd::Deletable", %"struct.Simd::InnerProductParam16b", %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.1", %"class.std::__cxx11::basic_string", i64, i64, i64 }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::InnerProductParam16b" = type { i64, i64, i64, i32, i32, i32, i32, i32, i32 }
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Array.0" = 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

declare i32 @__gxx_personality_v0(...)

; 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 @_ZN4Simd4Base23SynetInnerProduct16bRef11GemmAndBiasEPKtS3_Pf(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 personality ptr @__gxx_personality_v0 {
  %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 %"struct.Simd::Array.1", align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca ptr, align 8
  %22 = alloca i64, align 8
  %23 = 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
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %25 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %24, i32 0, i32 1
  store ptr %25, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %10) #5
  %26 = load ptr, ptr %9, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %26, i32 0, i32 2
  %28 = load i64, ptr %27, align 8, !tbaa !9
  call void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %28, i1 noundef zeroext false, i64 noundef 8)
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !14
  br label %29

29:                                               ; preds = %223, %4
  %30 = load i64, ptr %11, align 8, !tbaa !14
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %31, i32 0, i32 0
  %33 = load i64, ptr %32, align 8, !tbaa !15
  %34 = icmp ult i64 %30, %33
  br i1 %34, label %36, label %35

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

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !14
  br label %37

37:                                               ; preds = %54, %36
  %38 = load i64, ptr %13, align 8, !tbaa !14
  %39 = load ptr, ptr %9, align 8, !tbaa !5
  %40 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %39, i32 0, i32 2
  %41 = load i64, ptr %40, align 8, !tbaa !9
  %42 = icmp ult i64 %38, %41
  br i1 %42, label %44, label %43

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

44:                                               ; preds = %37
  %45 = load ptr, ptr %6, align 8, !tbaa !5
  %46 = load i64, ptr %13, align 8, !tbaa !14
  %47 = getelementptr inbounds i16, ptr %45, i64 %46
  %48 = load i16, ptr %47, align 2, !tbaa !16
  %49 = invoke noundef float @_ZN4Simd4Base17BFloat16ToFloat32Et(i16 noundef zeroext %48)
          to label %50 unwind label %57

50:                                               ; preds = %44
  %51 = load i64, ptr %13, align 8, !tbaa !14
  %52 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %51)
          to label %53 unwind label %57

53:                                               ; preds = %50
  store float %49, ptr %52, align 4, !tbaa !18
  br label %54

54:                                               ; preds = %53
  %55 = load i64, ptr %13, align 8, !tbaa !14
  %56 = add i64 %55, 1
  store i64 %56, ptr %13, align 8, !tbaa !14
  br label %37, !llvm.loop !20

57:                                               ; preds = %50, %44
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %14, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %226

61:                                               ; preds = %43
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %62, i32 0, i32 6
  %64 = load i32, ptr %63, align 4, !tbaa !22
  %65 = icmp ne i32 %64, 0
  br i1 %65, label %66, label %120

66:                                               ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store i64 0, ptr %16, align 8, !tbaa !14
  br label %67

67:                                               ; preds = %116, %66
  %68 = load i64, ptr %16, align 8, !tbaa !14
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %69, i32 0, i32 1
  %71 = load i64, ptr %70, align 8, !tbaa !23
  %72 = icmp ult i64 %68, %71
  br i1 %72, label %74, label %73

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

74:                                               ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  %75 = load ptr, ptr %7, align 8, !tbaa !5
  %76 = load i64, ptr %16, align 8, !tbaa !14
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %77, i32 0, i32 2
  %79 = load i64, ptr %78, align 8, !tbaa !9
  %80 = mul i64 %76, %79
  %81 = getelementptr inbounds i16, ptr %75, i64 %80
  store ptr %81, ptr %17, align 8, !tbaa !5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  %83 = load i64, ptr %16, align 8, !tbaa !14
  %84 = getelementptr inbounds float, ptr %82, i64 %83
  store float 0.000000e+00, ptr %84, align 4, !tbaa !18
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  store i64 0, ptr %18, align 8, !tbaa !14
  br label %85

85:                                               ; preds = %108, %74
  %86 = load i64, ptr %18, align 8, !tbaa !14
  %87 = load ptr, ptr %9, align 8, !tbaa !5
  %88 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %87, i32 0, i32 2
  %89 = load i64, ptr %88, align 8, !tbaa !9
  %90 = icmp ult i64 %86, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %85
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  br label %115

92:                                               ; preds = %85
  %93 = load i64, ptr %18, align 8, !tbaa !14
  %94 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %93)
          to label %95 unwind label %111

95:                                               ; preds = %92
  %96 = load float, ptr %94, align 4, !tbaa !18
  %97 = load ptr, ptr %17, align 8, !tbaa !5
  %98 = load i64, ptr %18, align 8, !tbaa !14
  %99 = getelementptr inbounds i16, ptr %97, i64 %98
  %100 = load i16, ptr %99, align 2, !tbaa !16
  %101 = invoke noundef float @_ZN4Simd4Base17BFloat16ToFloat32Et(i16 noundef zeroext %100)
          to label %102 unwind label %111

102:                                              ; preds = %95
  %103 = load ptr, ptr %8, align 8, !tbaa !5
  %104 = load i64, ptr %16, align 8, !tbaa !14
  %105 = getelementptr inbounds float, ptr %103, i64 %104
  %106 = load float, ptr %105, align 4, !tbaa !18
  %107 = call float @llvm.fmuladd.f32(float %96, float %101, float %106)
  store float %107, ptr %105, align 4, !tbaa !18
  br label %108

108:                                              ; preds = %102
  %109 = load i64, ptr %18, align 8, !tbaa !14
  %110 = add i64 %109, 1
  store i64 %110, ptr %18, align 8, !tbaa !14
  br label %85, !llvm.loop !24

111:                                              ; preds = %95, %92
  %112 = landingpad { ptr, i32 }
          cleanup
  %113 = extractvalue { ptr, i32 } %112, 0
  store ptr %113, ptr %14, align 8
  %114 = extractvalue { ptr, i32 } %112, 1
  store i32 %114, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  br label %226

115:                                              ; preds = %91
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  br label %116

116:                                              ; preds = %115
  %117 = load i64, ptr %16, align 8, !tbaa !14
  %118 = add i64 %117, 1
  store i64 %118, ptr %16, align 8, !tbaa !14
  br label %67, !llvm.loop !25

119:                                              ; preds = %73
  br label %186

120:                                              ; preds = %61
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  store i64 0, ptr %19, align 8, !tbaa !14
  br label %121

121:                                              ; preds = %132, %120
  %122 = load i64, ptr %19, align 8, !tbaa !14
  %123 = load ptr, ptr %9, align 8, !tbaa !5
  %124 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %123, i32 0, i32 1
  %125 = load i64, ptr %124, align 8, !tbaa !23
  %126 = icmp ult i64 %122, %125
  br i1 %126, label %128, label %127

127:                                              ; preds = %121
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  br label %135

128:                                              ; preds = %121
  %129 = load ptr, ptr %8, align 8, !tbaa !5
  %130 = load i64, ptr %19, align 8, !tbaa !14
  %131 = getelementptr inbounds float, ptr %129, i64 %130
  store float 0.000000e+00, ptr %131, align 4, !tbaa !18
  br label %132

132:                                              ; preds = %128
  %133 = load i64, ptr %19, align 8, !tbaa !14
  %134 = add i64 %133, 1
  store i64 %134, ptr %19, align 8, !tbaa !14
  br label %121, !llvm.loop !26

135:                                              ; preds = %127
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  store i64 0, ptr %20, align 8, !tbaa !14
  br label %136

136:                                              ; preds = %182, %135
  %137 = load i64, ptr %20, align 8, !tbaa !14
  %138 = load ptr, ptr %9, align 8, !tbaa !5
  %139 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %138, i32 0, i32 2
  %140 = load i64, ptr %139, align 8, !tbaa !9
  %141 = icmp ult i64 %137, %140
  br i1 %141, label %143, label %142

142:                                              ; preds = %136
  store i32 17, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %185

143:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #5
  %144 = load ptr, ptr %7, align 8, !tbaa !5
  %145 = load i64, ptr %20, align 8, !tbaa !14
  %146 = load ptr, ptr %9, align 8, !tbaa !5
  %147 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %146, i32 0, i32 1
  %148 = load i64, ptr %147, align 8, !tbaa !23
  %149 = mul i64 %145, %148
  %150 = getelementptr inbounds i16, ptr %144, i64 %149
  store ptr %150, ptr %21, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  store i64 0, ptr %22, align 8, !tbaa !14
  br label %151

151:                                              ; preds = %174, %143
  %152 = load i64, ptr %22, align 8, !tbaa !14
  %153 = load ptr, ptr %9, align 8, !tbaa !5
  %154 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %153, i32 0, i32 1
  %155 = load i64, ptr %154, align 8, !tbaa !23
  %156 = icmp ult i64 %152, %155
  br i1 %156, label %158, label %157

157:                                              ; preds = %151
  store i32 20, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %181

158:                                              ; preds = %151
  %159 = load i64, ptr %20, align 8, !tbaa !14
  %160 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %10, i64 noundef %159)
          to label %161 unwind label %177

161:                                              ; preds = %158
  %162 = load float, ptr %160, align 4, !tbaa !18
  %163 = load ptr, ptr %21, align 8, !tbaa !5
  %164 = load i64, ptr %22, align 8, !tbaa !14
  %165 = getelementptr inbounds i16, ptr %163, i64 %164
  %166 = load i16, ptr %165, align 2, !tbaa !16
  %167 = invoke noundef float @_ZN4Simd4Base17BFloat16ToFloat32Et(i16 noundef zeroext %166)
          to label %168 unwind label %177

168:                                              ; preds = %161
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = load i64, ptr %22, align 8, !tbaa !14
  %171 = getelementptr inbounds float, ptr %169, i64 %170
  %172 = load float, ptr %171, align 4, !tbaa !18
  %173 = call float @llvm.fmuladd.f32(float %162, float %167, float %172)
  store float %173, ptr %171, align 4, !tbaa !18
  br label %174

174:                                              ; preds = %168
  %175 = load i64, ptr %22, align 8, !tbaa !14
  %176 = add i64 %175, 1
  store i64 %176, ptr %22, align 8, !tbaa !14
  br label %151, !llvm.loop !27

177:                                              ; preds = %161, %158
  %178 = landingpad { ptr, i32 }
          cleanup
  %179 = extractvalue { ptr, i32 } %178, 0
  store ptr %179, ptr %14, align 8
  %180 = extractvalue { ptr, i32 } %178, 1
  store i32 %180, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %226

181:                                              ; preds = %157
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #5
  br label %182

182:                                              ; preds = %181
  %183 = load i64, ptr %20, align 8, !tbaa !14
  %184 = add i64 %183, 1
  store i64 %184, ptr %20, align 8, !tbaa !14
  br label %136, !llvm.loop !28

185:                                              ; preds = %142
  br label %186

186:                                              ; preds = %185, %119
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  store i64 0, ptr %23, align 8, !tbaa !14
  br label %187

187:                                              ; preds = %205, %186
  %188 = load i64, ptr %23, align 8, !tbaa !14
  %189 = load ptr, ptr %9, align 8, !tbaa !5
  %190 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %189, i32 0, i32 1
  %191 = load i64, ptr %190, align 8, !tbaa !23
  %192 = icmp ult i64 %188, %191
  br i1 %192, label %194, label %193

193:                                              ; preds = %187
  store i32 23, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %212

194:                                              ; preds = %187
  %195 = getelementptr inbounds %"class.Simd::SynetInnerProduct16b", ptr %24, i32 0, i32 4
  %196 = load i64, ptr %23, align 8, !tbaa !14
  %197 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %195, i64 noundef %196)
          to label %198 unwind label %208

198:                                              ; preds = %194
  %199 = load float, ptr %197, align 4, !tbaa !18
  %200 = load ptr, ptr %8, align 8, !tbaa !5
  %201 = load i64, ptr %23, align 8, !tbaa !14
  %202 = getelementptr inbounds float, ptr %200, i64 %201
  %203 = load float, ptr %202, align 4, !tbaa !18
  %204 = fadd float %203, %199
  store float %204, ptr %202, align 4, !tbaa !18
  br label %205

205:                                              ; preds = %198
  %206 = load i64, ptr %23, align 8, !tbaa !14
  %207 = add i64 %206, 1
  store i64 %207, ptr %23, align 8, !tbaa !14
  br label %187, !llvm.loop !29

208:                                              ; preds = %194
  %209 = landingpad { ptr, i32 }
          cleanup
  %210 = extractvalue { ptr, i32 } %209, 0
  store ptr %210, ptr %14, align 8
  %211 = extractvalue { ptr, i32 } %209, 1
  store i32 %211, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  br label %226

212:                                              ; preds = %193
  %213 = load ptr, ptr %9, align 8, !tbaa !5
  %214 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %213, i32 0, i32 2
  %215 = load i64, ptr %214, align 8, !tbaa !9
  %216 = load ptr, ptr %6, align 8, !tbaa !5
  %217 = getelementptr inbounds i16, ptr %216, i64 %215
  store ptr %217, ptr %6, align 8, !tbaa !5
  %218 = load ptr, ptr %9, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.Simd::InnerProductParam16b", ptr %218, i32 0, i32 1
  %220 = load i64, ptr %219, align 8, !tbaa !23
  %221 = load ptr, ptr %8, align 8, !tbaa !5
  %222 = getelementptr inbounds float, ptr %221, i64 %220
  store ptr %222, ptr %8, align 8, !tbaa !5
  br label %223

223:                                              ; preds = %212
  %224 = load i64, ptr %11, align 8, !tbaa !14
  %225 = add i64 %224, 1
  store i64 %225, ptr %11, align 8, !tbaa !14
  br label %29, !llvm.loop !30

226:                                              ; preds = %208, %177, %111, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  br label %228

227:                                              ; preds = %35
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %10) #5
  call void @llvm.lifetime.end.p0(i64 16, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  ret void

228:                                              ; preds = %226
  %229 = load ptr, ptr %14, align 8
  %230 = load i32, ptr %15, align 4
  %231 = insertvalue { ptr, i32 } poison, ptr %229, 0
  %232 = insertvalue { ptr, i32 } %231, i32 %230, 1
  resume { ptr, i32 } %232
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 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 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 16}
!10 = !{!"_ZTSN4Simd20InnerProductParam16bE", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !12, i64 28, !12, i64 32, !13, i64 36, !13, i64 40, !13, i64 44}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!13 = !{!"_ZTS8SimdBool", !7, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !11, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"short", !7, i64 0}
!18 = !{!19, !19, i64 0}
!19 = !{!"float", !7, i64 0}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}
!22 = !{!10, !13, i64 36}
!23 = !{!10, !11, i64 8}
!24 = distinct !{!24, !21}
!25 = distinct !{!25, !21}
!26 = distinct !{!26, !21}
!27 = distinct !{!27, !21}
!28 = distinct !{!28, !21}
!29 = distinct !{!29, !21}
!30 = distinct !{!30, !21}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"struct.Simd::Array.1" = type { ptr, i64 }

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.start.p0(i64 immarg, ptr nocapture) #0

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress 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 @_ZN4Simd4Base23SynetInnerProduct16bRef11GemmAndBiasEPKtS3_Pf(ptr noundef nonnull align 8 dereferenceable(160) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef %3) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"struct.Simd::Array.1", align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %7 = getelementptr inbounds i8, ptr %0, i64 24
  %8 = load i64, ptr %7, align 8, !tbaa !5
  call void @_ZN4Simd5ArrayIfEC2Embm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %8, i1 noundef zeroext false, i64 noundef 8)
  %9 = load i64, ptr %6, align 8, !tbaa !12
  %.not100 = icmp eq i64 %9, 0
  br i1 %.not100, label %._crit_edge99, label %.preheader74.lr.ph

.preheader74.lr.ph:                               ; preds = %4
  %10 = getelementptr inbounds i8, ptr %0, i64 44
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = getelementptr inbounds i8, ptr %0, i64 88
  %.pre = load i64, ptr %7, align 8, !tbaa !5
  br label %.preheader74

.preheader74:                                     ; preds = %.preheader74.lr.ph, %._crit_edge94
  %13 = phi i64 [ %.pre, %.preheader74.lr.ph ], [ %80, %._crit_edge94 ]
  %.05998 = phi ptr [ %1, %.preheader74.lr.ph ], [ %81, %._crit_edge94 ]
  %.06396 = phi ptr [ %3, %.preheader74.lr.ph ], [ %82, %._crit_edge94 ]
  %.06895 = phi i64 [ 0, %.preheader74.lr.ph ], [ %83, %._crit_edge94 ]
  %.not101 = icmp eq i64 %13, 0
  br i1 %.not101, label %._crit_edge, label %.lr.ph

._crit_edge99:                                    ; preds = %._crit_edge94, %4
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  ret void

._crit_edge:                                      ; preds = %21, %.preheader74
  %14 = phi i64 [ 0, %.preheader74 ], [ %24, %21 ]
  %15 = load i32, ptr %10, align 4, !tbaa !13
  %.not = icmp eq i32 %15, 0
  %16 = load i64, ptr %11, align 8, !tbaa !14
  %.not104 = icmp eq i64 %16, 0
  br i1 %.not, label %.preheader71, label %.preheader72

.preheader72:                                     ; preds = %._crit_edge
  br i1 %.not104, label %._crit_edge94, label %.lr.ph82

.preheader71:                                     ; preds = %._crit_edge
  br i1 %.not104, label %.preheader, label %.lr.ph84.preheader

.lr.ph84.preheader:                               ; preds = %.preheader71
  %17 = shl nuw i64 %16, 2
  call void @llvm.memset.p0.i64(ptr align 4 %.06396, i8 0, i64 %17, i1 false), !tbaa !15
  br label %.preheader

.lr.ph:                                           ; preds = %.preheader74, %21
  %.06776 = phi i64 [ %23, %21 ], [ 0, %.preheader74 ]
  %18 = getelementptr inbounds i16, ptr %.05998, i64 %.06776
  %19 = load i16, ptr %18, align 2, !tbaa !17
  %20 = invoke noundef float @_ZN4Simd4Base17BFloat16ToFloat32Et(i16 noundef zeroext %19)
          to label %21 unwind label %26

21:                                               ; preds = %.lr.ph
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %.06776)
  store float %20, ptr %22, align 4, !tbaa !15
  %23 = add nuw i64 %.06776, 1
  %24 = load i64, ptr %7, align 8, !tbaa !5
  %25 = icmp ult i64 %23, %24
  br i1 %25, label %.lr.ph, label %._crit_edge, !llvm.loop !19

26:                                               ; preds = %.lr.ph
  %27 = landingpad { ptr, i32 }
          cleanup
  br label %94

.lr.ph82:                                         ; preds = %.preheader72, %._crit_edge80
  %28 = phi i64 [ %34, %._crit_edge80 ], [ %14, %.preheader72 ]
  %29 = phi i64 [ %35, %._crit_edge80 ], [ %16, %.preheader72 ]
  %30 = phi i64 [ %36, %._crit_edge80 ], [ %14, %.preheader72 ]
  %.06481 = phi i64 [ %37, %._crit_edge80 ], [ 0, %.preheader72 ]
  %31 = mul i64 %30, %.06481
  %32 = getelementptr inbounds i16, ptr %2, i64 %31
  %33 = getelementptr inbounds float, ptr %.06396, i64 %.06481
  store float 0.000000e+00, ptr %33, align 4, !tbaa !15
  %.not103 = icmp eq i64 %30, 0
  br i1 %.not103, label %._crit_edge80, label %.lr.ph79

._crit_edge80.loopexit:                           ; preds = %44
  %.pre109 = load i64, ptr %11, align 8, !tbaa !14
  br label %._crit_edge80

._crit_edge80:                                    ; preds = %._crit_edge80.loopexit, %.lr.ph82
  %34 = phi i64 [ %48, %._crit_edge80.loopexit ], [ %28, %.lr.ph82 ]
  %35 = phi i64 [ %.pre109, %._crit_edge80.loopexit ], [ %29, %.lr.ph82 ]
  %36 = phi i64 [ %48, %._crit_edge80.loopexit ], [ 0, %.lr.ph82 ]
  %37 = add nuw i64 %.06481, 1
  %38 = icmp ult i64 %37, %35
  br i1 %38, label %.lr.ph82, label %.loopexit, !llvm.loop !21

.lr.ph79:                                         ; preds = %.lr.ph82, %44
  %.06277 = phi i64 [ %47, %44 ], [ 0, %.lr.ph82 ]
  %39 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %.06277)
  %40 = load float, ptr %39, align 4, !tbaa !15
  %41 = getelementptr inbounds i16, ptr %32, i64 %.06277
  %42 = load i16, ptr %41, align 2, !tbaa !17
  %43 = invoke noundef float @_ZN4Simd4Base17BFloat16ToFloat32Et(i16 noundef zeroext %42)
          to label %44 unwind label %50

44:                                               ; preds = %.lr.ph79
  %45 = load float, ptr %33, align 4, !tbaa !15
  %46 = call float @llvm.fmuladd.f32(float %40, float %43, float %45)
  store float %46, ptr %33, align 4, !tbaa !15
  %47 = add nuw i64 %.06277, 1
  %48 = load i64, ptr %7, align 8, !tbaa !5
  %49 = icmp ult i64 %47, %48
  br i1 %49, label %.lr.ph79, label %._crit_edge80.loopexit, !llvm.loop !22

50:                                               ; preds = %.lr.ph79
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %94

.preheader:                                       ; preds = %.lr.ph84.preheader, %.preheader71
  %.not105 = icmp eq i64 %14, 0
  br i1 %.not105, label %.loopexit, label %.lr.ph90

.lr.ph90:                                         ; preds = %.preheader, %._crit_edge88
  %52 = phi i64 [ %58, %._crit_edge88 ], [ %14, %.preheader ]
  %53 = phi i64 [ %59, %._crit_edge88 ], [ %16, %.preheader ]
  %54 = phi i64 [ %60, %._crit_edge88 ], [ %14, %.preheader ]
  %55 = phi i64 [ %61, %._crit_edge88 ], [ %16, %.preheader ]
  %.06089 = phi i64 [ %62, %._crit_edge88 ], [ 0, %.preheader ]
  %56 = mul i64 %55, %.06089
  %57 = getelementptr inbounds i16, ptr %2, i64 %56
  %.not106 = icmp eq i64 %55, 0
  br i1 %.not106, label %._crit_edge88, label %.lr.ph87

._crit_edge88.loopexit:                           ; preds = %69
  %.pre110 = load i64, ptr %7, align 8, !tbaa !5
  br label %._crit_edge88

._crit_edge88:                                    ; preds = %._crit_edge88.loopexit, %.lr.ph90
  %58 = phi i64 [ %.pre110, %._crit_edge88.loopexit ], [ %52, %.lr.ph90 ]
  %59 = phi i64 [ %74, %._crit_edge88.loopexit ], [ %53, %.lr.ph90 ]
  %60 = phi i64 [ %.pre110, %._crit_edge88.loopexit ], [ %54, %.lr.ph90 ]
  %61 = phi i64 [ %74, %._crit_edge88.loopexit ], [ 0, %.lr.ph90 ]
  %62 = add nuw i64 %.06089, 1
  %63 = icmp ult i64 %62, %60
  br i1 %63, label %.lr.ph90, label %.loopexit, !llvm.loop !23

.lr.ph87:                                         ; preds = %.lr.ph90, %69
  %.05885 = phi i64 [ %73, %69 ], [ 0, %.lr.ph90 ]
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %5, i64 noundef %.06089)
  %65 = load float, ptr %64, align 4, !tbaa !15
  %66 = getelementptr inbounds i16, ptr %57, i64 %.05885
  %67 = load i16, ptr %66, align 2, !tbaa !17
  %68 = invoke noundef float @_ZN4Simd4Base17BFloat16ToFloat32Et(i16 noundef zeroext %67)
          to label %69 unwind label %76

69:                                               ; preds = %.lr.ph87
  %70 = getelementptr inbounds float, ptr %.06396, i64 %.05885
  %71 = load float, ptr %70, align 4, !tbaa !15
  %72 = call float @llvm.fmuladd.f32(float %65, float %68, float %71)
  store float %72, ptr %70, align 4, !tbaa !15
  %73 = add nuw i64 %.05885, 1
  %74 = load i64, ptr %11, align 8, !tbaa !14
  %75 = icmp ult i64 %73, %74
  br i1 %75, label %.lr.ph87, label %._crit_edge88.loopexit, !llvm.loop !24

76:                                               ; preds = %.lr.ph87
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %94

.loopexit:                                        ; preds = %._crit_edge80, %._crit_edge88, %.preheader
  %78 = phi i64 [ 0, %.preheader ], [ %58, %._crit_edge88 ], [ %34, %._crit_edge80 ]
  %79 = phi i64 [ %16, %.preheader ], [ %59, %._crit_edge88 ], [ %35, %._crit_edge80 ]
  %.not107 = icmp eq i64 %79, 0
  br i1 %.not107, label %._crit_edge94, label %.lr.ph93

._crit_edge94.loopexit:                           ; preds = %.lr.ph93
  %.pre111 = load i64, ptr %7, align 8, !tbaa !5
  br label %._crit_edge94

._crit_edge94:                                    ; preds = %.preheader72, %._crit_edge94.loopexit, %.loopexit
  %80 = phi i64 [ %78, %.loopexit ], [ %.pre111, %._crit_edge94.loopexit ], [ %14, %.preheader72 ]
  %.lcssa75 = phi i64 [ 0, %.loopexit ], [ %92, %._crit_edge94.loopexit ], [ 0, %.preheader72 ]
  %81 = getelementptr inbounds i16, ptr %.05998, i64 %80
  %82 = getelementptr inbounds float, ptr %.06396, i64 %.lcssa75
  %83 = add nuw i64 %.06895, 1
  %84 = load i64, ptr %6, align 8, !tbaa !12
  %85 = icmp ult i64 %83, %84
  br i1 %85, label %.preheader74, label %._crit_edge99, !llvm.loop !25

.lr.ph93:                                         ; preds = %.loopexit, %.lr.ph93
  %.091 = phi i64 [ %91, %.lr.ph93 ], [ 0, %.loopexit ]
  %86 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16) %12, i64 noundef %.091)
  %87 = load float, ptr %86, align 4, !tbaa !15
  %88 = getelementptr inbounds float, ptr %.06396, i64 %.091
  %89 = load float, ptr %88, align 4, !tbaa !15
  %90 = fadd float %87, %89
  store float %90, ptr %88, align 4, !tbaa !15
  %91 = add nuw i64 %.091, 1
  %92 = load i64, ptr %11, align 8, !tbaa !14
  %93 = icmp ult i64 %91, %92
  br i1 %93, label %.lr.ph93, label %._crit_edge94.loopexit, !llvm.loop !26

94:                                               ; preds = %76, %50, %26
  %.pn = phi { ptr, i32 } [ %27, %26 ], [ %51, %50 ], [ %77, %76 ]
  call void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16) %5) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN4Simd5ArrayIfEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #4

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd5ArrayIfED2Ev(ptr noundef nonnull align 8 dereferenceable(16)) unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { mustprogress 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 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { 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, !7, i64 16}
!6 = !{!"_ZTSN4Simd20InnerProductParam16bE", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28, !10, i64 32, !11, i64 36, !11, i64 40, !11, i64 44}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!11 = !{!"_ZTS8SimdBool", !8, i64 0}
!12 = !{!6, !7, i64 0}
!13 = !{!6, !11, i64 36}
!14 = !{!6, !7, i64 8}
!15 = !{!16, !16, i64 0}
!16 = !{!"float", !8, i64 0}
!17 = !{!18, !18, i64 0}
!18 = !{!"short", !8, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = distinct !{!21, !20}
!22 = distinct !{!22, !20}
!23 = distinct !{!23, !20}
!24 = distinct !{!24, !20}
!25 = distinct !{!25, !20}
!26 = distinct !{!26, !20}


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