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

; 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::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] }
%"class.Simd::Base::SynetConvolution32fWinograd" = type { %"class.Simd::SynetConvolution32f", i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %"struct.Simd::Array", ptr, ptr, ptr }

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev() #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetConvolution32fWinograd8SetBlockEmm(ptr noundef nonnull align 8 dereferenceable(624) %0, i64 noundef %1, i64 noundef %2) #2 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i64 %1, ptr %5, align 8, !tbaa !9
  store i64 %2, ptr %6, align 8, !tbaa !9
  %13 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %14 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %13, i32 0, i32 1
  store ptr %14, ptr %7, align 8, !tbaa !5
  %15 = load i64, ptr %5, align 8, !tbaa !9
  %16 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 2
  store i64 %15, ptr %16, align 8, !tbaa !11
  %17 = load i64, ptr %6, align 8, !tbaa !9
  %18 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 3
  store i64 %17, ptr %18, align 8, !tbaa !36
  %19 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 2
  %20 = load i64, ptr %19, align 8, !tbaa !11
  %21 = load ptr, ptr %7, align 8, !tbaa !5
  %22 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %21, i32 0, i32 10
  %23 = load i64, ptr %22, align 8, !tbaa !37
  %24 = add i64 %20, %23
  %25 = sub i64 %24, 1
  %26 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 3
  %27 = load i64, ptr %26, align 8, !tbaa !36
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %28, i32 0, i32 11
  %30 = load i64, ptr %29, align 8, !tbaa !38
  %31 = add i64 %27, %30
  %32 = sub i64 %31, 1
  %33 = mul i64 %25, %32
  %34 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 1
  store i64 %33, ptr %34, align 8, !tbaa !39
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %35, i32 0, i32 6
  %37 = load i64, ptr %36, align 8, !tbaa !40
  %38 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 2
  %39 = load i64, ptr %38, align 8, !tbaa !11
  %40 = add i64 %37, %39
  %41 = sub i64 %40, 1
  %42 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 2
  %43 = load i64, ptr %42, align 8, !tbaa !11
  %44 = udiv i64 %41, %43
  %45 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  store i64 %44, ptr %45, align 8, !tbaa !41
  %46 = load ptr, ptr %7, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %46, i32 0, i32 7
  %48 = load i64, ptr %47, align 8, !tbaa !42
  %49 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 3
  %50 = load i64, ptr %49, align 8, !tbaa !36
  %51 = add i64 %48, %50
  %52 = sub i64 %51, 1
  %53 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 3
  %54 = load i64, ptr %53, align 8, !tbaa !36
  %55 = udiv i64 %52, %54
  %56 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 5
  store i64 %55, ptr %56, align 8, !tbaa !43
  %57 = load ptr, ptr %7, align 8, !tbaa !5
  %58 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %57, i32 0, i32 0
  %59 = load i64, ptr %58, align 8, !tbaa !44
  %60 = load ptr, ptr %7, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %60, i32 0, i32 5
  %62 = load i64, ptr %61, align 8, !tbaa !45
  %63 = mul i64 %59, %62
  %64 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 6
  store i64 %63, ptr %64, align 8, !tbaa !46
  %65 = load ptr, ptr %7, align 8, !tbaa !5
  %66 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %65, i32 0, i32 1
  %67 = load i32, ptr %66, align 8, !tbaa !47
  %68 = icmp ne i32 %67, 0
  br i1 %68, label %69, label %75

69:                                               ; preds = %3
  %70 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 5
  %71 = load i64, ptr %70, align 8, !tbaa !43
  %72 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %73 = load i64, ptr %72, align 8, !tbaa !41
  %74 = mul i64 %71, %73
  br label %79

75:                                               ; preds = %3
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %76, i32 0, i32 5
  %78 = load i64, ptr %77, align 8, !tbaa !45
  br label %79

79:                                               ; preds = %75, %69
  %80 = phi i64 [ %74, %69 ], [ %78, %75 ]
  %81 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 9
  store i64 %80, ptr %81, align 8, !tbaa !48
  %82 = load ptr, ptr %7, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %82, i32 0, i32 1
  %84 = load i32, ptr %83, align 8, !tbaa !47
  %85 = icmp ne i32 %84, 0
  br i1 %85, label %86, label %90

86:                                               ; preds = %79
  %87 = load ptr, ptr %7, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %87, i32 0, i32 5
  %89 = load i64, ptr %88, align 8, !tbaa !45
  br label %96

90:                                               ; preds = %79
  %91 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 5
  %92 = load i64, ptr %91, align 8, !tbaa !43
  %93 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %94 = load i64, ptr %93, align 8, !tbaa !41
  %95 = mul i64 %92, %94
  br label %96

96:                                               ; preds = %90, %86
  %97 = phi i64 [ %89, %86 ], [ %95, %90 ]
  %98 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 10
  store i64 %97, ptr %98, align 8, !tbaa !49
  %99 = load ptr, ptr %7, align 8, !tbaa !5
  %100 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %99, i32 0, i32 0
  %101 = load i64, ptr %100, align 8, !tbaa !44
  %102 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 11
  store i64 %101, ptr %102, align 8, !tbaa !50
  %103 = load ptr, ptr %7, align 8, !tbaa !5
  %104 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %103, i32 0, i32 3
  %105 = load i64, ptr %104, align 8, !tbaa !51
  %106 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 12
  store i64 %105, ptr %106, align 8, !tbaa !52
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %107, i32 0, i32 0
  %109 = load i64, ptr %108, align 8, !tbaa !44
  %110 = load ptr, ptr %7, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %110, i32 0, i32 1
  %112 = load i64, ptr %111, align 8, !tbaa !53
  %113 = mul i64 %109, %112
  %114 = load ptr, ptr %7, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %114, i32 0, i32 2
  %116 = load i64, ptr %115, align 8, !tbaa !54
  %117 = mul i64 %113, %116
  %118 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 13
  store i64 %117, ptr %118, align 8, !tbaa !55
  %119 = load ptr, ptr %7, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %119, i32 0, i32 5
  %121 = load i64, ptr %120, align 8, !tbaa !45
  %122 = load ptr, ptr %7, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %122, i32 0, i32 6
  %124 = load i64, ptr %123, align 8, !tbaa !40
  %125 = mul i64 %121, %124
  %126 = load ptr, ptr %7, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %126, i32 0, i32 7
  %128 = load i64, ptr %127, align 8, !tbaa !42
  %129 = mul i64 %125, %128
  %130 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 14
  store i64 %129, ptr %130, align 8, !tbaa !56
  %131 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 16
  store i64 1, ptr %131, align 8, !tbaa !57
  %132 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  store i64 1, ptr %132, align 8, !tbaa !58
  %133 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %134 = load i64, ptr %133, align 8, !tbaa !41
  %135 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  store i64 %134, ptr %135, align 8, !tbaa !59
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %136, i32 0, i32 1
  %138 = load i32, ptr %137, align 8, !tbaa !47
  %139 = icmp ne i32 %138, 0
  br i1 %139, label %140, label %288

140:                                              ; preds = %96
  %141 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 12
  %142 = load i64, ptr %141, align 8, !tbaa !52
  %143 = icmp ugt i64 %142, 1
  br i1 %143, label %144, label %171

144:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  store i64 1, ptr %8, align 8, !tbaa !9
  br label %145

145:                                              ; preds = %167, %144
  %146 = load i64, ptr %8, align 8, !tbaa !9
  %147 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 12
  %148 = load i64, ptr %147, align 8, !tbaa !52
  %149 = icmp ule i64 %146, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  br label %170

151:                                              ; preds = %145
  %152 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 12
  %153 = load i64, ptr %152, align 8, !tbaa !52
  %154 = load i64, ptr %8, align 8, !tbaa !9
  %155 = urem i64 %153, %154
  %156 = icmp eq i64 %155, 0
  br i1 %156, label %157, label %166

157:                                              ; preds = %151
  %158 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 9
  %159 = load i64, ptr %158, align 8, !tbaa !48
  %160 = load i64, ptr %8, align 8, !tbaa !9
  %161 = mul i64 %159, %160
  %162 = icmp ule i64 %161, 128
  br i1 %162, label %163, label %166

163:                                              ; preds = %157
  %164 = load i64, ptr %8, align 8, !tbaa !9
  %165 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 16
  store i64 %164, ptr %165, align 8, !tbaa !57
  br label %166

166:                                              ; preds = %163, %157, %151
  br label %167

167:                                              ; preds = %166
  %168 = load i64, ptr %8, align 8, !tbaa !9
  %169 = add i64 %168, 1
  store i64 %169, ptr %8, align 8, !tbaa !9
  br label %145, !llvm.loop !60

170:                                              ; preds = %150
  br label %171

171:                                              ; preds = %170, %140
  %172 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 16
  %173 = load i64, ptr %172, align 8, !tbaa !57
  %174 = icmp eq i64 %173, 1
  br i1 %174, label %175, label %287

175:                                              ; preds = %171
  %176 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 2
  %177 = load i64, ptr %176, align 8, !tbaa !11
  %178 = icmp eq i64 %177, 4
  br i1 %178, label %179, label %287

179:                                              ; preds = %175
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %180 = call noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev()
  %181 = udiv i64 %180, 4
  store i64 %181, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %182 = call noundef i64 @_ZN4Simd4Base10AlgCacheL3Ev()
  %183 = udiv i64 %182, 4
  store i64 %183, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %184 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 1
  %185 = load i64, ptr %184, align 8, !tbaa !39
  %186 = load ptr, ptr %7, align 8, !tbaa !5
  %187 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %186, i32 0, i32 0
  %188 = load i64, ptr %187, align 8, !tbaa !44
  %189 = load ptr, ptr %7, align 8, !tbaa !5
  %190 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %189, i32 0, i32 5
  %191 = load i64, ptr %190, align 8, !tbaa !45
  %192 = add i64 %188, %191
  %193 = mul i64 %185, %192
  %194 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 5
  %195 = load i64, ptr %194, align 8, !tbaa !43
  %196 = mul i64 %193, %195
  %197 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %198 = load i64, ptr %197, align 8, !tbaa !41
  %199 = mul i64 %196, %198
  store i64 %199, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %200 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 1
  %201 = load i64, ptr %200, align 8, !tbaa !39
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %202, i32 0, i32 0
  %204 = load i64, ptr %203, align 8, !tbaa !44
  %205 = mul i64 %201, %204
  %206 = load ptr, ptr %7, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %206, i32 0, i32 5
  %208 = load i64, ptr %207, align 8, !tbaa !45
  %209 = mul i64 %205, %208
  store i64 %209, ptr %12, align 8, !tbaa !9
  %210 = load i64, ptr %11, align 8, !tbaa !9
  %211 = load i64, ptr %9, align 8, !tbaa !9
  %212 = icmp ugt i64 %210, %211
  br i1 %212, label %213, label %286

213:                                              ; preds = %179
  %214 = load i64, ptr %9, align 8, !tbaa !9
  %215 = uitofp i64 %214 to double
  %216 = fmul double %215, 5.000000e-01
  %217 = fptoui double %216 to i64
  %218 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %219 = load i64, ptr %218, align 8, !tbaa !41
  %220 = mul i64 %217, %219
  %221 = load i64, ptr %11, align 8, !tbaa !9
  %222 = udiv i64 %220, %221
  %223 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %224 = load i64, ptr %223, align 8, !tbaa !41
  %225 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %222, i64 noundef 1, i64 noundef %224)
  %226 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  store i64 %225, ptr %226, align 8, !tbaa !59
  %227 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %228 = load i64, ptr %227, align 8, !tbaa !41
  %229 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %230 = load i64, ptr %229, align 8, !tbaa !59
  %231 = call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %228, i64 noundef %230)
  %232 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  store i64 %231, ptr %232, align 8, !tbaa !58
  br label %233

233:                                              ; preds = %245, %213
  %234 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  %235 = load i64, ptr %234, align 8, !tbaa !58
  %236 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %237 = load i64, ptr %236, align 8, !tbaa !59
  %238 = mul i64 %235, %237
  %239 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %240 = load i64, ptr %239, align 8, !tbaa !41
  %241 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  %242 = load i64, ptr %241, align 8, !tbaa !58
  %243 = add i64 %240, %242
  %244 = icmp uge i64 %238, %243
  br i1 %244, label %245, label %249

245:                                              ; preds = %233
  %246 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %247 = load i64, ptr %246, align 8, !tbaa !59
  %248 = add i64 %247, -1
  store i64 %248, ptr %246, align 8, !tbaa !59
  br label %233, !llvm.loop !62

249:                                              ; preds = %233
  %250 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  %251 = load i64, ptr %250, align 8, !tbaa !58
  %252 = icmp ugt i64 %251, 1
  br i1 %252, label %253, label %285

253:                                              ; preds = %249
  %254 = load i64, ptr %12, align 8, !tbaa !9
  %255 = load i64, ptr %10, align 8, !tbaa !9
  %256 = icmp ugt i64 %254, %255
  br i1 %256, label %257, label %285

257:                                              ; preds = %253
  %258 = load i64, ptr %11, align 8, !tbaa !9
  %259 = load i64, ptr %12, align 8, !tbaa !9
  %260 = call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %258, i64 noundef %259)
  %261 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  store i64 %260, ptr %261, align 8, !tbaa !58
  %262 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %263 = load i64, ptr %262, align 8, !tbaa !41
  %264 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  %265 = load i64, ptr %264, align 8, !tbaa !58
  %266 = call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %263, i64 noundef %265)
  %267 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  store i64 %266, ptr %267, align 8, !tbaa !59
  br label %268

268:                                              ; preds = %280, %257
  %269 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  %270 = load i64, ptr %269, align 8, !tbaa !58
  %271 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %272 = load i64, ptr %271, align 8, !tbaa !59
  %273 = mul i64 %270, %272
  %274 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 4
  %275 = load i64, ptr %274, align 8, !tbaa !41
  %276 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %277 = load i64, ptr %276, align 8, !tbaa !59
  %278 = add i64 %275, %277
  %279 = icmp uge i64 %273, %278
  br i1 %279, label %280, label %284

280:                                              ; preds = %268
  %281 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 17
  %282 = load i64, ptr %281, align 8, !tbaa !58
  %283 = add i64 %282, -1
  store i64 %283, ptr %281, align 8, !tbaa !58
  br label %268, !llvm.loop !63

284:                                              ; preds = %268
  br label %285

285:                                              ; preds = %284, %253, %249
  br label %286

286:                                              ; preds = %285, %179
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  br label %287

287:                                              ; preds = %286, %175, %171
  br label %288

288:                                              ; preds = %287, %96
  %289 = load ptr, ptr %7, align 8, !tbaa !5
  %290 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %289, i32 0, i32 0
  %291 = load i64, ptr %290, align 8, !tbaa !44
  %292 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %293 = load i64, ptr %292, align 8, !tbaa !59
  %294 = mul i64 %291, %293
  %295 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 5
  %296 = load i64, ptr %295, align 8, !tbaa !43
  %297 = mul i64 %294, %296
  %298 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 7
  store i64 %297, ptr %298, align 8, !tbaa !64
  %299 = load ptr, ptr %7, align 8, !tbaa !5
  %300 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %299, i32 0, i32 5
  %301 = load i64, ptr %300, align 8, !tbaa !45
  %302 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 18
  %303 = load i64, ptr %302, align 8, !tbaa !59
  %304 = mul i64 %301, %303
  %305 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 5
  %306 = load i64, ptr %305, align 8, !tbaa !43
  %307 = mul i64 %304, %306
  %308 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fWinograd", ptr %13, i32 0, i32 8
  store i64 %307, ptr %308, align 8, !tbaa !65
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef, i64 noundef, i64 noundef) #3

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef, i64 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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 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 = { 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 448}
!12 = !{!"_ZTSN4Simd4Base27SynetConvolution32fWinogradE", !13, i64 0, !10, i64 440, !10, i64 448, !10, i64 456, !10, i64 464, !10, i64 472, !10, i64 480, !10, i64 488, !10, i64 496, !10, i64 504, !10, i64 512, !10, i64 520, !10, i64 528, !10, i64 536, !10, i64 544, !10, i64 552, !10, i64 560, !10, i64 568, !10, i64 576, !22, i64 584, !6, i64 600, !6, i64 608, !6, i64 616}
!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 = !{!12, !10, i64 456}
!37 = !{!16, !10, i64 64}
!38 = !{!16, !10, i64 72}
!39 = !{!12, !10, i64 440}
!40 = !{!16, !10, i64 40}
!41 = !{!12, !10, i64 464}
!42 = !{!16, !10, i64 48}
!43 = !{!12, !10, i64 472}
!44 = !{!16, !10, i64 0}
!45 = !{!16, !10, i64 32}
!46 = !{!12, !10, i64 480}
!47 = !{!15, !20, i64 160}
!48 = !{!12, !10, i64 504}
!49 = !{!12, !10, i64 512}
!50 = !{!12, !10, i64 520}
!51 = !{!15, !10, i64 168}
!52 = !{!12, !10, i64 528}
!53 = !{!16, !10, i64 8}
!54 = !{!16, !10, i64 16}
!55 = !{!12, !10, i64 536}
!56 = !{!12, !10, i64 544}
!57 = !{!12, !10, i64 560}
!58 = !{!12, !10, i64 568}
!59 = !{!12, !10, i64 576}
!60 = distinct !{!60, !61}
!61 = !{!"llvm.loop.mustprogress"}
!62 = distinct !{!62, !61}
!63 = distinct !{!63, !61}
!64 = !{!12, !10, i64 488}
!65 = !{!12, !10, i64 496}


; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev() local_unnamed_addr #0

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base27SynetConvolution32fWinograd8SetBlockEmm(ptr nocapture noundef nonnull align 8 dereferenceable(624) %0, i64 noundef %1, i64 noundef %2) local_unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 448
  store i64 %1, ptr %5, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 456
  store i64 %2, ptr %6, align 8, !tbaa !34
  %7 = getelementptr inbounds i8, ptr %0, i64 72
  %8 = load i64, ptr %7, align 8, !tbaa !35
  %9 = add i64 %1, -1
  %10 = add i64 %9, %8
  %11 = getelementptr inbounds i8, ptr %0, i64 80
  %12 = load i64, ptr %11, align 8, !tbaa !36
  %13 = add i64 %2, -1
  %14 = add i64 %13, %12
  %15 = mul i64 %14, %10
  %16 = getelementptr inbounds i8, ptr %0, i64 440
  store i64 %15, ptr %16, align 8, !tbaa !37
  %17 = getelementptr inbounds i8, ptr %0, i64 48
  %18 = load i64, ptr %17, align 8, !tbaa !38
  %19 = add i64 %9, %18
  %20 = udiv i64 %19, %1
  %21 = getelementptr inbounds i8, ptr %0, i64 464
  store i64 %20, ptr %21, align 8, !tbaa !39
  %22 = getelementptr inbounds i8, ptr %0, i64 56
  %23 = load i64, ptr %22, align 8, !tbaa !40
  %24 = add i64 %13, %23
  %25 = udiv i64 %24, %2
  %26 = getelementptr inbounds i8, ptr %0, i64 472
  store i64 %25, ptr %26, align 8, !tbaa !41
  %27 = load i64, ptr %4, align 8, !tbaa !42
  %28 = getelementptr inbounds i8, ptr %0, i64 40
  %29 = load i64, ptr %28, align 8, !tbaa !43
  %30 = mul i64 %29, %27
  %31 = getelementptr inbounds i8, ptr %0, i64 480
  store i64 %30, ptr %31, align 8, !tbaa !44
  %32 = getelementptr inbounds i8, ptr %0, i64 168
  %33 = load i32, ptr %32, align 8, !tbaa !45
  %.not = icmp eq i32 %33, 0
  %34 = mul i64 %25, %20
  %. = select i1 %.not, i64 %29, i64 %34
  %.65 = select i1 %.not, i64 %34, i64 %29
  %35 = getelementptr inbounds i8, ptr %0, i64 504
  store i64 %., ptr %35, align 8
  %36 = getelementptr inbounds i8, ptr %0, i64 512
  store i64 %.65, ptr %36, align 8, !tbaa !46
  %37 = getelementptr inbounds i8, ptr %0, i64 520
  store i64 %27, ptr %37, align 8, !tbaa !47
  %38 = getelementptr inbounds i8, ptr %0, i64 176
  %39 = load i64, ptr %38, align 8, !tbaa !48
  %40 = getelementptr inbounds i8, ptr %0, i64 528
  store i64 %39, ptr %40, align 8, !tbaa !49
  %41 = getelementptr inbounds i8, ptr %0, i64 16
  %42 = load i64, ptr %41, align 8, !tbaa !50
  %43 = mul i64 %42, %27
  %44 = getelementptr inbounds i8, ptr %0, i64 24
  %45 = load i64, ptr %44, align 8, !tbaa !51
  %46 = mul i64 %43, %45
  %47 = getelementptr inbounds i8, ptr %0, i64 536
  store i64 %46, ptr %47, align 8, !tbaa !52
  %48 = mul i64 %23, %18
  %49 = mul i64 %48, %29
  %50 = getelementptr inbounds i8, ptr %0, i64 544
  store i64 %49, ptr %50, align 8, !tbaa !53
  %51 = getelementptr inbounds i8, ptr %0, i64 560
  store i64 1, ptr %51, align 8, !tbaa !54
  %52 = getelementptr inbounds i8, ptr %0, i64 568
  store i64 1, ptr %52, align 8, !tbaa !55
  %53 = getelementptr inbounds i8, ptr %0, i64 576
  store i64 %20, ptr %53, align 8, !tbaa !56
  br i1 %.not, label %.loopexit, label %54

54:                                               ; preds = %3
  %55 = icmp ugt i64 %39, 1
  br i1 %55, label %.preheader.preheader, label %.loopexit53

.preheader.preheader:                             ; preds = %54
  %56 = add i64 %39, 1
  %umax = tail call i64 @llvm.umax.i64(i64 %56, i64 2)
  %57 = add i64 %umax, -1
  %xtraiter = and i64 %57, 1
  %58 = icmp ult i64 %56, 3
  br i1 %58, label %.loopexit53.loopexit.unr-lcssa, label %.preheader.preheader.new

.preheader.preheader.new:                         ; preds = %.preheader.preheader
  %unroll_iter = and i64 %57, -2
  br label %.preheader

.preheader:                                       ; preds = %77, %.preheader.preheader.new
  %59 = phi i64 [ 1, %.preheader.preheader.new ], [ %70, %77 ]
  %.054 = phi i64 [ 1, %.preheader.preheader.new ], [ %78, %77 ]
  %niter = phi i64 [ 0, %.preheader.preheader.new ], [ %niter.next.1, %77 ]
  %60 = urem i64 %39, %.054
  %61 = icmp eq i64 %60, 0
  %62 = mul i64 %.054, %.
  %63 = icmp ult i64 %62, 129
  %or.cond52 = select i1 %61, i1 %63, i1 false
  %64 = select i1 %or.cond52, i64 %.054, i64 %59
  %65 = add nuw i64 %.054, 1
  %66 = urem i64 %39, %65
  %67 = icmp eq i64 %66, 0
  %68 = mul i64 %65, %.
  %69 = icmp ult i64 %68, 129
  %or.cond52.1 = select i1 %67, i1 %69, i1 false
  %70 = select i1 %or.cond52.1, i64 %65, i64 %64
  %71 = xor i1 %or.cond52, true
  %72 = xor i1 %or.cond52.1, true
  %73 = xor i1 %71, true
  %74 = xor i1 %72, true
  %75 = or i1 %73, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %.preheader
  store i64 %70, ptr %51, align 8, !tbaa !54
  br label %77

77:                                               ; preds = %.preheader, %76
  %78 = add nuw i64 %.054, 2
  %niter.next.1 = add i64 %niter, 2
  %niter.ncmp.1 = icmp eq i64 %niter.next.1, %unroll_iter
  br i1 %niter.ncmp.1, label %.loopexit53.loopexit.unr-lcssa, label %.preheader, !llvm.loop !57

.loopexit53.loopexit.unr-lcssa:                   ; preds = %77, %.preheader.preheader
  %.lcssa69.ph = phi i64 [ poison, %.preheader.preheader ], [ %70, %77 ]
  %.unr = phi i64 [ 1, %.preheader.preheader ], [ %70, %77 ]
  %.054.unr = phi i64 [ 1, %.preheader.preheader ], [ %78, %77 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.loopexit53.loopexit, label %.preheader.epil

.preheader.epil:                                  ; preds = %.loopexit53.loopexit.unr-lcssa
  %79 = urem i64 %39, %.054.unr
  %80 = icmp eq i64 %79, 0
  %81 = mul i64 %.054.unr, %.
  %82 = icmp ult i64 %81, 129
  %or.cond52.epil = select i1 %80, i1 %82, i1 false
  br i1 %or.cond52.epil, label %83, label %.loopexit53.loopexit

83:                                               ; preds = %.preheader.epil
  store i64 %.054.unr, ptr %51, align 8, !tbaa !54
  br label %.loopexit53.loopexit

.loopexit53.loopexit:                             ; preds = %.preheader.epil, %83, %.loopexit53.loopexit.unr-lcssa
  %.lcssa69 = phi i64 [ %.lcssa69.ph, %.loopexit53.loopexit.unr-lcssa ], [ %.unr, %.preheader.epil ], [ %.054.unr, %83 ]
  %84 = icmp eq i64 %.lcssa69, 1
  br label %.loopexit53

.loopexit53:                                      ; preds = %.loopexit53.loopexit, %54
  %85 = phi i1 [ %84, %.loopexit53.loopexit ], [ true, %54 ]
  %86 = icmp eq i64 %1, 4
  %or.cond = and i1 %86, %85
  br i1 %or.cond, label %87, label %.loopexit

87:                                               ; preds = %.loopexit53
  %88 = tail call noundef i64 @_ZN4Simd4Base10AlgCacheL2Ev()
  %89 = lshr i64 %88, 2
  %90 = tail call noundef i64 @_ZN4Simd4Base10AlgCacheL3Ev()
  %91 = lshr i64 %90, 2
  %92 = load i64, ptr %16, align 8, !tbaa !37
  %93 = load i64, ptr %4, align 8, !tbaa !42
  %94 = load i64, ptr %28, align 8, !tbaa !43
  %95 = add i64 %94, %93
  %96 = mul i64 %95, %92
  %97 = load i64, ptr %26, align 8, !tbaa !41
  %98 = mul i64 %96, %97
  %99 = load i64, ptr %21, align 8, !tbaa !39
  %100 = mul i64 %98, %99
  %101 = mul i64 %93, %92
  %102 = mul i64 %101, %94
  %103 = icmp ugt i64 %100, %89
  br i1 %103, label %104, label %..loopexit_crit_edge62

..loopexit_crit_edge62:                           ; preds = %87
  %.pre = load i64, ptr %53, align 8, !tbaa !56
  br label %.loopexit

104:                                              ; preds = %87
  %105 = uitofp nneg i64 %89 to double
  %106 = fmul double %105, 5.000000e-01
  %107 = fptoui double %106 to i64
  %108 = mul i64 %99, %107
  %109 = udiv i64 %108, %100
  %110 = tail call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %109, i64 noundef 1, i64 noundef %99)
  store i64 %110, ptr %53, align 8, !tbaa !56
  %111 = load i64, ptr %21, align 8, !tbaa !39
  %112 = tail call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %111, i64 noundef %110)
  store i64 %112, ptr %52, align 8, !tbaa !55
  %113 = load i64, ptr %21, align 8, !tbaa !39
  %114 = add i64 %113, %112
  %.promoted = load i64, ptr %53, align 8, !tbaa !56
  %115 = mul i64 %.promoted, %112
  %.not4755 = icmp ult i64 %115, %114
  br i1 %.not4755, label %119, label %.lr.ph

.lr.ph:                                           ; preds = %104, %.lr.ph
  %116 = phi i64 [ %117, %.lr.ph ], [ %.promoted, %104 ]
  %117 = add i64 %116, -1
  %118 = mul i64 %117, %112
  %.not47 = icmp ult i64 %118, %114
  br i1 %.not47, label %._crit_edge, label %.lr.ph, !llvm.loop !59

._crit_edge:                                      ; preds = %.lr.ph
  store i64 %117, ptr %53, align 8, !tbaa !56
  br label %119

119:                                              ; preds = %._crit_edge, %104
  %120 = phi i64 [ %117, %._crit_edge ], [ %.promoted, %104 ]
  %121 = icmp ugt i64 %112, 1
  %122 = icmp ugt i64 %102, %91
  %or.cond50 = and i1 %122, %121
  br i1 %or.cond50, label %123, label %.loopexit

123:                                              ; preds = %119
  %124 = tail call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %100, i64 noundef %102)
  store i64 %124, ptr %52, align 8, !tbaa !55
  %125 = load i64, ptr %21, align 8, !tbaa !39
  %126 = tail call noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef %125, i64 noundef %124)
  store i64 %126, ptr %53, align 8, !tbaa !56
  %127 = load i64, ptr %21, align 8, !tbaa !39
  %128 = add i64 %127, %126
  %.promoted56 = load i64, ptr %52, align 8, !tbaa !55
  %129 = mul i64 %.promoted56, %126
  %.not4857 = icmp ult i64 %129, %128
  br i1 %.not4857, label %.loopexit, label %.lr.ph59

.lr.ph59:                                         ; preds = %123, %.lr.ph59
  %130 = phi i64 [ %131, %.lr.ph59 ], [ %.promoted56, %123 ]
  %131 = add i64 %130, -1
  %132 = mul i64 %131, %126
  %.not48 = icmp ult i64 %132, %128
  br i1 %.not48, label %..loopexit_crit_edge, label %.lr.ph59, !llvm.loop !60

..loopexit_crit_edge:                             ; preds = %.lr.ph59
  store i64 %131, ptr %52, align 8, !tbaa !55
  br label %.loopexit

.loopexit:                                        ; preds = %..loopexit_crit_edge62, %123, %..loopexit_crit_edge, %119, %.loopexit53, %3
  %133 = phi i64 [ %.pre, %..loopexit_crit_edge62 ], [ %126, %123 ], [ %126, %..loopexit_crit_edge ], [ %120, %119 ], [ %20, %.loopexit53 ], [ %20, %3 ]
  %134 = load i64, ptr %4, align 8, !tbaa !42
  %135 = load i64, ptr %26, align 8, !tbaa !41
  %136 = mul i64 %135, %133
  %137 = mul i64 %136, %134
  %138 = getelementptr inbounds i8, ptr %0, i64 488
  store i64 %137, ptr %138, align 8, !tbaa !61
  %139 = load i64, ptr %28, align 8, !tbaa !43
  %140 = mul i64 %136, %139
  %141 = getelementptr inbounds i8, ptr %0, i64 496
  store i64 %140, ptr %141, align 8, !tbaa !62
  ret void
}

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef, i64 noundef, i64 noundef) local_unnamed_addr #2

; Function Attrs: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd5DivHiEmm(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i64 @llvm.umax.i64(i64, i64) #3

attributes #0 = { 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 #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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }

!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 448}
!6 = !{!"_ZTSN4Simd4Base27SynetConvolution32fWinogradE", !7, i64 0, !11, i64 440, !11, i64 448, !11, i64 456, !11, i64 464, !11, i64 472, !11, i64 480, !11, i64 488, !11, i64 496, !11, i64 504, !11, i64 512, !11, i64 520, !11, i64 528, !11, i64 536, !11, i64 544, !11, i64 552, !11, i64 560, !11, i64 568, !11, i64 576, !19, i64 584, !20, i64 600, !20, i64 608, !20, i64 616}
!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 = !{!6, !11, i64 456}
!35 = !{!10, !11, i64 64}
!36 = !{!10, !11, i64 72}
!37 = !{!6, !11, i64 440}
!38 = !{!10, !11, i64 40}
!39 = !{!6, !11, i64 464}
!40 = !{!10, !11, i64 48}
!41 = !{!6, !11, i64 472}
!42 = !{!10, !11, i64 0}
!43 = !{!10, !11, i64 32}
!44 = !{!6, !11, i64 480}
!45 = !{!9, !17, i64 160}
!46 = !{!6, !11, i64 512}
!47 = !{!6, !11, i64 520}
!48 = !{!9, !11, i64 168}
!49 = !{!6, !11, i64 528}
!50 = !{!10, !11, i64 8}
!51 = !{!10, !11, i64 16}
!52 = !{!6, !11, i64 536}
!53 = !{!6, !11, i64 544}
!54 = !{!6, !11, i64 560}
!55 = !{!6, !11, i64 568}
!56 = !{!6, !11, i64 576}
!57 = distinct !{!57, !58}
!58 = !{!"llvm.loop.mustprogress"}
!59 = distinct !{!59, !58}
!60 = distinct !{!60, !58}
!61 = !{!6, !11, i64 488}
!62 = !{!6, !11, i64 496}


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