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

; 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::SynetDeconvolution16bNhwcGemm" = type { %"class.Simd::SynetDeconvolution16b", %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr, ptr, ptr, ptr }
%"class.Simd::SynetDeconvolution16b" = type { %"struct.Simd::Deletable", %"struct.Simd::DeconvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string", %"struct.Simd::Array.0", %"struct.Simd::Array.1", %"struct.Simd::Array.1", i8, i8, i8, i64, i64, i64, i64 }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::DeconvParam" = type <{ %struct.SimdConvolutionParameters, i32, [4 x i8], i64, i32, [4 x i8] }>
%struct.SimdConvolutionParameters = type { i64, i64, i64, i32, i32, i64, i64, i64, i32, i32, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i32 }
%"struct.Simd::Array" = type { ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"struct.Simd::Array.0" = type { ptr, i64 }
%"struct.Simd::Array.1" = type { ptr, i64 }
%"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm10GemmCommonEPKtPf(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %1, ptr noundef %2) #1 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %16 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %17 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %16, i32 0, i32 1
  store ptr %17, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  store i64 0, ptr %8, align 8, !tbaa !9
  br label %18

18:                                               ; preds = %136, %3
  %19 = load i64, ptr %8, align 8, !tbaa !9
  %20 = load ptr, ptr %7, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %20, i32 0, i32 1
  %22 = load i64, ptr %21, align 8, !tbaa !11
  %23 = icmp ult i64 %19, %22
  br i1 %23, label %25, label %24

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

25:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %26, i32 0, i32 1
  %28 = load i64, ptr %27, align 8, !tbaa !11
  %29 = load i64, ptr %8, align 8, !tbaa !9
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %30, i32 0, i32 9
  %32 = load i64, ptr %31, align 8, !tbaa !13
  %33 = add i64 %29, %32
  %34 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %28, i64 noundef %33)
  %35 = load i64, ptr %8, align 8, !tbaa !9
  %36 = sub i64 %34, %35
  store i64 %36, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %37 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 4
  %38 = getelementptr inbounds %"struct.Simd::Array.0", ptr %37, i32 0, i32 0
  %39 = load ptr, ptr %38, align 8, !tbaa !14
  %40 = load i64, ptr %8, align 8, !tbaa !9
  %41 = load ptr, ptr %7, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %41, i32 0, i32 13
  %43 = load i64, ptr %42, align 8, !tbaa !30
  %44 = mul i64 %40, %43
  %45 = getelementptr inbounds i16, ptr %39, i64 %44
  store ptr %45, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  store i64 0, ptr %12, align 8, !tbaa !9
  br label %46

46:                                               ; preds = %126, %25
  %47 = load i64, ptr %12, align 8, !tbaa !9
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %48, i32 0, i32 2
  %50 = load i64, ptr %49, align 8, !tbaa !31
  %51 = icmp ult i64 %47, %50
  br i1 %51, label %53, label %52

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

53:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %54, i32 0, i32 13
  %56 = load i64, ptr %55, align 8, !tbaa !30
  %57 = load i64, ptr %12, align 8, !tbaa !9
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %58, i32 0, i32 10
  %60 = load i64, ptr %59, align 8, !tbaa !32
  %61 = add i64 %57, %60
  %62 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %56, i64 noundef %61)
  %63 = load i64, ptr %12, align 8, !tbaa !9
  %64 = sub i64 %62, %63
  store i64 %64, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !9
  br label %65

65:                                               ; preds = %112, %53
  %66 = load i64, ptr %14, align 8, !tbaa !9
  %67 = load ptr, ptr %7, align 8, !tbaa !5
  %68 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %67, i32 0, i32 0
  %69 = load i64, ptr %68, align 8, !tbaa !33
  %70 = icmp ult i64 %66, %69
  br i1 %70, label %72, label %71

71:                                               ; preds = %65
  store i32 8, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %118

72:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %73 = load ptr, ptr %7, align 8, !tbaa !5
  %74 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %73, i32 0, i32 11
  %75 = load i64, ptr %74, align 8, !tbaa !34
  %76 = load i64, ptr %14, align 8, !tbaa !9
  %77 = load ptr, ptr %7, align 8, !tbaa !5
  %78 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %77, i32 0, i32 8
  %79 = load i64, ptr %78, align 8, !tbaa !35
  %80 = add i64 %76, %79
  %81 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %75, i64 noundef %80)
  %82 = load i64, ptr %14, align 8, !tbaa !9
  %83 = sub i64 %81, %82
  store i64 %83, ptr %15, align 8, !tbaa !9
  %84 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %16, i32 0, i32 3
  %85 = load ptr, ptr %84, align 8, !tbaa !36
  %86 = load ptr, ptr %5, align 8, !tbaa !5
  %87 = load i64, ptr %14, align 8, !tbaa !9
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %88, i32 0, i32 13
  %90 = load i64, ptr %89, align 8, !tbaa !30
  %91 = mul i64 %87, %90
  %92 = getelementptr inbounds i16, ptr %86, i64 %91
  %93 = load i64, ptr %12, align 8, !tbaa !9
  %94 = getelementptr inbounds i16, ptr %92, i64 %93
  %95 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %16, i32 0, i32 1
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = load i64, ptr %15, align 8, !tbaa !9
  %98 = load i64, ptr %10, align 8, !tbaa !9
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = icmp eq i64 %100, 0
  %102 = zext i1 %101 to i64
  %103 = select i1 %101, i32 1, i32 0
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  %105 = load ptr, ptr %6, align 8, !tbaa !5
  %106 = load i64, ptr %14, align 8, !tbaa !9
  %107 = load ptr, ptr %7, align 8, !tbaa !5
  %108 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %107, i32 0, i32 12
  %109 = load i64, ptr %108, align 8, !tbaa !38
  %110 = mul i64 %106, %109
  %111 = getelementptr inbounds float, ptr %105, i64 %110
  call void %85(ptr noundef %94, ptr noundef nonnull align 8 dereferenceable(180) %95, ptr noundef nonnull align 8 dereferenceable(128) %96, i64 noundef %97, i64 noundef %98, i64 noundef %99, i32 noundef %103, ptr noundef %104, ptr noundef %111)
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %112

112:                                              ; preds = %72
  %113 = load ptr, ptr %7, align 8, !tbaa !5
  %114 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %113, i32 0, i32 8
  %115 = load i64, ptr %114, align 8, !tbaa !35
  %116 = load i64, ptr %14, align 8, !tbaa !9
  %117 = add i64 %116, %115
  store i64 %117, ptr %14, align 8, !tbaa !9
  br label %65, !llvm.loop !39

118:                                              ; preds = %71
  %119 = load i64, ptr %13, align 8, !tbaa !9
  %120 = load ptr, ptr %7, align 8, !tbaa !5
  %121 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %120, i32 0, i32 3
  %122 = load i64, ptr %121, align 8, !tbaa !41
  %123 = mul i64 %119, %122
  %124 = load ptr, ptr %11, align 8, !tbaa !5
  %125 = getelementptr inbounds i16, ptr %124, i64 %123
  store ptr %125, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %126

126:                                              ; preds = %118
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %127, i32 0, i32 10
  %129 = load i64, ptr %128, align 8, !tbaa !32
  %130 = load i64, ptr %12, align 8, !tbaa !9
  %131 = add i64 %130, %129
  store i64 %131, ptr %12, align 8, !tbaa !9
  br label %46, !llvm.loop !42

132:                                              ; preds = %52
  %133 = load i64, ptr %10, align 8, !tbaa !9
  %134 = load ptr, ptr %6, align 8, !tbaa !5
  %135 = getelementptr inbounds float, ptr %134, i64 %133
  store ptr %135, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  br label %136

136:                                              ; preds = %132
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %137, i32 0, i32 9
  %139 = load i64, ptr %138, align 8, !tbaa !13
  %140 = load i64, ptr %8, align 8, !tbaa !9
  %141 = add i64 %140, %139
  store i64 %141, ptr %8, align 8, !tbaa !9
  br label %18, !llvm.loop !43

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

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { alwaysinline mustprogress 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 = { 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 8}
!12 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemm8AlgParamE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !10, i64 96, !10, i64 104, !10, i64 112, !10, i64 120}
!13 = !{!12, !10, i64 72}
!14 = !{!15, !6, i64 240}
!15 = !{!"_ZTSN4Simd21SynetDeconvolution16bE", !16, i64 0, !17, i64 8, !24, i64 192, !25, i64 208, !27, i64 240, !28, i64 256, !28, i64 272, !29, i64 288, !29, i64 289, !29, i64 290, !10, i64 296, !10, i64 304, !10, i64 312, !10, i64 320}
!16 = !{!"_ZTSN4Simd9DeletableE"}
!17 = !{!"_ZTSN4Simd11DeconvParamE", !18, i64 0, !22, i64 160, !10, i64 168, !23, i64 176}
!18 = !{!"_ZTS25SimdConvolutionParameters", !10, i64 0, !10, i64 8, !10, i64 16, !19, i64 24, !20, i64 28, !10, i64 32, !10, i64 40, !10, i64 48, !19, i64 56, !20, 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, !21, i64 152}
!19 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!20 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!21 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!22 = !{!"_ZTS8SimdBool", !7, i64 0}
!23 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!24 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !10, i64 8}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !10, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !10, i64 8}
!28 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !10, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!12, !10, i64 104}
!31 = !{!12, !10, i64 16}
!32 = !{!12, !10, i64 80}
!33 = !{!12, !10, i64 0}
!34 = !{!12, !10, i64 88}
!35 = !{!12, !10, i64 64}
!36 = !{!37, !6, i64 464}
!37 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemmE", !15, i64 0, !12, i64 328, !6, i64 456, !6, i64 464, !6, i64 472, !6, i64 480}
!38 = !{!12, !10, i64 96}
!39 = distinct !{!39, !40}
!40 = !{!"llvm.loop.mustprogress"}
!41 = !{!12, !10, i64 24}
!42 = distinct !{!42, !40}
!43 = distinct !{!43, !40}


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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm10GemmCommonEPKtPf(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 328
  %5 = getelementptr inbounds i8, ptr %0, i64 336
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %._crit_edge59, label %.lr.ph58

.lr.ph58:                                         ; preds = %3
  %7 = getelementptr inbounds i8, ptr %0, i64 400
  %8 = getelementptr inbounds i8, ptr %0, i64 240
  %9 = getelementptr inbounds i8, ptr %0, i64 432
  %10 = getelementptr inbounds i8, ptr %0, i64 344
  %11 = getelementptr inbounds i8, ptr %0, i64 408
  %12 = getelementptr inbounds i8, ptr %0, i64 416
  %13 = getelementptr inbounds i8, ptr %0, i64 392
  %14 = getelementptr inbounds i8, ptr %0, i64 464
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 424
  %17 = getelementptr inbounds i8, ptr %0, i64 352
  %.pre = load i64, ptr %7, align 8, !tbaa !10
  br label %18

._crit_edge59:                                    ; preds = %._crit_edge54, %3
  ret void

18:                                               ; preds = %.lr.ph58, %._crit_edge54
  %19 = phi i64 [ %.pre, %.lr.ph58 ], [ %30, %._crit_edge54 ]
  %20 = phi i64 [ %6, %.lr.ph58 ], [ %32, %._crit_edge54 ]
  %.056 = phi ptr [ %2, %.lr.ph58 ], [ %29, %._crit_edge54 ]
  %.04555 = phi i64 [ 0, %.lr.ph58 ], [ %31, %._crit_edge54 ]
  %21 = add i64 %19, %.04555
  %22 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %20, i64 noundef %21)
  %23 = sub i64 %22, %.04555
  %24 = load i64, ptr %10, align 8, !tbaa !11
  %.not60 = icmp eq i64 %24, 0
  br i1 %.not60, label %._crit_edge54, label %.lr.ph53.preheader

.lr.ph53.preheader:                               ; preds = %18
  %25 = load ptr, ptr %8, align 8, !tbaa !12
  %26 = load i64, ptr %9, align 8, !tbaa !29
  %27 = mul i64 %26, %.04555
  %28 = getelementptr inbounds i16, ptr %25, i64 %27
  %.pre62 = load i64, ptr %11, align 8, !tbaa !30
  br label %.lr.ph53

._crit_edge54:                                    ; preds = %._crit_edge, %18
  %29 = getelementptr inbounds float, ptr %.056, i64 %23
  %30 = load i64, ptr %7, align 8, !tbaa !10
  %31 = add i64 %30, %.04555
  %32 = load i64, ptr %5, align 8, !tbaa !5
  %33 = icmp ult i64 %31, %32
  br i1 %33, label %18, label %._crit_edge59, !llvm.loop !31

.lr.ph53:                                         ; preds = %.lr.ph53.preheader, %._crit_edge
  %34 = phi i64 [ %45, %._crit_edge ], [ %.pre62, %.lr.ph53.preheader ]
  %.04651 = phi i64 [ %46, %._crit_edge ], [ 0, %.lr.ph53.preheader ]
  %.04750 = phi ptr [ %44, %._crit_edge ], [ %28, %.lr.ph53.preheader ]
  %35 = load i64, ptr %9, align 8, !tbaa !29
  %36 = add i64 %34, %.04651
  %37 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %35, i64 noundef %36)
  %38 = sub i64 %37, %.04651
  %invariant.gep = getelementptr i16, ptr %1, i64 %.04651
  %39 = load i64, ptr %4, align 8, !tbaa !33
  %.not61 = icmp eq i64 %39, 0
  br i1 %.not61, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph53
  %40 = icmp eq i64 %.04651, 0
  %41 = zext i1 %40 to i32
  %.pre63 = load i64, ptr %13, align 8, !tbaa !34
  br label %49

._crit_edge:                                      ; preds = %49, %.lr.ph53
  %42 = load i64, ptr %17, align 8, !tbaa !35
  %43 = mul i64 %42, %38
  %44 = getelementptr inbounds i16, ptr %.04750, i64 %43
  %45 = load i64, ptr %11, align 8, !tbaa !30
  %46 = add i64 %45, %.04651
  %47 = load i64, ptr %10, align 8, !tbaa !11
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph53, label %._crit_edge54, !llvm.loop !36

49:                                               ; preds = %.lr.ph, %49
  %50 = phi i64 [ %.pre63, %.lr.ph ], [ %61, %49 ]
  %.04449 = phi i64 [ 0, %.lr.ph ], [ %62, %49 ]
  %51 = load i64, ptr %12, align 8, !tbaa !37
  %52 = add i64 %50, %.04449
  %53 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %51, i64 noundef %52)
  %54 = sub i64 %53, %.04449
  %55 = load ptr, ptr %14, align 8, !tbaa !38
  %56 = load i64, ptr %9, align 8, !tbaa !29
  %57 = mul i64 %56, %.04449
  %gep = getelementptr i16, ptr %invariant.gep, i64 %57
  %58 = load i64, ptr %16, align 8, !tbaa !40
  %59 = mul i64 %58, %.04449
  %60 = getelementptr inbounds float, ptr %.056, i64 %59
  tail call void %55(ptr noundef %gep, ptr noundef nonnull align 8 dereferenceable(180) %15, ptr noundef nonnull align 8 dereferenceable(128) %4, i64 noundef %54, i64 noundef %23, i64 noundef %38, i32 noundef %41, ptr noundef %.04750, ptr noundef %60)
  %61 = load i64, ptr %13, align 8, !tbaa !34
  %62 = add i64 %61, %.04449
  %63 = load i64, ptr %4, align 8, !tbaa !33
  %64 = icmp ult i64 %62, %63
  br i1 %64, label %49, label %._crit_edge, !llvm.loop !41
}

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { alwaysinline mustprogress 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, !7, i64 8}
!6 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemm8AlgParamE", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!6, !7, i64 72}
!11 = !{!6, !7, i64 16}
!12 = !{!13, !23, i64 240}
!13 = !{!"_ZTSN4Simd21SynetDeconvolution16bE", !14, i64 0, !15, i64 8, !22, i64 192, !24, i64 208, !26, i64 240, !27, i64 256, !27, i64 272, !28, i64 288, !28, i64 289, !28, i64 290, !7, i64 296, !7, i64 304, !7, i64 312, !7, i64 320}
!14 = !{!"_ZTSN4Simd9DeletableE"}
!15 = !{!"_ZTSN4Simd11DeconvParamE", !16, i64 0, !20, i64 160, !7, i64 168, !21, i64 176}
!16 = !{!"_ZTS25SimdConvolutionParameters", !7, i64 0, !7, i64 8, !7, i64 16, !17, i64 24, !18, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !17, i64 56, !18, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !19, i64 152}
!17 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!18 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!19 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!20 = !{!"_ZTS8SimdBool", !8, i64 0}
!21 = !{!"_ZTS26SimdSynetCompatibilityType", !8, i64 0}
!22 = !{!"_ZTSN4Simd5ArrayIhEE", !23, i64 0, !7, i64 8}
!23 = !{!"any pointer", !8, i64 0}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !7, i64 8, !8, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !23, i64 0}
!26 = !{!"_ZTSN4Simd5ArrayItEE", !23, i64 0, !7, i64 8}
!27 = !{!"_ZTSN4Simd5ArrayIfEE", !23, i64 0, !7, i64 8}
!28 = !{!"bool", !8, i64 0}
!29 = !{!6, !7, i64 104}
!30 = !{!6, !7, i64 80}
!31 = distinct !{!31, !32}
!32 = !{!"llvm.loop.mustprogress"}
!33 = !{!6, !7, i64 0}
!34 = !{!6, !7, i64 64}
!35 = !{!6, !7, i64 24}
!36 = distinct !{!36, !32}
!37 = !{!6, !7, i64 88}
!38 = !{!39, !23, i64 464}
!39 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemmE", !13, i64 0, !6, i64 328, !23, i64 456, !23, i64 464, !23, i64 472, !23, i64 480}
!40 = !{!6, !7, i64 96}
!41 = distinct !{!41, !32}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass