; 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::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 }
%"class.Simd::Base::SynetDeconvolution16bNhwcGemm" = type { %"class.Simd::SynetDeconvolution16b", %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr, ptr, ptr, ptr }
%"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 @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm7ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(488) %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 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
  %15 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %16 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %15, i32 0, i32 1
  store ptr %16, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %17 = getelementptr inbounds %"class.Simd::Base::SynetDeconvolution16bNhwcGemm", ptr %15, i32 0, i32 1
  store ptr %17, ptr %10, align 8, !tbaa !5
  %18 = load ptr, ptr %7, align 8, !tbaa !5
  %19 = call noundef ptr @_ZN4Simd21SynetDeconvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(328) %15, ptr noundef %18)
  store ptr %19, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %20 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %15, i32 0, i32 7
  %21 = load i8, ptr %20, align 8, !tbaa !9, !range !26, !noundef !27
  %22 = trunc i8 %21 to i1
  br i1 %22, label %23, label %32

23:                                               ; preds = %4
  %24 = load ptr, ptr %10, align 8, !tbaa !5
  %25 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %24, i32 0, i32 13
  %26 = load i64, ptr %25, align 8, !tbaa !28
  %27 = load ptr, ptr %10, align 8, !tbaa !5
  %28 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %27, i32 0, i32 2
  %29 = load i64, ptr %28, align 8, !tbaa !30
  %30 = icmp eq i64 %26, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %23
  br label %41

32:                                               ; preds = %23, %4
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %33, i32 0, i32 13
  %35 = load i64, ptr %34, align 8, !tbaa !28
  %36 = load ptr, ptr %10, align 8, !tbaa !5
  %37 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %36, i32 0, i32 11
  %38 = load i64, ptr %37, align 8, !tbaa !31
  %39 = mul i64 %35, %38
  %40 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %39, i64 noundef 8)
  br label %41

41:                                               ; preds = %32, %31
  %42 = phi ptr [ null, %31 ], [ %40, %32 ]
  store ptr %42, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %43 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %15, i32 0, i32 9
  %44 = load i8, ptr %43, align 2, !tbaa !32, !range !26, !noundef !27
  %45 = trunc i8 %44 to i1
  br i1 %45, label %46, label %47

46:                                               ; preds = %41
  br label %56

47:                                               ; preds = %41
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %48, i32 0, i32 12
  %50 = load i64, ptr %49, align 8, !tbaa !33
  %51 = load ptr, ptr %10, align 8, !tbaa !5
  %52 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %51, i32 0, i32 11
  %53 = load i64, ptr %52, align 8, !tbaa !31
  %54 = mul i64 %50, %53
  %55 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %54, i64 noundef 8)
  br label %56

56:                                               ; preds = %47, %46
  %57 = phi ptr [ null, %46 ], [ %55, %47 ]
  store ptr %57, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %58 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %15, i32 0, i32 8
  %59 = load i8, ptr %58, align 1, !tbaa !34, !range !26, !noundef !27
  %60 = trunc i8 %59 to i1
  br i1 %60, label %61, label %74

61:                                               ; preds = %56
  %62 = load ptr, ptr %9, align 8, !tbaa !5
  %63 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %62, i32 0, i32 6
  %64 = load i64, ptr %63, align 8, !tbaa !35
  %65 = load ptr, ptr %9, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %65, i32 0, i32 7
  %67 = load i64, ptr %66, align 8, !tbaa !36
  %68 = mul i64 %64, %67
  %69 = load ptr, ptr %9, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %69, i32 0, i32 5
  %71 = load i64, ptr %70, align 8, !tbaa !37
  %72 = mul i64 %68, %71
  %73 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %72, i64 noundef 8)
  br label %75

74:                                               ; preds = %56
  br label %75

75:                                               ; preds = %74, %61
  %76 = phi ptr [ %73, %61 ], [ null, %74 ]
  store ptr %76, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !38
  br label %77

77:                                               ; preds = %121, %75
  %78 = load i64, ptr %14, align 8, !tbaa !38
  %79 = load ptr, ptr %9, align 8, !tbaa !5
  %80 = getelementptr inbounds %"struct.Simd::DeconvParam", ptr %79, i32 0, i32 3
  %81 = load i64, ptr %80, align 8, !tbaa !39
  %82 = icmp ult i64 %78, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %124

84:                                               ; preds = %77
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %85, i32 0, i32 10
  %87 = load i64, ptr %86, align 8, !tbaa !40
  %88 = load ptr, ptr %10, 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 !28
  %91 = icmp eq i64 %87, %90
  br i1 %91, label %92, label %106

92:                                               ; preds = %84
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %93, i32 0, i32 9
  %95 = load i64, ptr %94, align 8, !tbaa !41
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = getelementptr inbounds %"struct.Simd::Base::SynetDeconvolution16bNhwcGemm::AlgParam", ptr %96, i32 0, i32 12
  %98 = load i64, ptr %97, align 8, !tbaa !33
  %99 = icmp eq i64 %95, %98
  br i1 %99, label %100, label %106

100:                                              ; preds = %92
  %101 = load ptr, ptr %6, align 8, !tbaa !5
  %102 = load ptr, ptr %11, align 8, !tbaa !5
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load ptr, ptr %13, align 8, !tbaa !5
  %105 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm14ForwardSmallNKEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488) %15, ptr noundef %101, ptr noundef %102, ptr noundef %103, ptr noundef %104, ptr noundef %105)
  br label %112

106:                                              ; preds = %92, %84
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = load ptr, ptr %11, align 8, !tbaa !5
  %109 = load ptr, ptr %12, align 8, !tbaa !5
  %110 = load ptr, ptr %13, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm13ForwardCommonEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488) %15, ptr noundef %107, ptr noundef %108, ptr noundef %109, ptr noundef %110, ptr noundef %111)
  br label %112

112:                                              ; preds = %106, %100
  %113 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %15, i32 0, i32 12
  %114 = load i64, ptr %113, align 8, !tbaa !42
  %115 = load ptr, ptr %6, align 8, !tbaa !5
  %116 = getelementptr inbounds i8, ptr %115, i64 %114
  store ptr %116, ptr %6, align 8, !tbaa !5
  %117 = getelementptr inbounds %"class.Simd::SynetDeconvolution16b", ptr %15, i32 0, i32 13
  %118 = load i64, ptr %117, align 8, !tbaa !43
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds i8, ptr %119, i64 %118
  store ptr %120, ptr %8, align 8, !tbaa !5
  br label %121

121:                                              ; preds = %112
  %122 = load i64, ptr %14, align 8, !tbaa !38
  %123 = add i64 %122, 1
  store i64 %123, ptr %14, align 8, !tbaa !38
  br label %77, !llvm.loop !44

124:                                              ; preds = %83
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) #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 uwtable
declare dso_local void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm14ForwardSmallNKEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488), ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 align 2

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

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


; 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 @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm7ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = tail call noundef ptr @_ZN4Simd21SynetDeconvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %2)
  store ptr %6, ptr %5, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %0, i64 288
  %8 = load i8, ptr %7, align 8, !tbaa !9, !range !26, !noundef !27
  %9 = trunc nuw i8 %8 to i1
  %10 = getelementptr inbounds i8, ptr %0, i64 432
  %11 = load i64, ptr %10, align 8, !tbaa !28
  %12 = getelementptr inbounds i8, ptr %0, i64 344
  %13 = load i64, ptr %12, align 8
  %14 = icmp eq i64 %11, %13
  %or.cond = select i1 %9, i1 %14, i1 false
  br i1 %or.cond, label %19, label %._crit_edge33

._crit_edge33:                                    ; preds = %4
  %15 = getelementptr inbounds i8, ptr %0, i64 416
  %16 = load i64, ptr %15, align 8, !tbaa !30
  %17 = mul i64 %16, %11
  %18 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %17, i64 noundef 8)
  br label %19

19:                                               ; preds = %4, %._crit_edge33
  %20 = phi ptr [ %18, %._crit_edge33 ], [ null, %4 ]
  %21 = getelementptr inbounds i8, ptr %0, i64 290
  %22 = load i8, ptr %21, align 2, !tbaa !31, !range !26, !noundef !27
  %23 = trunc nuw i8 %22 to i1
  br i1 %23, label %31, label %24

24:                                               ; preds = %19
  %25 = getelementptr inbounds i8, ptr %0, i64 424
  %26 = load i64, ptr %25, align 8, !tbaa !32
  %27 = getelementptr inbounds i8, ptr %0, i64 416
  %28 = load i64, ptr %27, align 8, !tbaa !30
  %29 = mul i64 %28, %26
  %30 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %29, i64 noundef 8)
  br label %31

31:                                               ; preds = %19, %24
  %32 = phi ptr [ %30, %24 ], [ null, %19 ]
  %33 = getelementptr inbounds i8, ptr %0, i64 289
  %34 = load i8, ptr %33, align 1, !tbaa !33, !range !26, !noundef !27
  %35 = trunc nuw i8 %34 to i1
  br i1 %35, label %36, label %46

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %0, i64 48
  %38 = load i64, ptr %37, align 8, !tbaa !34
  %39 = getelementptr inbounds i8, ptr %0, i64 56
  %40 = load i64, ptr %39, align 8, !tbaa !35
  %41 = mul i64 %40, %38
  %42 = getelementptr inbounds i8, ptr %0, i64 40
  %43 = load i64, ptr %42, align 8, !tbaa !36
  %44 = mul i64 %41, %43
  %45 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %44, i64 noundef 8)
  br label %46

46:                                               ; preds = %31, %36
  %47 = phi ptr [ %45, %36 ], [ null, %31 ]
  %48 = getelementptr inbounds i8, ptr %0, i64 176
  %49 = load i64, ptr %48, align 8, !tbaa !37
  %.not = icmp eq i64 %49, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %46
  %50 = getelementptr inbounds i8, ptr %0, i64 408
  %51 = getelementptr inbounds i8, ptr %0, i64 432
  %52 = getelementptr inbounds i8, ptr %0, i64 400
  %53 = getelementptr inbounds i8, ptr %0, i64 424
  %54 = getelementptr inbounds i8, ptr %0, i64 312
  %55 = getelementptr inbounds i8, ptr %0, i64 320
  br label %56

._crit_edge:                                      ; preds = %66, %46
  ret void

56:                                               ; preds = %.lr.ph, %66
  %.032 = phi i64 [ 0, %.lr.ph ], [ %71, %66 ]
  %.02831 = phi ptr [ %1, %.lr.ph ], [ %68, %66 ]
  %.02930 = phi ptr [ %3, %.lr.ph ], [ %70, %66 ]
  %57 = load i64, ptr %50, align 8, !tbaa !38
  %58 = load i64, ptr %51, align 8, !tbaa !28
  %59 = icmp eq i64 %57, %58
  br i1 %59, label %60, label %65

60:                                               ; preds = %56
  %61 = load i64, ptr %52, align 8, !tbaa !39
  %62 = load i64, ptr %53, align 8, !tbaa !32
  %63 = icmp eq i64 %61, %62
  br i1 %63, label %64, label %65

64:                                               ; preds = %60
  call void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm14ForwardSmallNKEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %.02831, ptr noundef %20, ptr noundef %32, ptr noundef %47, ptr noundef %.02930)
  br label %66

65:                                               ; preds = %60, %56
  call void @_ZN4Simd4Base29SynetDeconvolution16bNhwcGemm13ForwardCommonEPKhPtPfS5_Ph(ptr noundef nonnull align 8 dereferenceable(488) %0, ptr noundef %.02831, ptr noundef %20, ptr noundef %32, ptr noundef %47, ptr noundef %.02930)
  br label %66

66:                                               ; preds = %65, %64
  %67 = load i64, ptr %54, align 8, !tbaa !40
  %68 = getelementptr inbounds i8, ptr %.02831, i64 %67
  %69 = load i64, ptr %55, align 8, !tbaa !41
  %70 = getelementptr inbounds i8, ptr %.02930, i64 %69
  %71 = add nuw i64 %.032, 1
  %72 = load i64, ptr %48, align 8, !tbaa !37
  %73 = icmp ult i64 %71, %72
  br i1 %73, label %56, label %._crit_edge, !llvm.loop !42
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef ptr @_ZN4Simd8AllocateItEEPT_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 @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8), i64 noundef, i64 noundef) local_unnamed_addr #1

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

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

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

!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, !25, i64 288}
!10 = !{!"_ZTSN4Simd21SynetDeconvolution16bE", !11, i64 0, !12, i64 8, !20, i64 192, !21, i64 208, !23, i64 240, !24, i64 256, !24, i64 272, !25, i64 288, !25, i64 289, !25, i64 290, !14, i64 296, !14, i64 304, !14, i64 312, !14, i64 320}
!11 = !{!"_ZTSN4Simd9DeletableE"}
!12 = !{!"_ZTSN4Simd11DeconvParamE", !13, i64 0, !18, i64 160, !14, i64 168, !19, i64 176}
!13 = !{!"_ZTS25SimdConvolutionParameters", !14, i64 0, !14, i64 8, !14, i64 16, !15, i64 24, !16, i64 28, !14, i64 32, !14, i64 40, !14, i64 48, !15, i64 56, !16, i64 60, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !14, i64 136, !14, i64 144, !17, i64 152}
!14 = !{!"long", !7, i64 0}
!15 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!16 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!17 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!18 = !{!"_ZTS8SimdBool", !7, i64 0}
!19 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!20 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !14, i64 8}
!21 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !22, i64 0, !14, i64 8, !7, i64 16}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!23 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !14, i64 8}
!24 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !14, i64 8}
!25 = !{!"bool", !7, i64 0}
!26 = !{i8 0, i8 2}
!27 = !{}
!28 = !{!29, !14, i64 104}
!29 = !{!"_ZTSN4Simd4Base29SynetDeconvolution16bNhwcGemm8AlgParamE", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !14, i64 88, !14, i64 96, !14, i64 104, !14, i64 112, !14, i64 120}
!30 = !{!29, !14, i64 88}
!31 = !{!10, !25, i64 290}
!32 = !{!29, !14, i64 96}
!33 = !{!10, !25, i64 289}
!34 = !{!13, !14, i64 40}
!35 = !{!13, !14, i64 48}
!36 = !{!13, !14, i64 32}
!37 = !{!12, !14, i64 168}
!38 = !{!29, !14, i64 80}
!39 = !{!29, !14, i64 72}
!40 = !{!10, !14, i64 312}
!41 = !{!10, !14, i64 320}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


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