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

; 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::SynetMergedConvolution8i" = type { %"class.Simd::SynetMergedConvolution8i", %"struct.Simd::MergConvParam8i", i8, i8, i8, i8, i64, i64, [2 x i64], [5 x i64], [3 x %"struct.Simd::CvtParam"], %"struct.Simd::Array", [2 x %"struct.Simd::Array.1"], %"struct.Simd::Array.0", [2 x %"struct.Simd::Array.0"], [3 x %"struct.Simd::Array.0"], [3 x %"struct.Simd::Array.0"], %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr, ptr, ptr, ptr, [2 x ptr], %"class.std::__cxx11::basic_string" }
%"class.Simd::SynetMergedConvolution8i" = type { %"struct.Simd::Deletable" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::MergConvParam8i" = type { i64, [3 x %"struct.Simd::ConvParam"] }
%"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::CvtParam" = type <{ %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.0", %"struct.Simd::Array.0", %"struct.Simd::Array.0", i8, [3 x i8], i32, i32, i32, i32, [4 x i8] }>
%"struct.Simd::Array" = type { ptr, i64 }
%"struct.Simd::Array.1" = type { ptr, i64 }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Base::SynetMergedConvolution8i::AlgParam" = type { i64, i64, [3 x i64], [3 x i64], [3 x i64], [2 x i64], [3 x i64], i64, i32, i32 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateIhEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base26SynetMergedConvolution8iCd7ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(1376) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca i32, align 4
  %17 = alloca i64, align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca i64, align 8
  %21 = alloca i64, align 8
  %22 = alloca i64, align 8
  %23 = alloca i64, align 8
  %24 = alloca i64, align 8
  %25 = alloca i64, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %26 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %27 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 1
  store ptr %27, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = getelementptr inbounds %"struct.Simd::MergConvParam8i", ptr %28, i32 0, i32 1
  %30 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %29, i64 0, i64 0
  store ptr %30, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %31 = load ptr, ptr %9, align 8, !tbaa !5
  %32 = getelementptr inbounds %"struct.Simd::MergConvParam8i", ptr %31, i32 0, i32 1
  %33 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %32, i64 0, i64 1
  store ptr %33, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %34 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 17
  store ptr %34, ptr %12, align 8, !tbaa !5
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = call noundef ptr @_ZN4Simd4Base24SynetMergedConvolution8i9GetBufferEPh(ptr noundef nonnull align 8 dereferenceable(1376) %26, ptr noundef %35)
  store ptr %36, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %37 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 9
  %38 = getelementptr inbounds [5 x i64], ptr %37, i64 0, i64 0
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %39, i64 noundef 8)
  store ptr %40, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %41 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 9
  %42 = getelementptr inbounds [5 x i64], ptr %41, i64 0, i64 2
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = call noundef ptr @_ZN4Simd8AllocateIhEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %43, i64 noundef 8)
  store ptr %44, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %45

45:                                               ; preds = %291, %4
  %46 = load i64, ptr %15, align 8, !tbaa !9
  %47 = load ptr, ptr %10, align 8, !tbaa !5
  %48 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %47, i32 0, i32 3
  %49 = load i64, ptr %48, align 8, !tbaa !11
  %50 = icmp ult i64 %46, %49
  br i1 %50, label %52, label %51

51:                                               ; preds = %45
  store i32 2, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  br label %294

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  store i64 0, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %53, i32 0, i32 5
  %55 = load i64, ptr %54, align 8, !tbaa !19
  store i64 %55, ptr %18, align 8, !tbaa !9
  br label %56

56:                                               ; preds = %262, %52
  %57 = load i64, ptr %17, align 8, !tbaa !9
  %58 = load i64, ptr %18, align 8, !tbaa !9
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 5, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  br label %268

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %62 = load i64, ptr %18, align 8, !tbaa !9
  %63 = load i64, ptr %17, align 8, !tbaa !9
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  %65 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !20
  %67 = add i64 %63, %66
  %68 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %62, i64 noundef %67)
  %69 = load i64, ptr %17, align 8, !tbaa !9
  %70 = sub i64 %68, %69
  store i64 %70, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  store i64 0, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  store i64 0, ptr %21, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 0, ptr %22, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %164, %61
  %72 = load i64, ptr %20, align 8, !tbaa !9
  %73 = load ptr, ptr %11, align 8, !tbaa !5
  %74 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %73, i32 0, i32 6
  %75 = load i64, ptr %74, align 8, !tbaa !23
  %76 = icmp ult i64 %72, %75
  br i1 %76, label %78, label %77

77:                                               ; preds = %71
  store i32 8, ptr %16, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  br label %261

78:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %79 = load i64, ptr %20, align 8, !tbaa !9
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %80, i32 0, i32 2
  %82 = getelementptr inbounds [3 x i64], ptr %81, i64 0, i64 2
  %83 = load i64, ptr %82, align 8, !tbaa !9
  %84 = add i64 %79, %83
  %85 = load ptr, ptr %12, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %85, i32 0, i32 3
  %87 = getelementptr inbounds [3 x i64], ptr %86, i64 0, i64 2
  %88 = load i64, ptr %87, align 8, !tbaa !9
  %89 = load ptr, ptr %11, align 8, !tbaa !5
  %90 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %89, i32 0, i32 6
  %91 = load i64, ptr %90, align 8, !tbaa !23
  %92 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %84, i64 noundef %88, i64 noundef %91)
  store i64 %92, ptr %23, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %93 = load i64, ptr %21, align 8, !tbaa !9
  %94 = load ptr, ptr %12, align 8, !tbaa !5
  %95 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %94, i32 0, i32 2
  %96 = getelementptr inbounds [3 x i64], ptr %95, i64 0, i64 1
  %97 = load i64, ptr %96, align 8, !tbaa !9
  %98 = add i64 %93, %97
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %99, i32 0, i32 3
  %101 = getelementptr inbounds [3 x i64], ptr %100, i64 0, i64 1
  %102 = load i64, ptr %101, align 8, !tbaa !9
  %103 = load ptr, ptr %11, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %103, i32 0, i32 1
  %105 = load i64, ptr %104, align 8, !tbaa !24
  %106 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %98, i64 noundef %102, i64 noundef %105)
  store i64 %106, ptr %24, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #4
  %107 = load i64, ptr %22, align 8, !tbaa !9
  %108 = load ptr, ptr %12, align 8, !tbaa !5
  %109 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %108, i32 0, i32 2
  %110 = getelementptr inbounds [3 x i64], ptr %109, i64 0, i64 0
  %111 = load i64, ptr %110, align 8, !tbaa !9
  %112 = add i64 %107, %111
  %113 = load ptr, ptr %12, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %113, i32 0, i32 3
  %115 = getelementptr inbounds [3 x i64], ptr %114, i64 0, i64 0
  %116 = load i64, ptr %115, align 8, !tbaa !9
  %117 = load ptr, ptr %10, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %117, i32 0, i32 1
  %119 = load i64, ptr %118, align 8, !tbaa !24
  %120 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %112, i64 noundef %116, i64 noundef %119)
  store i64 %120, ptr %25, align 8, !tbaa !9
  %121 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 2
  %122 = load i8, ptr %121, align 8, !tbaa !25, !range !35, !noundef !36
  %123 = trunc i8 %122 to i1
  br i1 %123, label %154, label %124

124:                                              ; preds = %78
  %125 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 19
  %126 = load ptr, ptr %125, align 8, !tbaa !37
  %127 = load ptr, ptr %6, align 8, !tbaa !5
  %128 = load i64, ptr %22, align 8, !tbaa !9
  %129 = load i64, ptr %25, align 8, !tbaa !9
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %130, i32 0, i32 2
  %132 = load i64, ptr %131, align 8, !tbaa !38
  %133 = load ptr, ptr %10, align 8, !tbaa !5
  %134 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %133, i32 0, i32 0
  %135 = load i64, ptr %134, align 8, !tbaa !39
  %136 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 10
  %137 = getelementptr inbounds [3 x %"struct.Simd::CvtParam"], ptr %136, i64 0, i64 0
  %138 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %137, i32 0, i32 1
  %139 = getelementptr inbounds %"struct.Simd::Array.0", ptr %138, i32 0, i32 0
  %140 = load ptr, ptr %139, align 8, !tbaa !40
  %141 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 10
  %142 = getelementptr inbounds [3 x %"struct.Simd::CvtParam"], ptr %141, i64 0, i64 0
  %143 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %142, i32 0, i32 2
  %144 = getelementptr inbounds %"struct.Simd::Array.0", ptr %143, i32 0, i32 0
  %145 = load ptr, ptr %144, align 8, !tbaa !42
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  %147 = load ptr, ptr %12, align 8, !tbaa !5
  %148 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %147, i32 0, i32 4
  %149 = getelementptr inbounds [3 x i64], ptr %148, i64 0, i64 0
  %150 = load i64, ptr %149, align 8, !tbaa !9
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %151, i32 0, i32 4
  %153 = load i32, ptr %152, align 8, !tbaa !43
  call void %126(ptr noundef %127, i64 noundef %128, i64 noundef %129, i64 noundef %132, i64 noundef %135, ptr noundef %140, ptr noundef %145, ptr noundef %146, i64 noundef %150, i32 noundef %153)
  br label %154

154:                                              ; preds = %124, %78
  %155 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 20
  %156 = load ptr, ptr %155, align 8, !tbaa !44
  %157 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 2
  %158 = load i8, ptr %157, align 8, !tbaa !25, !range !35, !noundef !36
  %159 = trunc i8 %158 to i1
  br i1 %159, label %160, label %162

160:                                              ; preds = %154
  %161 = load ptr, ptr %6, align 8, !tbaa !5
  br label %164

162:                                              ; preds = %154
  %163 = load ptr, ptr %14, align 8, !tbaa !5
  br label %164

164:                                              ; preds = %162, %160
  %165 = phi ptr [ %161, %160 ], [ %163, %162 ]
  %166 = load ptr, ptr %10, align 8, !tbaa !5
  %167 = load ptr, ptr %12, align 8, !tbaa !5
  %168 = load i64, ptr %19, align 8, !tbaa !9
  %169 = load i64, ptr %21, align 8, !tbaa !9
  %170 = load i64, ptr %24, align 8, !tbaa !9
  %171 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 12
  %172 = getelementptr inbounds [2 x %"struct.Simd::Array.1"], ptr %171, i64 0, i64 0
  %173 = getelementptr inbounds %"struct.Simd::Array.1", ptr %172, i32 0, i32 0
  %174 = load ptr, ptr %173, align 8, !tbaa !45
  %175 = load i64, ptr %17, align 8, !tbaa !9
  %176 = load ptr, ptr %12, align 8, !tbaa !5
  %177 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %176, i32 0, i32 6
  %178 = getelementptr inbounds [3 x i64], ptr %177, i64 0, i64 0
  %179 = load i64, ptr %178, align 8, !tbaa !9
  %180 = mul i64 %175, %179
  %181 = getelementptr inbounds i8, ptr %174, i64 %180
  %182 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 14
  %183 = getelementptr inbounds [2 x %"struct.Simd::Array.0"], ptr %182, i64 0, i64 0
  %184 = getelementptr inbounds %"struct.Simd::Array.0", ptr %183, i32 0, i32 0
  %185 = load ptr, ptr %184, align 8, !tbaa !47
  %186 = load i64, ptr %17, align 8, !tbaa !9
  %187 = getelementptr inbounds float, ptr %185, i64 %186
  %188 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 15
  %189 = getelementptr inbounds [3 x %"struct.Simd::Array.0"], ptr %188, i64 0, i64 0
  %190 = getelementptr inbounds %"struct.Simd::Array.0", ptr %189, i32 0, i32 0
  %191 = load ptr, ptr %190, align 8, !tbaa !47
  %192 = load i64, ptr %17, align 8, !tbaa !9
  %193 = getelementptr inbounds float, ptr %191, i64 %192
  %194 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 16
  %195 = getelementptr inbounds [3 x %"struct.Simd::Array.0"], ptr %194, i64 0, i64 0
  %196 = getelementptr inbounds %"struct.Simd::Array.0", ptr %195, i32 0, i32 0
  %197 = load ptr, ptr %196, align 8, !tbaa !47
  %198 = load i64, ptr %17, align 8, !tbaa !9
  %199 = load ptr, ptr %12, align 8, !tbaa !5
  %200 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %199, i32 0, i32 5
  %201 = getelementptr inbounds [2 x i64], ptr %200, i64 0, i64 0
  %202 = load i64, ptr %201, align 8, !tbaa !9
  %203 = mul i64 %198, %202
  %204 = getelementptr inbounds float, ptr %197, i64 %203
  %205 = load ptr, ptr %13, align 8, !tbaa !5
  call void %156(ptr noundef %165, ptr noundef nonnull align 8 dereferenceable(180) %166, ptr noundef nonnull align 8 dereferenceable(144) %167, i64 noundef %168, i64 noundef %169, i64 noundef %170, ptr noundef %181, ptr noundef %187, ptr noundef %193, ptr noundef %204, ptr noundef %205)
  %206 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 21
  %207 = load ptr, ptr %206, align 8, !tbaa !48
  %208 = load ptr, ptr %13, align 8, !tbaa !5
  %209 = load ptr, ptr %11, align 8, !tbaa !5
  %210 = load ptr, ptr %12, align 8, !tbaa !5
  %211 = load i64, ptr %19, align 8, !tbaa !9
  %212 = load i64, ptr %20, align 8, !tbaa !9
  %213 = load i64, ptr %23, align 8, !tbaa !9
  %214 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 13
  %215 = getelementptr inbounds %"struct.Simd::Array.0", ptr %214, i32 0, i32 0
  %216 = load ptr, ptr %215, align 8, !tbaa !49
  %217 = load i64, ptr %17, align 8, !tbaa !9
  %218 = load ptr, ptr %12, align 8, !tbaa !5
  %219 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %218, i32 0, i32 6
  %220 = getelementptr inbounds [3 x i64], ptr %219, i64 0, i64 1
  %221 = load i64, ptr %220, align 8, !tbaa !9
  %222 = mul i64 %217, %221
  %223 = getelementptr inbounds float, ptr %216, i64 %222
  %224 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 15
  %225 = getelementptr inbounds [3 x %"struct.Simd::Array.0"], ptr %224, i64 0, i64 1
  %226 = getelementptr inbounds %"struct.Simd::Array.0", ptr %225, i32 0, i32 0
  %227 = load ptr, ptr %226, align 8, !tbaa !47
  %228 = load i64, ptr %17, align 8, !tbaa !9
  %229 = getelementptr inbounds float, ptr %227, i64 %228
  %230 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 16
  %231 = getelementptr inbounds [3 x %"struct.Simd::Array.0"], ptr %230, i64 0, i64 1
  %232 = getelementptr inbounds %"struct.Simd::Array.0", ptr %231, i32 0, i32 0
  %233 = load ptr, ptr %232, align 8, !tbaa !47
  %234 = load i64, ptr %17, align 8, !tbaa !9
  %235 = load ptr, ptr %12, align 8, !tbaa !5
  %236 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %235, i32 0, i32 5
  %237 = getelementptr inbounds [2 x i64], ptr %236, i64 0, i64 1
  %238 = load i64, ptr %237, align 8, !tbaa !9
  %239 = mul i64 %234, %238
  %240 = getelementptr inbounds float, ptr %233, i64 %239
  %241 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 10
  %242 = getelementptr inbounds [3 x %"struct.Simd::CvtParam"], ptr %241, i64 0, i64 2
  %243 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %242, i32 0, i32 1
  %244 = getelementptr inbounds %"struct.Simd::Array.0", ptr %243, i32 0, i32 0
  %245 = load ptr, ptr %244, align 8, !tbaa !40
  %246 = load i64, ptr %17, align 8, !tbaa !9
  %247 = getelementptr inbounds float, ptr %245, i64 %246
  %248 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 10
  %249 = getelementptr inbounds [3 x %"struct.Simd::CvtParam"], ptr %248, i64 0, i64 2
  %250 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %249, i32 0, i32 2
  %251 = getelementptr inbounds %"struct.Simd::Array.0", ptr %250, i32 0, i32 0
  %252 = load ptr, ptr %251, align 8, !tbaa !42
  %253 = load i64, ptr %17, align 8, !tbaa !9
  %254 = getelementptr inbounds float, ptr %252, i64 %253
  %255 = load ptr, ptr %8, align 8, !tbaa !5
  %256 = load i64, ptr %17, align 8, !tbaa !9
  %257 = getelementptr inbounds i8, ptr %255, i64 %256
  call void %207(ptr noundef %208, ptr noundef nonnull align 8 dereferenceable(180) %209, ptr noundef nonnull align 8 dereferenceable(144) %210, i64 noundef %211, i64 noundef %212, i64 noundef %213, ptr noundef %223, ptr noundef %229, ptr noundef %240, ptr noundef %247, ptr noundef %254, ptr noundef %257)
  %258 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %258, ptr %20, align 8, !tbaa !9
  %259 = load i64, ptr %24, align 8, !tbaa !9
  store i64 %259, ptr %21, align 8, !tbaa !9
  %260 = load i64, ptr %25, align 8, !tbaa !9
  store i64 %260, ptr %22, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %71, !llvm.loop !50

261:                                              ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %262

262:                                              ; preds = %261
  %263 = load ptr, ptr %12, align 8, !tbaa !5
  %264 = getelementptr inbounds %"struct.Simd::Base::SynetMergedConvolution8i::AlgParam", ptr %263, i32 0, i32 1
  %265 = load i64, ptr %264, align 8, !tbaa !20
  %266 = load i64, ptr %17, align 8, !tbaa !9
  %267 = add i64 %266, %265
  store i64 %267, ptr %17, align 8, !tbaa !9
  br label %56, !llvm.loop !52

268:                                              ; preds = %60
  %269 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 6
  %270 = load i64, ptr %269, align 8, !tbaa !53
  %271 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 2
  %272 = load i8, ptr %271, align 8, !tbaa !25, !range !35, !noundef !36
  %273 = trunc i8 %272 to i1
  %274 = zext i1 %273 to i64
  %275 = select i1 %273, i32 1, i32 4
  %276 = sext i32 %275 to i64
  %277 = mul i64 %270, %276
  %278 = load ptr, ptr %6, align 8, !tbaa !5
  %279 = getelementptr inbounds i8, ptr %278, i64 %277
  store ptr %279, ptr %6, align 8, !tbaa !5
  %280 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 7
  %281 = load i64, ptr %280, align 8, !tbaa !54
  %282 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution8i", ptr %26, i32 0, i32 3
  %283 = load i8, ptr %282, align 1, !tbaa !55, !range !35, !noundef !36
  %284 = trunc i8 %283 to i1
  %285 = zext i1 %284 to i64
  %286 = select i1 %284, i32 1, i32 4
  %287 = sext i32 %286 to i64
  %288 = mul i64 %281, %287
  %289 = load ptr, ptr %8, align 8, !tbaa !5
  %290 = getelementptr inbounds i8, ptr %289, i64 %288
  store ptr %290, ptr %8, align 8, !tbaa !5
  br label %291

291:                                              ; preds = %268
  %292 = load i64, ptr %15, align 8, !tbaa !9
  %293 = add i64 %292, 1
  store i64 %293, ptr %15, align 8, !tbaa !9
  br label %45, !llvm.loop !56

294:                                              ; preds = %51
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  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
  ret void
}

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 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 168}
!12 = !{!"_ZTSN4Simd9ConvParamE", !13, i64 0, !17, i64 160, !10, i64 168, !18, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !15, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !14, i64 56, !15, 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, !16, i64 152}
!14 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!15 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!16 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!17 = !{!"_ZTS8SimdBool", !7, i64 0}
!18 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!19 = !{!13, !10, i64 32}
!20 = !{!21, !10, i64 8}
!21 = !{!"_ZTSN4Simd4Base24SynetMergedConvolution8i8AlgParamE", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 40, !7, i64 64, !7, i64 88, !7, i64 104, !10, i64 128, !22, i64 136, !22, i64 140}
!22 = !{!"int", !7, i64 0}
!23 = !{!13, !10, i64 40}
!24 = !{!13, !10, i64 8}
!25 = !{!26, !30, i64 568}
!26 = !{!"_ZTSN4Simd4Base24SynetMergedConvolution8iE", !27, i64 0, !29, i64 8, !30, i64 568, !30, i64 569, !30, i64 570, !30, i64 571, !10, i64 576, !10, i64 584, !7, i64 592, !7, i64 608, !7, i64 648, !31, i64 960, !7, i64 976, !32, i64 1008, !7, i64 1024, !7, i64 1056, !7, i64 1104, !21, i64 1152, !6, i64 1296, !6, i64 1304, !6, i64 1312, !6, i64 1320, !7, i64 1328, !33, i64 1344}
!27 = !{!"_ZTSN4Simd24SynetMergedConvolution8iE", !28, i64 0}
!28 = !{!"_ZTSN4Simd9DeletableE"}
!29 = !{!"_ZTSN4Simd15MergConvParam8iE", !10, i64 0, !7, i64 8}
!30 = !{!"bool", !7, i64 0}
!31 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!32 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !34, i64 0, !10, i64 8, !7, i64 16}
!34 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!35 = !{i8 0, i8 2}
!36 = !{}
!37 = !{!26, !6, i64 1304}
!38 = !{!13, !10, i64 16}
!39 = !{!13, !10, i64 0}
!40 = !{!41, !6, i64 16}
!41 = !{!"_ZTSN4Simd8CvtParamE", !31, i64 0, !32, i64 16, !32, i64 32, !32, i64 48, !32, i64 64, !30, i64 80, !22, i64 84, !22, i64 88, !22, i64 92, !22, i64 96}
!42 = !{!41, !6, i64 32}
!43 = !{!12, !18, i64 176}
!44 = !{!26, !6, i64 1312}
!45 = !{!46, !6, i64 0}
!46 = !{!"_ZTSN4Simd5ArrayIaEE", !6, i64 0, !10, i64 8}
!47 = !{!32, !6, i64 0}
!48 = !{!26, !6, i64 1320}
!49 = !{!26, !6, i64 1008}
!50 = distinct !{!50, !51}
!51 = !{!"llvm.loop.mustprogress"}
!52 = distinct !{!52, !51}
!53 = !{!26, !10, i64 576}
!54 = !{!26, !10, i64 584}
!55 = !{!26, !30, i64 569}
!56 = distinct !{!56, !51}


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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateIhEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base26SynetMergedConvolution8iCd7ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(1376) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = getelementptr inbounds i8, ptr %0, i64 16
  %7 = getelementptr inbounds i8, ptr %0, i64 200
  %8 = getelementptr inbounds i8, ptr %0, i64 1152
  %9 = tail call noundef ptr @_ZN4Simd4Base24SynetMergedConvolution8i9GetBufferEPh(ptr noundef nonnull align 8 dereferenceable(1376) %0, ptr noundef %2)
  store ptr %9, ptr %5, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 608
  %11 = load i64, ptr %10, align 8, !tbaa !9
  %12 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %11, i64 noundef 8)
  %13 = getelementptr inbounds i8, ptr %0, i64 624
  %14 = load i64, ptr %13, align 8, !tbaa !9
  %15 = call noundef ptr @_ZN4Simd8AllocateIhEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %14, i64 noundef 8)
  %16 = getelementptr inbounds i8, ptr %0, i64 184
  %17 = load i64, ptr %16, align 8, !tbaa !11
  %.not = icmp eq i64 %17, 0
  br i1 %.not, label %._crit_edge90, label %.lr.ph89

.lr.ph89:                                         ; preds = %4
  %18 = getelementptr inbounds i8, ptr %0, i64 232
  %19 = getelementptr inbounds i8, ptr %0, i64 1160
  %20 = getelementptr inbounds i8, ptr %0, i64 240
  %21 = getelementptr inbounds i8, ptr %0, i64 1168
  %22 = getelementptr inbounds i8, ptr %0, i64 1184
  %23 = getelementptr inbounds i8, ptr %0, i64 1192
  %24 = getelementptr inbounds i8, ptr %0, i64 1208
  %25 = getelementptr inbounds i8, ptr %0, i64 1176
  %26 = getelementptr inbounds i8, ptr %0, i64 1200
  %27 = getelementptr inbounds i8, ptr %0, i64 208
  %28 = getelementptr inbounds i8, ptr %0, i64 24
  %29 = getelementptr inbounds i8, ptr %0, i64 568
  %30 = getelementptr inbounds i8, ptr %0, i64 1304
  %31 = getelementptr inbounds i8, ptr %0, i64 32
  %32 = getelementptr inbounds i8, ptr %0, i64 664
  %33 = getelementptr inbounds i8, ptr %0, i64 680
  %34 = getelementptr inbounds i8, ptr %0, i64 1216
  %35 = getelementptr inbounds i8, ptr %0, i64 192
  %36 = getelementptr inbounds i8, ptr %0, i64 1312
  %37 = getelementptr inbounds i8, ptr %0, i64 976
  %38 = getelementptr inbounds i8, ptr %0, i64 1256
  %39 = getelementptr inbounds i8, ptr %0, i64 1024
  %40 = getelementptr inbounds i8, ptr %0, i64 1056
  %41 = getelementptr inbounds i8, ptr %0, i64 1104
  %42 = getelementptr inbounds i8, ptr %0, i64 1240
  %43 = getelementptr inbounds i8, ptr %0, i64 1320
  %44 = getelementptr inbounds i8, ptr %0, i64 1008
  %45 = getelementptr inbounds i8, ptr %0, i64 1264
  %46 = getelementptr inbounds i8, ptr %0, i64 1072
  %47 = getelementptr inbounds i8, ptr %0, i64 1120
  %48 = getelementptr inbounds i8, ptr %0, i64 1248
  %49 = getelementptr inbounds i8, ptr %0, i64 872
  %50 = getelementptr inbounds i8, ptr %0, i64 888
  %51 = getelementptr inbounds i8, ptr %0, i64 576
  %52 = getelementptr inbounds i8, ptr %0, i64 584
  %53 = getelementptr inbounds i8, ptr %0, i64 569
  %54 = load i64, ptr %18, align 8, !tbaa !19
  %.not91 = icmp eq i64 %54, 0
  br i1 %.not91, label %._crit_edge90, label %.lr.ph89.split

._crit_edge90:                                    ; preds = %._crit_edge84, %.lr.ph89, %4
  ret void

.lr.ph89.splitthread-pre-split:                   ; preds = %._crit_edge84
  %55 = load i64, ptr %52, align 8, !tbaa !20
  %56 = load i8, ptr %53, align 1, !tbaa !32, !range !33, !noundef !34
  %57 = trunc nuw i8 %56 to i1
  %58 = select i1 %57, i64 0, i64 2
  %59 = shl i64 %55, %58
  %60 = getelementptr inbounds i8, ptr %.07086, i64 %59
  %61 = load i64, ptr %51, align 8, !tbaa !35
  %62 = load i8, ptr %29, align 8, !tbaa !36, !range !33, !noundef !34
  %63 = trunc nuw i8 %62 to i1
  %64 = select i1 %63, i64 0, i64 2
  %65 = shl i64 %61, %64
  %66 = getelementptr inbounds i8, ptr %.087, i64 %65
  %.pr = load i64, ptr %18, align 8, !tbaa !19
  br label %.lr.ph89.split

.lr.ph89.split:                                   ; preds = %.lr.ph89, %.lr.ph89.splitthread-pre-split
  %67 = phi i64 [ %.pr, %.lr.ph89.splitthread-pre-split ], [ %54, %.lr.ph89 ]
  %68 = phi i64 [ %69, %.lr.ph89.splitthread-pre-split ], [ %17, %.lr.ph89 ]
  %.087 = phi ptr [ %66, %.lr.ph89.splitthread-pre-split ], [ %1, %.lr.ph89 ]
  %.07086 = phi ptr [ %60, %.lr.ph89.splitthread-pre-split ], [ %3, %.lr.ph89 ]
  %.07185 = phi i64 [ %70, %.lr.ph89.splitthread-pre-split ], [ 0, %.lr.ph89 ]
  %.not92 = icmp eq i64 %67, 0
  br i1 %.not92, label %._crit_edge84, label %.lr.ph83.preheader

.lr.ph83.preheader:                               ; preds = %.lr.ph89.split
  %.pre = load i64, ptr %19, align 8, !tbaa !37
  br label %.lr.ph83

._crit_edge84.loopexit:                           ; preds = %._crit_edge
  %.pre96 = load i64, ptr %16, align 8, !tbaa !11
  br label %._crit_edge84

._crit_edge84:                                    ; preds = %._crit_edge84.loopexit, %.lr.ph89.split
  %69 = phi i64 [ %.pre96, %._crit_edge84.loopexit ], [ %68, %.lr.ph89.split ]
  %70 = add nuw i64 %.07185, 1
  %71 = icmp ult i64 %70, %69
  br i1 %71, label %.lr.ph89.splitthread-pre-split, label %._crit_edge90, !llvm.loop !38

.lr.ph83:                                         ; preds = %.lr.ph83.preheader, %._crit_edge
  %72 = phi i64 [ %78, %._crit_edge ], [ %.pre, %.lr.ph83.preheader ]
  %.07581 = phi i64 [ %79, %._crit_edge ], [ 0, %.lr.ph83.preheader ]
  %73 = add i64 %72, %.07581
  %74 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %67, i64 noundef %73)
  %75 = sub i64 %74, %.07581
  %76 = load i64, ptr %20, align 8, !tbaa !41
  %.not93 = icmp eq i64 %76, 0
  br i1 %.not93, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph83
  %77 = getelementptr inbounds i8, ptr %.07086, i64 %.07581
  br label %81

._crit_edge:                                      ; preds = %107, %.lr.ph83
  %78 = load i64, ptr %19, align 8, !tbaa !37
  %79 = add i64 %78, %.07581
  %80 = icmp ult i64 %79, %67
  br i1 %80, label %.lr.ph83, label %._crit_edge84.loopexit, !llvm.loop !42

81:                                               ; preds = %.lr.ph, %107
  %82 = phi i64 [ %76, %.lr.ph ], [ %137, %107 ]
  %.07280 = phi i64 [ 0, %.lr.ph ], [ %96, %107 ]
  %.07379 = phi i64 [ 0, %.lr.ph ], [ %91, %107 ]
  %.07478 = phi i64 [ 0, %.lr.ph ], [ %86, %107 ]
  %83 = load i64, ptr %22, align 8, !tbaa !9
  %84 = add i64 %83, %.07478
  %85 = load i64, ptr %24, align 8, !tbaa !9
  %86 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %84, i64 noundef %85, i64 noundef %82)
  %87 = load i64, ptr %25, align 8, !tbaa !9
  %88 = add i64 %87, %.07379
  %89 = load i64, ptr %26, align 8, !tbaa !9
  %90 = load i64, ptr %27, align 8, !tbaa !43
  %91 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %88, i64 noundef %89, i64 noundef %90)
  %92 = load i64, ptr %21, align 8, !tbaa !9
  %93 = add i64 %92, %.07280
  %94 = load i64, ptr %23, align 8, !tbaa !9
  %95 = load i64, ptr %28, align 8, !tbaa !43
  %96 = call noundef i64 @_ZN4Simd13RestrictRangeImEET_S1_S1_S1_(i64 noundef %93, i64 noundef %94, i64 noundef %95)
  %97 = load i8, ptr %29, align 8, !tbaa !36, !range !33, !noundef !34
  %98 = trunc nuw i8 %97 to i1
  br i1 %98, label %107, label %99

99:                                               ; preds = %81
  %100 = load ptr, ptr %30, align 8, !tbaa !44
  %101 = load i64, ptr %31, align 8, !tbaa !45
  %102 = load i64, ptr %6, align 8, !tbaa !46
  %103 = load ptr, ptr %32, align 8, !tbaa !47
  %104 = load ptr, ptr %33, align 8, !tbaa !49
  %105 = load i64, ptr %34, align 8, !tbaa !9
  %106 = load i32, ptr %35, align 8, !tbaa !50
  call void %100(ptr noundef %.087, i64 noundef %.07280, i64 noundef %96, i64 noundef %101, i64 noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %15, i64 noundef %105, i32 noundef %106)
  %.pre95 = load i8, ptr %29, align 8, !tbaa !36, !range !33
  %.pre97 = trunc nuw i8 %.pre95 to i1
  br label %107

107:                                              ; preds = %99, %81
  %.pre-phi = phi i1 [ %.pre97, %99 ], [ true, %81 ]
  %108 = load ptr, ptr %36, align 8, !tbaa !51
  %109 = select i1 %.pre-phi, ptr %.087, ptr %15
  %110 = load ptr, ptr %37, align 8, !tbaa !52
  %111 = load i64, ptr %38, align 8, !tbaa !9
  %112 = mul i64 %111, %.07581
  %113 = getelementptr inbounds i8, ptr %110, i64 %112
  %114 = load ptr, ptr %39, align 8, !tbaa !54
  %115 = getelementptr inbounds float, ptr %114, i64 %.07581
  %116 = load ptr, ptr %40, align 8, !tbaa !54
  %117 = getelementptr inbounds float, ptr %116, i64 %.07581
  %118 = load ptr, ptr %41, align 8, !tbaa !54
  %119 = load i64, ptr %42, align 8, !tbaa !9
  %120 = mul i64 %119, %.07581
  %121 = getelementptr inbounds float, ptr %118, i64 %120
  call void %108(ptr noundef %109, ptr noundef nonnull align 8 dereferenceable(180) %6, ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef %75, i64 noundef %.07379, i64 noundef %91, ptr noundef %113, ptr noundef %115, ptr noundef %117, ptr noundef %121, ptr noundef %12)
  %122 = load ptr, ptr %43, align 8, !tbaa !55
  %123 = load ptr, ptr %44, align 8, !tbaa !56
  %124 = load i64, ptr %45, align 8, !tbaa !9
  %125 = mul i64 %124, %.07581
  %126 = getelementptr inbounds float, ptr %123, i64 %125
  %127 = load ptr, ptr %46, align 8, !tbaa !54
  %128 = getelementptr inbounds float, ptr %127, i64 %.07581
  %129 = load ptr, ptr %47, align 8, !tbaa !54
  %130 = load i64, ptr %48, align 8, !tbaa !9
  %131 = mul i64 %130, %.07581
  %132 = getelementptr inbounds float, ptr %129, i64 %131
  %133 = load ptr, ptr %49, align 8, !tbaa !47
  %134 = getelementptr inbounds float, ptr %133, i64 %.07581
  %135 = load ptr, ptr %50, align 8, !tbaa !49
  %136 = getelementptr inbounds float, ptr %135, i64 %.07581
  call void %122(ptr noundef %12, ptr noundef nonnull align 8 dereferenceable(180) %7, ptr noundef nonnull align 8 dereferenceable(144) %8, i64 noundef %75, i64 noundef %.07478, i64 noundef %86, ptr noundef %126, ptr noundef %128, ptr noundef %132, ptr noundef %134, ptr noundef %136, ptr noundef %77)
  %137 = load i64, ptr %20, align 8, !tbaa !41
  %138 = icmp ult i64 %86, %137
  br i1 %138, label %81, label %._crit_edge, !llvm.loop !57
}

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

!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 168}
!12 = !{!"_ZTSN4Simd9ConvParamE", !13, i64 0, !17, i64 160, !10, i64 168, !18, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !14, i64 24, !15, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !14, i64 56, !15, 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, !16, i64 152}
!14 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!15 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!16 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!17 = !{!"_ZTS8SimdBool", !7, i64 0}
!18 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!19 = !{!13, !10, i64 32}
!20 = !{!21, !10, i64 584}
!21 = !{!"_ZTSN4Simd4Base24SynetMergedConvolution8iE", !22, i64 0, !24, i64 8, !25, i64 568, !25, i64 569, !25, i64 570, !25, i64 571, !10, i64 576, !10, i64 584, !7, i64 592, !7, i64 608, !7, i64 648, !26, i64 960, !7, i64 976, !27, i64 1008, !7, i64 1024, !7, i64 1056, !7, i64 1104, !28, i64 1152, !6, i64 1296, !6, i64 1304, !6, i64 1312, !6, i64 1320, !7, i64 1328, !30, i64 1344}
!22 = !{!"_ZTSN4Simd24SynetMergedConvolution8iE", !23, i64 0}
!23 = !{!"_ZTSN4Simd9DeletableE"}
!24 = !{!"_ZTSN4Simd15MergConvParam8iE", !10, i64 0, !7, i64 8}
!25 = !{!"bool", !7, i64 0}
!26 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!27 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!28 = !{!"_ZTSN4Simd4Base24SynetMergedConvolution8i8AlgParamE", !10, i64 0, !10, i64 8, !7, i64 16, !7, i64 40, !7, i64 64, !7, i64 88, !7, i64 104, !10, i64 128, !29, i64 136, !29, i64 140}
!29 = !{!"int", !7, i64 0}
!30 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !31, i64 0, !10, i64 8, !7, i64 16}
!31 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!32 = !{!21, !25, i64 569}
!33 = !{i8 0, i8 2}
!34 = !{}
!35 = !{!21, !10, i64 576}
!36 = !{!21, !25, i64 568}
!37 = !{!28, !10, i64 8}
!38 = distinct !{!38, !39, !40}
!39 = !{!"llvm.loop.mustprogress"}
!40 = !{!"llvm.loop.unswitch.partial.disable"}
!41 = !{!13, !10, i64 40}
!42 = distinct !{!42, !39}
!43 = !{!13, !10, i64 8}
!44 = !{!21, !6, i64 1304}
!45 = !{!13, !10, i64 16}
!46 = !{!13, !10, i64 0}
!47 = !{!48, !6, i64 16}
!48 = !{!"_ZTSN4Simd8CvtParamE", !26, i64 0, !27, i64 16, !27, i64 32, !27, i64 48, !27, i64 64, !25, i64 80, !29, i64 84, !29, i64 88, !29, i64 92, !29, i64 96}
!49 = !{!48, !6, i64 32}
!50 = !{!12, !18, i64 176}
!51 = !{!21, !6, i64 1312}
!52 = !{!53, !6, i64 0}
!53 = !{!"_ZTSN4Simd5ArrayIaEE", !6, i64 0, !10, i64 8}
!54 = !{!27, !6, i64 0}
!55 = !{!21, !6, i64 1320}
!56 = !{!21, !6, i64 1008}
!57 = distinct !{!57, !39}


; Effective O3 passes: BDCEPass,CorrelatedValuePropagationPass,DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass