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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.Simd::Base::SynetConvolution32fNhwcDirect" = type { %"class.Simd::SynetConvolution32f", i64, i64, %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Array", %"struct.Simd::Runtime.9", %"struct.Simd::Base::SynetConvolution32fNhwcDirect::Old" }
%"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 }
%"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" = type { ptr, i64 }
%"struct.Simd::Runtime.9" = type { ptr, %"class.std::vector.10", %"class.std::__cxx11::basic_string" }
%"class.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate, std::allocator<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate>>::_Vector_impl" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate, std::allocator<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate>>::_Vector_impl" = type { %"struct.std::_Vector_base<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate, std::allocator<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate, std::allocator<Simd::Runtime<Simd::Base::SynetConvolution32fNhwcDirect::RunFunc, Simd::Base::SynetConvolution32fNhwcDirect::RunArgs>::Candidate>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.Simd::Base::SynetConvolution32fNhwcDirect::Old" = type { i8, ptr, %"struct.Simd::Base::SynetConvolution32fNhwcDirect::AlgParam", %"struct.Simd::Array" }
%"struct.Simd::Base::SynetConvolution32fNhwcDirect::AlgParam" = type { i64, i64, i64, i64, i64, [2 x ptr], i64 }

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base29SynetConvolution32fNhwcDirect9SetParamsEPKfP8SimdBoolS3_S3_ = external hidden unnamed_addr constant [123 x i8], align 1

; 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 @_ZN4Simd4Base29SynetConvolution32fNhwcDirect9SetParamsEPKfP8SimdBoolS3_S3_(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) unnamed_addr #1 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %14 = load ptr, ptr %6, align 8
  %15 = load ptr, ptr %7, align 8, !tbaa !5
  %16 = load ptr, ptr %8, align 8, !tbaa !5
  %17 = load ptr, ptr %9, align 8, !tbaa !5
  %18 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZN4Simd19SynetConvolution32f9SetParamsEPKfP8SimdBoolS2_S2_(ptr noundef nonnull align 8 dereferenceable(440) %14, ptr noundef %15, ptr noundef %16, ptr noundef %17, ptr noundef %18)
  %19 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 7
  %20 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution32fNhwcDirect::Old", ptr %19, i32 0, i32 0
  %21 = load i8, ptr %20, align 8, !tbaa !9, !range !43, !noundef !44
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %45

23:                                               ; preds = %5
  %24 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 7
  %25 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution32fNhwcDirect::Old", ptr %24, i32 0, i32 3
  %26 = getelementptr inbounds %"struct.Simd::Array", ptr %25, i32 0, i32 0
  %27 = load ptr, ptr %26, align 8, !tbaa !45
  %28 = icmp ne ptr %27, null
  br i1 %28, label %29, label %45

29:                                               ; preds = %23
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 7
  %32 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution32fNhwcDirect::Old", ptr %31, i32 0, i32 3
  %33 = getelementptr inbounds %"struct.Simd::Array", ptr %32, i32 0, i32 0
  %34 = load ptr, ptr %33, align 8, !tbaa !45
  call void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect16OldReorderWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(664) %14, ptr noundef %30, ptr noundef %34)
  %35 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 7
  %36 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution32fNhwcDirect::Old", ptr %35, i32 0, i32 3
  %37 = getelementptr inbounds %"struct.Simd::Array", ptr %36, i32 0, i32 0
  %38 = load ptr, ptr %37, align 8, !tbaa !45
  %39 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %14, i32 0, i32 5
  store ptr %38, ptr %39, align 8, !tbaa !46
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = icmp ne ptr %40, null
  br i1 %41, label %42, label %44

42:                                               ; preds = %29
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %43, align 4, !tbaa !47
  br label %44

44:                                               ; preds = %42, %29
  br label %65

45:                                               ; preds = %23, %5
  %46 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 3
  %47 = getelementptr inbounds %"struct.Simd::Array", ptr %46, i32 0, i32 0
  %48 = load ptr, ptr %47, align 8, !tbaa !48
  %49 = icmp ne ptr %48, null
  br i1 %49, label %50, label %64

50:                                               ; preds = %45
  %51 = load ptr, ptr %7, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 3
  %53 = getelementptr inbounds %"struct.Simd::Array", ptr %52, i32 0, i32 0
  %54 = load ptr, ptr %53, align 8, !tbaa !48
  call void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect13ReorderWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(664) %14, ptr noundef %51, ptr noundef %54)
  %55 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 3
  %56 = getelementptr inbounds %"struct.Simd::Array", ptr %55, i32 0, i32 0
  %57 = load ptr, ptr %56, align 8, !tbaa !48
  %58 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %14, i32 0, i32 5
  store ptr %57, ptr %58, align 8, !tbaa !46
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = icmp ne ptr %59, null
  br i1 %60, label %61, label %63

61:                                               ; preds = %50
  %62 = load ptr, ptr %8, align 8, !tbaa !5
  store i32 1, ptr %62, align 4, !tbaa !47
  br label %63

63:                                               ; preds = %61, %50
  br label %64

64:                                               ; preds = %63, %45
  br label %65

65:                                               ; preds = %64, %44
  %66 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 4
  %67 = getelementptr inbounds %"struct.Simd::Array", ptr %66, i32 0, i32 0
  %68 = load ptr, ptr %67, align 8, !tbaa !49
  %69 = icmp ne ptr %68, null
  br i1 %69, label %70, label %87

70:                                               ; preds = %65
  %71 = load ptr, ptr %9, align 8, !tbaa !5
  %72 = icmp ne ptr %71, null
  br i1 %72, label %73, label %82

73:                                               ; preds = %70
  %74 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 4
  %75 = getelementptr inbounds %"struct.Simd::Array", ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !49
  %77 = load ptr, ptr %9, align 8, !tbaa !5
  %78 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %14, i32 0, i32 1
  %79 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %78, i32 0, i32 5
  %80 = load i64, ptr %79, align 8, !tbaa !50
  %81 = mul i64 %80, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %76, ptr align 4 %77, i64 %81, i1 false)
  br label %82

82:                                               ; preds = %73, %70
  %83 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 4
  %84 = getelementptr inbounds %"struct.Simd::Array", ptr %83, i32 0, i32 0
  %85 = load ptr, ptr %84, align 8, !tbaa !49
  %86 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %14, i32 0, i32 6
  store ptr %85, ptr %86, align 8, !tbaa !51
  br label %87

87:                                               ; preds = %82, %65
  %88 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %89 = getelementptr inbounds %"struct.Simd::Array", ptr %88, i32 0, i32 0
  %90 = load ptr, ptr %89, align 8, !tbaa !52
  %91 = icmp ne ptr %90, null
  br i1 %91, label %92, label %233

92:                                               ; preds = %87
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %93 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %14, i32 0, i32 1
  store ptr %93, ptr %11, align 8, !tbaa !5
  %94 = load ptr, ptr %11, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %94, i32 0, i32 21
  %96 = load i32, ptr %95, align 8, !tbaa !53
  switch i32 %96, label %227 [
    i32 0, label %97
    i32 1, label %106
    i32 2, label %115
    i32 3, label %136
    i32 4, label %151
    i32 5, label %173
    i32 6, label %181
    i32 7, label %196
    i32 8, label %204
    i32 9, label %219
    i32 10, label %228
  ]

97:                                               ; preds = %92
  %98 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %99 = getelementptr inbounds %"struct.Simd::Array", ptr %98, i32 0, i32 0
  %100 = load ptr, ptr %99, align 8, !tbaa !52
  %101 = getelementptr inbounds float, ptr %100, i64 0
  store float 0xC7EFFFFFE0000000, ptr %101, align 4, !tbaa !54
  %102 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %103 = getelementptr inbounds %"struct.Simd::Array", ptr %102, i32 0, i32 0
  %104 = load ptr, ptr %103, align 8, !tbaa !52
  %105 = getelementptr inbounds float, ptr %104, i64 1
  store float 0x47EFFFFFE0000000, ptr %105, align 4, !tbaa !54
  br label %228

106:                                              ; preds = %92
  %107 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %108 = getelementptr inbounds %"struct.Simd::Array", ptr %107, i32 0, i32 0
  %109 = load ptr, ptr %108, align 8, !tbaa !52
  %110 = getelementptr inbounds float, ptr %109, i64 0
  store float 0.000000e+00, ptr %110, align 4, !tbaa !54
  %111 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %112 = getelementptr inbounds %"struct.Simd::Array", ptr %111, i32 0, i32 0
  %113 = load ptr, ptr %112, align 8, !tbaa !52
  %114 = getelementptr inbounds float, ptr %113, i64 1
  store float 0x47EFFFFFE0000000, ptr %114, align 4, !tbaa !54
  br label %228

115:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  store i64 0, ptr %12, align 8, !tbaa !55
  br label %116

116:                                              ; preds = %132, %115
  %117 = load i64, ptr %12, align 8, !tbaa !55
  %118 = load ptr, ptr %11, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %118, i32 0, i32 5
  %120 = load i64, ptr %119, align 8, !tbaa !50
  %121 = icmp ult i64 %117, %120
  br i1 %121, label %123, label %122

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

123:                                              ; preds = %116
  %124 = load ptr, ptr %10, align 8, !tbaa !5
  %125 = getelementptr inbounds float, ptr %124, i64 0
  %126 = load float, ptr %125, align 4, !tbaa !54
  %127 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %128 = getelementptr inbounds %"struct.Simd::Array", ptr %127, i32 0, i32 0
  %129 = load ptr, ptr %128, align 8, !tbaa !52
  %130 = load i64, ptr %12, align 8, !tbaa !55
  %131 = getelementptr inbounds float, ptr %129, i64 %130
  store float %126, ptr %131, align 4, !tbaa !54
  br label %132

132:                                              ; preds = %123
  %133 = load i64, ptr %12, align 8, !tbaa !55
  %134 = add i64 %133, 1
  store i64 %134, ptr %12, align 8, !tbaa !55
  br label %116, !llvm.loop !56

135:                                              ; preds = %122
  br label %228

136:                                              ; preds = %92
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = getelementptr inbounds float, ptr %137, i64 0
  %139 = load float, ptr %138, align 4, !tbaa !54
  %140 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %141 = getelementptr inbounds %"struct.Simd::Array", ptr %140, i32 0, i32 0
  %142 = load ptr, ptr %141, align 8, !tbaa !52
  %143 = getelementptr inbounds float, ptr %142, i64 0
  store float %139, ptr %143, align 4, !tbaa !54
  %144 = load ptr, ptr %10, align 8, !tbaa !5
  %145 = getelementptr inbounds float, ptr %144, i64 1
  %146 = load float, ptr %145, align 4, !tbaa !54
  %147 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %148 = getelementptr inbounds %"struct.Simd::Array", ptr %147, i32 0, i32 0
  %149 = load ptr, ptr %148, align 8, !tbaa !52
  %150 = getelementptr inbounds float, ptr %149, i64 1
  store float %146, ptr %150, align 4, !tbaa !54
  br label %228

151:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !55
  br label %152

152:                                              ; preds = %169, %151
  %153 = load i64, ptr %13, align 8, !tbaa !55
  %154 = load ptr, ptr %11, align 8, !tbaa !5
  %155 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %154, i32 0, i32 5
  %156 = load i64, ptr %155, align 8, !tbaa !50
  %157 = icmp ult i64 %153, %156
  br i1 %157, label %159, label %158

158:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %172

159:                                              ; preds = %152
  %160 = load ptr, ptr %10, align 8, !tbaa !5
  %161 = load i64, ptr %13, align 8, !tbaa !55
  %162 = getelementptr inbounds float, ptr %160, i64 %161
  %163 = load float, ptr %162, align 4, !tbaa !54
  %164 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %165 = getelementptr inbounds %"struct.Simd::Array", ptr %164, i32 0, i32 0
  %166 = load ptr, ptr %165, align 8, !tbaa !52
  %167 = load i64, ptr %13, align 8, !tbaa !55
  %168 = getelementptr inbounds float, ptr %166, i64 %167
  store float %163, ptr %168, align 4, !tbaa !54
  br label %169

169:                                              ; preds = %159
  %170 = load i64, ptr %13, align 8, !tbaa !55
  %171 = add i64 %170, 1
  store i64 %171, ptr %13, align 8, !tbaa !55
  br label %152, !llvm.loop !58

172:                                              ; preds = %158
  br label %228

173:                                              ; preds = %92
  %174 = load ptr, ptr %10, align 8, !tbaa !5
  %175 = getelementptr inbounds float, ptr %174, i64 0
  %176 = load float, ptr %175, align 4, !tbaa !54
  %177 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %178 = getelementptr inbounds %"struct.Simd::Array", ptr %177, i32 0, i32 0
  %179 = load ptr, ptr %178, align 8, !tbaa !52
  %180 = getelementptr inbounds float, ptr %179, i64 0
  store float %176, ptr %180, align 4, !tbaa !54
  br label %228

181:                                              ; preds = %92
  %182 = load ptr, ptr %10, align 8, !tbaa !5
  %183 = getelementptr inbounds float, ptr %182, i64 0
  %184 = load float, ptr %183, align 4, !tbaa !54
  %185 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %186 = getelementptr inbounds %"struct.Simd::Array", ptr %185, i32 0, i32 0
  %187 = load ptr, ptr %186, align 8, !tbaa !52
  %188 = getelementptr inbounds float, ptr %187, i64 0
  store float %184, ptr %188, align 4, !tbaa !54
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = getelementptr inbounds float, ptr %189, i64 1
  %191 = load float, ptr %190, align 4, !tbaa !54
  %192 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %193 = getelementptr inbounds %"struct.Simd::Array", ptr %192, i32 0, i32 0
  %194 = load ptr, ptr %193, align 8, !tbaa !52
  %195 = getelementptr inbounds float, ptr %194, i64 1
  store float %191, ptr %195, align 4, !tbaa !54
  br label %228

196:                                              ; preds = %92
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = getelementptr inbounds float, ptr %197, i64 0
  %199 = load float, ptr %198, align 4, !tbaa !54
  %200 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %201 = getelementptr inbounds %"struct.Simd::Array", ptr %200, i32 0, i32 0
  %202 = load ptr, ptr %201, align 8, !tbaa !52
  %203 = getelementptr inbounds float, ptr %202, i64 0
  store float %199, ptr %203, align 4, !tbaa !54
  br label %228

204:                                              ; preds = %92
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  %206 = getelementptr inbounds float, ptr %205, i64 0
  %207 = load float, ptr %206, align 4, !tbaa !54
  %208 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %209 = getelementptr inbounds %"struct.Simd::Array", ptr %208, i32 0, i32 0
  %210 = load ptr, ptr %209, align 8, !tbaa !52
  %211 = getelementptr inbounds float, ptr %210, i64 0
  store float %207, ptr %211, align 4, !tbaa !54
  %212 = load ptr, ptr %10, align 8, !tbaa !5
  %213 = getelementptr inbounds float, ptr %212, i64 1
  %214 = load float, ptr %213, align 4, !tbaa !54
  %215 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %216 = getelementptr inbounds %"struct.Simd::Array", ptr %215, i32 0, i32 0
  %217 = load ptr, ptr %216, align 8, !tbaa !52
  %218 = getelementptr inbounds float, ptr %217, i64 1
  store float %214, ptr %218, align 4, !tbaa !54
  br label %228

219:                                              ; preds = %92
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = getelementptr inbounds float, ptr %220, i64 0
  %222 = load float, ptr %221, align 4, !tbaa !54
  %223 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %224 = getelementptr inbounds %"struct.Simd::Array", ptr %223, i32 0, i32 0
  %225 = load ptr, ptr %224, align 8, !tbaa !52
  %226 = getelementptr inbounds float, ptr %225, i64 0
  store float %222, ptr %226, align 4, !tbaa !54
  br label %228

227:                                              ; preds = %92
  call void @__assert_fail(ptr noundef @.str, ptr noundef @.str.1, i32 noundef 131, ptr noundef @__PRETTY_FUNCTION__._ZN4Simd4Base29SynetConvolution32fNhwcDirect9SetParamsEPKfP8SimdBoolS3_S3_) #6
  unreachable

228:                                              ; preds = %219, %204, %196, %181, %173, %172, %136, %135, %106, %97, %92
  %229 = getelementptr inbounds %"class.Simd::Base::SynetConvolution32fNhwcDirect", ptr %14, i32 0, i32 5
  %230 = getelementptr inbounds %"struct.Simd::Array", ptr %229, i32 0, i32 0
  %231 = load ptr, ptr %230, align 8, !tbaa !52
  %232 = getelementptr inbounds %"class.Simd::SynetConvolution32f", ptr %14, i32 0, i32 7
  store ptr %231, ptr %232, align 8, !tbaa !59
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %233

233:                                              ; preds = %228, %87
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd19SynetConvolution32f9SetParamsEPKfP8SimdBoolS2_S2_(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect16OldReorderWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(664), ptr noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect13ReorderWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(664), ptr noundef, ptr noundef) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #4

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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, !41, i64 568}
!10 = !{!"_ZTSN4Simd4Base29SynetConvolution32fNhwcDirectE", !11, i64 0, !15, i64 440, !15, i64 448, !21, i64 456, !21, i64 472, !21, i64 488, !35, i64 504, !40, i64 568}
!11 = !{!"_ZTSN4Simd19SynetConvolution32fE", !12, i64 0, !13, i64 8, !21, i64 192, !22, i64 208, !22, i64 212, !6, i64 216, !6, i64 224, !6, i64 232, !23, i64 240, !30, i64 304, !21, i64 368, !6, i64 384, !6, i64 392, !6, i64 400, !28, i64 408}
!12 = !{!"_ZTSN4Simd9DeletableE"}
!13 = !{!"_ZTSN4Simd9ConvParamE", !14, i64 0, !19, i64 160, !15, i64 168, !20, i64 176}
!14 = !{!"_ZTS25SimdConvolutionParameters", !15, i64 0, !15, i64 8, !15, i64 16, !16, i64 24, !17, i64 28, !15, i64 32, !15, i64 40, !15, i64 48, !16, i64 56, !17, i64 60, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !18, i64 152}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!17 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!18 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!19 = !{!"_ZTS8SimdBool", !7, i64 0}
!20 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!21 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !15, i64 8}
!22 = !{!"float", !7, i64 0}
!23 = !{!"_ZTSN4Simd7RuntimeINS_8GemmFuncENS_8GemmArgsEEE", !6, i64 0, !24, i64 8, !28, i64 32}
!24 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_8GemmFuncENS0_8GemmArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !29, i64 0, !15, i64 8, !7, i64 16}
!29 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!30 = !{!"_ZTSN4Simd7RuntimeINS_10GemmCbFuncENS_10GemmCbArgsEEE", !6, i64 0, !31, i64 8, !28, i64 32}
!31 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !32, i64 0}
!32 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE", !33, i64 0}
!33 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE12_Vector_implE", !34, i64 0}
!34 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_10GemmCbFuncENS0_10GemmCbArgsEE9CandidateESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!35 = !{!"_ZTSN4Simd7RuntimeINS_4Base29SynetConvolution32fNhwcDirect7RunFuncENS2_7RunArgsEEE", !6, i64 0, !36, i64 8, !28, i64 32}
!36 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE", !37, i64 0}
!37 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE12_Vector_implE", !39, i64 0}
!39 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!40 = !{!"_ZTSN4Simd4Base29SynetConvolution32fNhwcDirect3OldE", !41, i64 0, !6, i64 8, !42, i64 16, !21, i64 80}
!41 = !{!"bool", !7, i64 0}
!42 = !{!"_ZTSN4Simd4Base29SynetConvolution32fNhwcDirect8AlgParamE", !15, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !7, i64 40, !15, i64 56}
!43 = !{i8 0, i8 2}
!44 = !{}
!45 = !{!10, !6, i64 648}
!46 = !{!11, !6, i64 216}
!47 = !{!19, !19, i64 0}
!48 = !{!10, !6, i64 456}
!49 = !{!10, !6, i64 472}
!50 = !{!14, !15, i64 32}
!51 = !{!11, !6, i64 224}
!52 = !{!10, !6, i64 488}
!53 = !{!14, !18, i64 152}
!54 = !{!22, !22, i64 0}
!55 = !{!15, !15, i64 0}
!56 = distinct !{!56, !57}
!57 = !{!"llvm.loop.mustprogress"}
!58 = distinct !{!58, !57}
!59 = !{!11, !6, i64 232}


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

@.str = external hidden unnamed_addr constant [2 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [99 x i8], align 1
@__PRETTY_FUNCTION__._ZN4Simd4Base29SynetConvolution32fNhwcDirect9SetParamsEPKfP8SimdBoolS3_S3_ = external hidden unnamed_addr constant [123 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect9SetParamsEPKfP8SimdBoolS3_S3_(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4) unnamed_addr #0 align 2 {
  %6 = ptrtoint ptr %4 to i64
  tail call void @_ZN4Simd19SynetConvolution32f9SetParamsEPKfP8SimdBoolS2_S2_(ptr noundef nonnull align 8 dereferenceable(440) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4)
  %7 = getelementptr inbounds i8, ptr %0, i64 568
  %8 = load i8, ptr %7, align 8, !tbaa !5, !range !42, !noundef !43
  %9 = trunc nuw i8 %8 to i1
  br i1 %9, label %10, label %16

10:                                               ; preds = %5
  %11 = getelementptr inbounds i8, ptr %0, i64 648
  %12 = load ptr, ptr %11, align 8, !tbaa !44
  %.not = icmp eq ptr %12, null
  br i1 %.not, label %16, label %13

13:                                               ; preds = %10
  tail call void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect16OldReorderWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef %1, ptr noundef nonnull %12)
  %14 = load ptr, ptr %11, align 8, !tbaa !44
  %15 = getelementptr inbounds i8, ptr %0, i64 216
  store ptr %14, ptr %15, align 8, !tbaa !45
  %.not42 = icmp eq ptr %2, null
  br i1 %.not42, label %22, label %.sink.split

16:                                               ; preds = %10, %5
  %17 = getelementptr inbounds i8, ptr %0, i64 456
  %18 = load ptr, ptr %17, align 8, !tbaa !46
  %.not40 = icmp eq ptr %18, null
  br i1 %.not40, label %22, label %19

19:                                               ; preds = %16
  tail call void @_ZN4Simd4Base29SynetConvolution32fNhwcDirect13ReorderWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(664) %0, ptr noundef %1, ptr noundef nonnull %18)
  %20 = load ptr, ptr %17, align 8, !tbaa !46
  %21 = getelementptr inbounds i8, ptr %0, i64 216
  store ptr %20, ptr %21, align 8, !tbaa !45
  %.not41 = icmp eq ptr %2, null
  br i1 %.not41, label %22, label %.sink.split

.sink.split:                                      ; preds = %19, %13
  store i32 1, ptr %2, align 4, !tbaa !47
  br label %22

22:                                               ; preds = %.sink.split, %16, %19, %13
  %23 = getelementptr inbounds i8, ptr %0, i64 472
  %24 = load ptr, ptr %23, align 8, !tbaa !48
  %.not43 = icmp eq ptr %24, null
  br i1 %.not43, label %33, label %25

25:                                               ; preds = %22
  %.not44 = icmp eq ptr %3, null
  br i1 %.not44, label %30, label %26

26:                                               ; preds = %25
  %27 = getelementptr inbounds i8, ptr %0, i64 40
  %28 = load i64, ptr %27, align 8, !tbaa !49
  %29 = shl i64 %28, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %24, ptr nonnull align 4 %3, i64 %29, i1 false)
  %.pre = load ptr, ptr %23, align 8, !tbaa !48
  br label %30

30:                                               ; preds = %26, %25
  %31 = phi ptr [ %.pre, %26 ], [ %24, %25 ]
  %32 = getelementptr inbounds i8, ptr %0, i64 224
  store ptr %31, ptr %32, align 8, !tbaa !50
  br label %33

33:                                               ; preds = %30, %22
  %34 = getelementptr inbounds i8, ptr %0, i64 488
  %35 = load ptr, ptr %34, align 8, !tbaa !51
  %36 = ptrtoint ptr %35 to i64
  %.not45 = icmp eq ptr %35, null
  br i1 %.not45, label %102, label %37

37:                                               ; preds = %33
  %38 = getelementptr inbounds i8, ptr %0, i64 160
  %39 = load i32, ptr %38, align 8, !tbaa !52
  switch i32 %39, label %100 [
    i32 0, label %59
    i32 1, label %60
    i32 2, label %.preheader
    i32 3, label %63
    i32 4, label %.preheader46
    i32 5, label %84
    i32 6, label %86
    i32 7, label %91
    i32 8, label %93
    i32 9, label %98
    i32 10, label %.loopexit
  ]

.preheader46:                                     ; preds = %37
  %40 = getelementptr inbounds i8, ptr %0, i64 40
  %41 = load i64, ptr %40, align 8, !tbaa !49
  %.not51 = icmp eq i64 %41, 0
  br i1 %.not51, label %.loopexit, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader46
  %min.iters.check = icmp ult i64 %41, 8
  %42 = sub i64 %36, %6
  %diff.check = icmp ult i64 %42, 32
  %or.cond = or i1 %min.iters.check, %diff.check
  br i1 %or.cond, label %.lr.ph.preheader71, label %vector.ph

.lr.ph.preheader71:                               ; preds = %middle.block, %.lr.ph.preheader
  %.048.ph = phi i64 [ 0, %.lr.ph.preheader ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %41, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader71, %.lr.ph.prol
  %.048.prol = phi i64 [ %46, %.lr.ph.prol ], [ %.048.ph, %.lr.ph.preheader71 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader71 ]
  %43 = getelementptr inbounds float, ptr %4, i64 %.048.prol
  %44 = load float, ptr %43, align 4, !tbaa !53
  %45 = getelementptr inbounds float, ptr %35, i64 %.048.prol
  store float %44, ptr %45, align 4, !tbaa !53
  %46 = add nuw i64 %.048.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !54

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader71
  %.048.unr = phi i64 [ %.048.ph, %.lr.ph.preheader71 ], [ %46, %.lr.ph.prol ]
  %47 = sub i64 %.048.ph, %41
  %48 = icmp ugt i64 %47, -4
  br i1 %48, label %.loopexit, label %.lr.ph

vector.ph:                                        ; preds = %.lr.ph.preheader
  %n.vec = and i64 %41, -8
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %49 = getelementptr inbounds float, ptr %4, i64 %index
  %50 = getelementptr inbounds i8, ptr %49, i64 16
  %wide.load = load <4 x float>, ptr %49, align 4, !tbaa !53
  %wide.load58 = load <4 x float>, ptr %50, align 4, !tbaa !53
  %51 = getelementptr inbounds float, ptr %35, i64 %index
  %52 = getelementptr inbounds i8, ptr %51, i64 16
  store <4 x float> %wide.load, ptr %51, align 4, !tbaa !53
  store <4 x float> %wide.load58, ptr %52, align 4, !tbaa !53
  %index.next = add nuw i64 %index, 8
  %53 = icmp eq i64 %index.next, %n.vec
  br i1 %53, label %middle.block, label %vector.body, !llvm.loop !56

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %41, %n.vec
  br i1 %cmp.n, label %.loopexit, label %.lr.ph.preheader71

.preheader:                                       ; preds = %37
  %54 = getelementptr inbounds i8, ptr %0, i64 40
  %55 = load i64, ptr %54, align 8, !tbaa !49
  %.not52 = icmp eq i64 %55, 0
  br i1 %.not52, label %.loopexit, label %.lr.ph50.preheader

.lr.ph50.preheader:                               ; preds = %.preheader
  %.pre55 = load float, ptr %4, align 4, !tbaa !53
  %min.iters.check61 = icmp ult i64 %55, 8
  br i1 %min.iters.check61, label %.lr.ph50.preheader70, label %vector.ph62

.lr.ph50.preheader70:                             ; preds = %middle.block59, %.lr.ph50.preheader
  %.03349.ph = phi i64 [ 0, %.lr.ph50.preheader ], [ %n.vec64, %middle.block59 ]
  br label %.lr.ph50

vector.ph62:                                      ; preds = %.lr.ph50.preheader
  %n.vec64 = and i64 %55, -8
  %broadcast.splatinsert = insertelement <4 x float> poison, float %.pre55, i64 0
  %broadcast.splat = shufflevector <4 x float> %broadcast.splatinsert, <4 x float> poison, <4 x i32> zeroinitializer
  br label %vector.body66

vector.body66:                                    ; preds = %vector.body66, %vector.ph62
  %index67 = phi i64 [ 0, %vector.ph62 ], [ %index.next68, %vector.body66 ]
  %56 = getelementptr inbounds float, ptr %35, i64 %index67
  %57 = getelementptr inbounds i8, ptr %56, i64 16
  store <4 x float> %broadcast.splat, ptr %56, align 4, !tbaa !53
  store <4 x float> %broadcast.splat, ptr %57, align 4, !tbaa !53
  %index.next68 = add nuw i64 %index67, 8
  %58 = icmp eq i64 %index.next68, %n.vec64
  br i1 %58, label %middle.block59, label %vector.body66, !llvm.loop !60

middle.block59:                                   ; preds = %vector.body66
  %cmp.n69 = icmp eq i64 %55, %n.vec64
  br i1 %cmp.n69, label %.loopexit, label %.lr.ph50.preheader70

59:                                               ; preds = %37
  store <2 x float> <float 0xC7EFFFFFE0000000, float 0x47EFFFFFE0000000>, ptr %35, align 4, !tbaa !53
  br label %.loopexit

60:                                               ; preds = %37
  store <2 x float> <float 0.000000e+00, float 0x47EFFFFFE0000000>, ptr %35, align 4, !tbaa !53
  br label %.loopexit

.lr.ph50:                                         ; preds = %.lr.ph50.preheader70, %.lr.ph50
  %.03349 = phi i64 [ %62, %.lr.ph50 ], [ %.03349.ph, %.lr.ph50.preheader70 ]
  %61 = getelementptr inbounds float, ptr %35, i64 %.03349
  store float %.pre55, ptr %61, align 4, !tbaa !53
  %62 = add nuw i64 %.03349, 1
  %exitcond54.not = icmp eq i64 %62, %55
  br i1 %exitcond54.not, label %.loopexit, label %.lr.ph50, !llvm.loop !61

63:                                               ; preds = %37
  %64 = load float, ptr %4, align 4, !tbaa !53
  store float %64, ptr %35, align 4, !tbaa !53
  %65 = getelementptr inbounds i8, ptr %4, i64 4
  %66 = load float, ptr %65, align 4, !tbaa !53
  %67 = getelementptr inbounds i8, ptr %35, i64 4
  store float %66, ptr %67, align 4, !tbaa !53
  br label %.loopexit

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %.048 = phi i64 [ %83, %.lr.ph ], [ %.048.unr, %.lr.ph.prol.loopexit ]
  %68 = getelementptr inbounds float, ptr %4, i64 %.048
  %69 = load float, ptr %68, align 4, !tbaa !53
  %70 = getelementptr inbounds float, ptr %35, i64 %.048
  store float %69, ptr %70, align 4, !tbaa !53
  %71 = add nuw i64 %.048, 1
  %72 = getelementptr inbounds float, ptr %4, i64 %71
  %73 = load float, ptr %72, align 4, !tbaa !53
  %74 = getelementptr inbounds float, ptr %35, i64 %71
  store float %73, ptr %74, align 4, !tbaa !53
  %75 = add nuw i64 %.048, 2
  %76 = getelementptr inbounds float, ptr %4, i64 %75
  %77 = load float, ptr %76, align 4, !tbaa !53
  %78 = getelementptr inbounds float, ptr %35, i64 %75
  store float %77, ptr %78, align 4, !tbaa !53
  %79 = add nuw i64 %.048, 3
  %80 = getelementptr inbounds float, ptr %4, i64 %79
  %81 = load float, ptr %80, align 4, !tbaa !53
  %82 = getelementptr inbounds float, ptr %35, i64 %79
  store float %81, ptr %82, align 4, !tbaa !53
  %83 = add nuw i64 %.048, 4
  %exitcond.not.3 = icmp eq i64 %83, %41
  br i1 %exitcond.not.3, label %.loopexit, label %.lr.ph, !llvm.loop !62

84:                                               ; preds = %37
  %85 = load float, ptr %4, align 4, !tbaa !53
  store float %85, ptr %35, align 4, !tbaa !53
  br label %.loopexit

86:                                               ; preds = %37
  %87 = load float, ptr %4, align 4, !tbaa !53
  store float %87, ptr %35, align 4, !tbaa !53
  %88 = getelementptr inbounds i8, ptr %4, i64 4
  %89 = load float, ptr %88, align 4, !tbaa !53
  %90 = getelementptr inbounds i8, ptr %35, i64 4
  store float %89, ptr %90, align 4, !tbaa !53
  br label %.loopexit

91:                                               ; preds = %37
  %92 = load float, ptr %4, align 4, !tbaa !53
  store float %92, ptr %35, align 4, !tbaa !53
  br label %.loopexit

93:                                               ; preds = %37
  %94 = load float, ptr %4, align 4, !tbaa !53
  store float %94, ptr %35, align 4, !tbaa !53
  %95 = getelementptr inbounds i8, ptr %4, i64 4
  %96 = load float, ptr %95, align 4, !tbaa !53
  %97 = getelementptr inbounds i8, ptr %35, i64 4
  store float %96, ptr %97, align 4, !tbaa !53
  br label %.loopexit

98:                                               ; preds = %37
  %99 = load float, ptr %4, align 4, !tbaa !53
  store float %99, ptr %35, align 4, !tbaa !53
  br label %.loopexit

100:                                              ; preds = %37
  tail call void @__assert_fail(ptr noundef nonnull @.str, ptr noundef nonnull @.str.1, i32 noundef 131, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN4Simd4Base29SynetConvolution32fNhwcDirect9SetParamsEPKfP8SimdBoolS3_S3_) #4
  unreachable

.loopexit:                                        ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %.lr.ph50, %middle.block, %middle.block59, %.preheader46, %.preheader, %98, %93, %91, %86, %84, %63, %60, %59, %37
  %101 = getelementptr inbounds i8, ptr %0, i64 232
  store ptr %35, ptr %101, align 8, !tbaa !63
  br label %102

102:                                              ; preds = %.loopexit, %33
  ret void
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd19SynetConvolution32f9SetParamsEPKfP8SimdBoolS2_S2_(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef, ptr noundef, ptr noundef, ptr noundef) unnamed_addr #1 align 2

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

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

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #3

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { noreturn nounwind "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 = { noreturn 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, !40, i64 568}
!6 = !{!"_ZTSN4Simd4Base29SynetConvolution32fNhwcDirectE", !7, i64 0, !11, i64 440, !11, i64 448, !19, i64 456, !19, i64 472, !19, i64 488, !34, i64 504, !39, i64 568}
!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 = !{!"_ZTSN4Simd7RuntimeINS_4Base29SynetConvolution32fNhwcDirect7RunFuncENS2_7RunArgsEEE", !20, i64 0, !35, i64 8, !27, i64 32}
!35 = !{!"_ZTSSt6vectorIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseIN4Simd7RuntimeINS0_4Base29SynetConvolution32fNhwcDirect7RunFuncENS3_7RunArgsEE9CandidateESaIS7_EE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!39 = !{!"_ZTSN4Simd4Base29SynetConvolution32fNhwcDirect3OldE", !40, i64 0, !20, i64 8, !41, i64 16, !19, i64 80}
!40 = !{!"bool", !12, i64 0}
!41 = !{!"_ZTSN4Simd4Base29SynetConvolution32fNhwcDirect8AlgParamE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !12, i64 40, !11, i64 56}
!42 = !{i8 0, i8 2}
!43 = !{}
!44 = !{!6, !20, i64 648}
!45 = !{!7, !20, i64 216}
!46 = !{!6, !20, i64 456}
!47 = !{!17, !17, i64 0}
!48 = !{!6, !20, i64 472}
!49 = !{!10, !11, i64 32}
!50 = !{!7, !20, i64 224}
!51 = !{!6, !20, i64 488}
!52 = !{!10, !16, i64 152}
!53 = !{!21, !21, i64 0}
!54 = distinct !{!54, !55}
!55 = !{!"llvm.loop.unroll.disable"}
!56 = distinct !{!56, !57, !58, !59}
!57 = !{!"llvm.loop.mustprogress"}
!58 = !{!"llvm.loop.isvectorized", i32 1}
!59 = !{!"llvm.loop.unroll.runtime.disable"}
!60 = distinct !{!60, !57, !58, !59}
!61 = distinct !{!61, !57, !59, !58}
!62 = distinct !{!62, !57, !58}
!63 = !{!7, !20, i64 232}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass