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

; 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::SynetConvolution16b" = type { %"struct.Simd::Deletable", %"struct.Simd::ConvParam", %"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::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::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::SynetConvolution16bNhwcSpecV0" = type { %"class.Simd::SynetConvolution16b", %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", %"struct.Simd::Array.2", ptr, ptr, ptr }
%"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam" = type { i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%"struct.Simd::Array.2" = type { ptr, 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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV07ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(568) %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 i64, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, 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
  %16 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %17 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %16, i32 0, i32 1
  store ptr %17, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %18 = getelementptr inbounds %"class.Simd::Base::SynetConvolution16bNhwcSpecV0", ptr %16, i32 0, i32 1
  store ptr %18, ptr %10, align 8, !tbaa !5
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = call noundef ptr @_ZN4Simd19SynetConvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(328) %16, ptr noundef %19)
  store ptr %20, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", ptr %21, i32 0, i32 21
  %23 = load i64, ptr %22, align 8, !tbaa !9
  %24 = icmp ne i64 %23, 0
  br i1 %24, label %25, label %30

25:                                               ; preds = %4
  %26 = load ptr, ptr %10, align 8, !tbaa !5
  %27 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", ptr %26, i32 0, i32 21
  %28 = load i64, ptr %27, align 8, !tbaa !9
  %29 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %28, i64 noundef 8)
  br label %31

30:                                               ; preds = %4
  br label %31

31:                                               ; preds = %30, %25
  %32 = phi ptr [ %29, %25 ], [ null, %30 ]
  store ptr %32, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #3
  %33 = load ptr, ptr %10, align 8, !tbaa !5
  %34 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", ptr %33, i32 0, i32 22
  %35 = load i64, ptr %34, align 8, !tbaa !12
  %36 = icmp ne i64 %35, 0
  br i1 %36, label %37, label %42

37:                                               ; preds = %31
  %38 = load ptr, ptr %10, align 8, !tbaa !5
  %39 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", ptr %38, i32 0, i32 22
  %40 = load i64, ptr %39, align 8, !tbaa !12
  %41 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %40, i64 noundef 8)
  br label %43

42:                                               ; preds = %31
  br label %43

43:                                               ; preds = %42, %37
  %44 = phi ptr [ %41, %37 ], [ null, %42 ]
  store ptr %44, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  store i64 0, ptr %13, align 8, !tbaa !13
  br label %45

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

51:                                               ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %98

52:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  %53 = load ptr, ptr %11, align 8, !tbaa !5
  %54 = icmp ne ptr %53, null
  br i1 %54, label %55, label %57

55:                                               ; preds = %52
  %56 = load ptr, ptr %11, align 8, !tbaa !5
  br label %59

57:                                               ; preds = %52
  %58 = load ptr, ptr %6, align 8, !tbaa !5
  br label %59

59:                                               ; preds = %57, %55
  %60 = phi ptr [ %56, %55 ], [ %58, %57 ]
  store ptr %60, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %61 = load ptr, ptr %12, align 8, !tbaa !5
  %62 = icmp ne ptr %61, null
  br i1 %62, label %63, label %65

63:                                               ; preds = %59
  %64 = load ptr, ptr %12, align 8, !tbaa !5
  br label %67

65:                                               ; preds = %59
  %66 = load ptr, ptr %8, align 8, !tbaa !5
  br label %67

67:                                               ; preds = %65, %63
  %68 = phi ptr [ %64, %63 ], [ %66, %65 ]
  store ptr %68, ptr %15, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", ptr %69, i32 0, i32 24
  %71 = load i64, ptr %70, align 8, !tbaa !22
  %72 = icmp ne i64 %71, 0
  br i1 %72, label %73, label %78

73:                                               ; preds = %67
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = load ptr, ptr %14, align 8, !tbaa !5
  %76 = load ptr, ptr %15, align 8, !tbaa !5
  %77 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %16, ptr noundef %74, ptr noundef %75, ptr noundef %76, ptr noundef %77)
  br label %83

78:                                               ; preds = %67
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = load ptr, ptr %15, align 8, !tbaa !5
  %82 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %16, ptr noundef %79, ptr noundef %80, ptr noundef %81, ptr noundef %82)
  br label %83

83:                                               ; preds = %78, %73
  %84 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %16, i32 0, i32 12
  %85 = load i64, ptr %84, align 8, !tbaa !23
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds i8, ptr %86, i64 %85
  store ptr %87, ptr %6, align 8, !tbaa !5
  %88 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %16, i32 0, i32 13
  %89 = load i64, ptr %88, align 8, !tbaa !32
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = getelementptr inbounds i8, ptr %90, i64 %89
  store ptr %91, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %92

92:                                               ; preds = %83
  %93 = load ptr, ptr %10, align 8, !tbaa !5
  %94 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV0::AlgParam", ptr %93, i32 0, i32 4
  %95 = load i64, ptr %94, align 8, !tbaa !33
  %96 = load i64, ptr %13, align 8, !tbaa !13
  %97 = add i64 %96, %95
  store i64 %97, ptr %13, align 8, !tbaa !13
  br label %45, !llvm.loop !34

98:                                               ; preds = %51
  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 @_ZN4Simd19SynetConvolution16b6BufferEPh(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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568), 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, !11, i64 168}
!10 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV08AlgParamE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 176}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !11, i64 168}
!15 = !{!"_ZTSN4Simd9ConvParamE", !16, i64 0, !20, i64 160, !11, i64 168, !21, i64 176}
!16 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !17, i64 24, !18, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !17, i64 56, !18, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !19, i64 152}
!17 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!18 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!19 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!20 = !{!"_ZTS8SimdBool", !7, i64 0}
!21 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!22 = !{!10, !11, i64 192}
!23 = !{!24, !11, i64 312}
!24 = !{!"_ZTSN4Simd19SynetConvolution16bE", !25, i64 0, !15, i64 8, !26, i64 192, !27, i64 208, !29, i64 240, !30, i64 256, !30, i64 272, !31, i64 288, !31, i64 289, !31, i64 290, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320}
!25 = !{!"_ZTSN4Simd9DeletableE"}
!26 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !11, i64 8}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !28, i64 0, !11, i64 8, !7, i64 16}
!28 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!29 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !11, i64 8}
!30 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!31 = !{!"bool", !7, i64 0}
!32 = !{!24, !11, i64 320}
!33 = !{!10, !11, i64 32}
!34 = distinct !{!34, !35}
!35 = !{!"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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV07ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(568) %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 @_ZN4Simd19SynetConvolution16b6BufferEPh(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 496
  %8 = load i64, ptr %7, align 8, !tbaa !9
  %.not = icmp eq i64 %8, 0
  br i1 %.not, label %11, label %9

9:                                                ; preds = %4
  %10 = call noundef ptr @_ZN4Simd8AllocateItEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %8, i64 noundef 8)
  br label %11

11:                                               ; preds = %4, %9
  %12 = phi ptr [ %10, %9 ], [ null, %4 ]
  %13 = getelementptr inbounds i8, ptr %0, i64 504
  %14 = load i64, ptr %13, align 8, !tbaa !12
  %.not29 = icmp eq i64 %14, 0
  br i1 %.not29, label %17, label %15

15:                                               ; preds = %11
  %16 = call noundef ptr @_ZN4Simd8AllocateIfEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %14, i64 noundef 8)
  br label %17

17:                                               ; preds = %11, %15
  %18 = phi ptr [ %16, %15 ], [ null, %11 ]
  %19 = getelementptr inbounds i8, ptr %0, i64 176
  %20 = load i64, ptr %19, align 8, !tbaa !13
  %.not41 = icmp eq i64 %20, 0
  br i1 %.not41, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %17
  %.not30 = icmp eq ptr %12, null
  %.not31 = icmp eq ptr %18, null
  %21 = getelementptr inbounds i8, ptr %0, i64 520
  %22 = getelementptr inbounds i8, ptr %0, i64 312
  %23 = getelementptr inbounds i8, ptr %0, i64 320
  %24 = getelementptr inbounds i8, ptr %0, i64 360
  br i1 %.not30, label %.lr.ph.split.us, label %.lr.ph.split

.lr.ph.split.us:                                  ; preds = %.lr.ph
  br i1 %.not31, label %.lr.ph.split.us.split.us, label %.lr.ph.split.us.split

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %28
  %.035.us.us = phi ptr [ %30, %28 ], [ %1, %.lr.ph.split.us ]
  %.02534.us.us = phi ptr [ %32, %28 ], [ %3, %.lr.ph.split.us ]
  %.02633.us.us = phi i64 [ %34, %28 ], [ 0, %.lr.ph.split.us ]
  %25 = load i64, ptr %21, align 8, !tbaa !21
  %.not32.us.us = icmp eq i64 %25, 0
  br i1 %.not32.us.us, label %27, label %26

26:                                               ; preds = %.lr.ph.split.us.split.us
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035.us.us, ptr noundef %.035.us.us, ptr noundef %.02534.us.us, ptr noundef %.02534.us.us)
  br label %28

27:                                               ; preds = %.lr.ph.split.us.split.us
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035.us.us, ptr noundef %.035.us.us, ptr noundef %.02534.us.us, ptr noundef %.02534.us.us)
  br label %28

28:                                               ; preds = %27, %26
  %29 = load i64, ptr %22, align 8, !tbaa !22
  %30 = getelementptr inbounds i8, ptr %.035.us.us, i64 %29
  %31 = load i64, ptr %23, align 8, !tbaa !31
  %32 = getelementptr inbounds i8, ptr %.02534.us.us, i64 %31
  %33 = load i64, ptr %24, align 8, !tbaa !32
  %34 = add i64 %33, %.02633.us.us
  %35 = load i64, ptr %19, align 8, !tbaa !13
  %36 = icmp ult i64 %34, %35
  br i1 %36, label %.lr.ph.split.us.split.us, label %._crit_edge, !llvm.loop !33

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %40
  %.035.us = phi ptr [ %42, %40 ], [ %1, %.lr.ph.split.us ]
  %.02534.us = phi ptr [ %44, %40 ], [ %3, %.lr.ph.split.us ]
  %.02633.us = phi i64 [ %46, %40 ], [ 0, %.lr.ph.split.us ]
  %37 = load i64, ptr %21, align 8, !tbaa !21
  %.not32.us = icmp eq i64 %37, 0
  br i1 %.not32.us, label %39, label %38

38:                                               ; preds = %.lr.ph.split.us.split
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035.us, ptr noundef %.035.us, ptr noundef nonnull %18, ptr noundef %.02534.us)
  br label %40

39:                                               ; preds = %.lr.ph.split.us.split
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035.us, ptr noundef %.035.us, ptr noundef nonnull %18, ptr noundef %.02534.us)
  br label %40

40:                                               ; preds = %39, %38
  %41 = load i64, ptr %22, align 8, !tbaa !22
  %42 = getelementptr inbounds i8, ptr %.035.us, i64 %41
  %43 = load i64, ptr %23, align 8, !tbaa !31
  %44 = getelementptr inbounds i8, ptr %.02534.us, i64 %43
  %45 = load i64, ptr %24, align 8, !tbaa !32
  %46 = add i64 %45, %.02633.us
  %47 = load i64, ptr %19, align 8, !tbaa !13
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %.lr.ph.split.us.split, label %._crit_edge, !llvm.loop !33

.lr.ph.split:                                     ; preds = %.lr.ph
  br i1 %.not31, label %.lr.ph.split.split.us, label %.lr.ph.split.split

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %52
  %.035.us36 = phi ptr [ %54, %52 ], [ %1, %.lr.ph.split ]
  %.02534.us37 = phi ptr [ %56, %52 ], [ %3, %.lr.ph.split ]
  %.02633.us38 = phi i64 [ %58, %52 ], [ 0, %.lr.ph.split ]
  %49 = load i64, ptr %21, align 8, !tbaa !21
  %.not32.us40 = icmp eq i64 %49, 0
  br i1 %.not32.us40, label %51, label %50

50:                                               ; preds = %.lr.ph.split.split.us
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035.us36, ptr noundef nonnull %12, ptr noundef %.02534.us37, ptr noundef %.02534.us37)
  br label %52

51:                                               ; preds = %.lr.ph.split.split.us
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035.us36, ptr noundef nonnull %12, ptr noundef %.02534.us37, ptr noundef %.02534.us37)
  br label %52

52:                                               ; preds = %51, %50
  %53 = load i64, ptr %22, align 8, !tbaa !22
  %54 = getelementptr inbounds i8, ptr %.035.us36, i64 %53
  %55 = load i64, ptr %23, align 8, !tbaa !31
  %56 = getelementptr inbounds i8, ptr %.02534.us37, i64 %55
  %57 = load i64, ptr %24, align 8, !tbaa !32
  %58 = add i64 %57, %.02633.us38
  %59 = load i64, ptr %19, align 8, !tbaa !13
  %60 = icmp ult i64 %58, %59
  br i1 %60, label %.lr.ph.split.split.us, label %._crit_edge, !llvm.loop !33

._crit_edge:                                      ; preds = %64, %52, %40, %28, %17
  ret void

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %64
  %.035 = phi ptr [ %66, %64 ], [ %1, %.lr.ph.split ]
  %.02534 = phi ptr [ %68, %64 ], [ %3, %.lr.ph.split ]
  %.02633 = phi i64 [ %70, %64 ], [ 0, %.lr.ph.split ]
  %61 = load i64, ptr %21, align 8, !tbaa !21
  %.not32 = icmp eq i64 %61, 0
  br i1 %.not32, label %63, label %62

62:                                               ; preds = %.lr.ph.split.split
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef %.02534)
  br label %64

63:                                               ; preds = %.lr.ph.split.split
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568) %0, ptr noundef %.035, ptr noundef nonnull %12, ptr noundef nonnull %18, ptr noundef %.02534)
  br label %64

64:                                               ; preds = %63, %62
  %65 = load i64, ptr %22, align 8, !tbaa !22
  %66 = getelementptr inbounds i8, ptr %.035, i64 %65
  %67 = load i64, ptr %23, align 8, !tbaa !31
  %68 = getelementptr inbounds i8, ptr %.02534, i64 %67
  %69 = load i64, ptr %24, align 8, !tbaa !32
  %70 = add i64 %69, %.02633
  %71 = load i64, ptr %19, align 8, !tbaa !13
  %72 = icmp ult i64 %70, %71
  br i1 %72, label %.lr.ph.split.split, label %._crit_edge, !llvm.loop !33
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef ptr @_ZN4Simd19SynetConvolution16b6BufferEPh(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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV014ForwardInverseEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568), ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV013ForwardDirectEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(568), 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, !11, i64 168}
!10 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV08AlgParamE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !11, i64 56, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !11, i64 152, !11, i64 160, !11, i64 168, !11, i64 176, !11, i64 184, !11, i64 192}
!11 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 176}
!13 = !{!14, !11, i64 168}
!14 = !{!"_ZTSN4Simd9ConvParamE", !15, i64 0, !19, i64 160, !11, i64 168, !20, i64 176}
!15 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !16, i64 24, !17, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !16, i64 56, !17, i64 60, !11, i64 64, !11, i64 72, !11, i64 80, !11, i64 88, !11, i64 96, !11, i64 104, !11, i64 112, !11, i64 120, !11, i64 128, !11, i64 136, !11, i64 144, !18, i64 152}
!16 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!17 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!18 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!19 = !{!"_ZTS8SimdBool", !7, i64 0}
!20 = !{!"_ZTS26SimdSynetCompatibilityType", !7, i64 0}
!21 = !{!10, !11, i64 192}
!22 = !{!23, !11, i64 312}
!23 = !{!"_ZTSN4Simd19SynetConvolution16bE", !24, i64 0, !14, i64 8, !25, i64 192, !26, i64 208, !28, i64 240, !29, i64 256, !29, i64 272, !30, i64 288, !30, i64 289, !30, i64 290, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320}
!24 = !{!"_ZTSN4Simd9DeletableE"}
!25 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !11, i64 8}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !11, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !11, i64 8}
!29 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!30 = !{!"bool", !7, i64 0}
!31 = !{!23, !11, i64 320}
!32 = !{!10, !11, i64 32}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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