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

; 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::SynetConvolution16bNhwcSpecV1" = type { %"class.Simd::SynetConvolution16b", %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", %"struct.Simd::Array.2", ptr, ptr, ptr }
%"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam" = type { 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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(536) %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::SynetConvolution16bNhwcSpecV1", 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::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %21, i32 0, i32 18
  %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::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %26, i32 0, i32 18
  %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::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %33, i32 0, i32 19
  %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::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %38, i32 0, i32 19
  %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 = %81, %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 %87

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 %6, align 8, !tbaa !5
  %70 = load ptr, ptr %14, align 8, !tbaa !5
  %71 = load ptr, ptr %15, align 8, !tbaa !5
  %72 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536) %16, ptr noundef %69, ptr noundef %70, ptr noundef %71, ptr noundef %72)
  %73 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %16, i32 0, i32 12
  %74 = load i64, ptr %73, align 8, !tbaa !22
  %75 = load ptr, ptr %6, align 8, !tbaa !5
  %76 = getelementptr inbounds i8, ptr %75, i64 %74
  store ptr %76, ptr %6, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.Simd::SynetConvolution16b", ptr %16, i32 0, i32 13
  %78 = load i64, ptr %77, align 8, !tbaa !31
  %79 = load ptr, ptr %8, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 %78
  store ptr %80, 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 %81

81:                                               ; preds = %67
  %82 = load ptr, ptr %10, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.Simd::Base::SynetConvolution16bNhwcSpecV1::AlgParam", ptr %82, i32 0, i32 0
  %84 = load i64, ptr %83, align 8, !tbaa !32
  %85 = load i64, ptr %13, align 8, !tbaa !13
  %86 = add i64 %85, %84
  store i64 %86, ptr %13, align 8, !tbaa !13
  br label %45, !llvm.loop !33

87:                                               ; 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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536), 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 144}
!10 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV18AlgParamE", !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 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 152}
!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 = !{!23, !11, i64 312}
!23 = !{!"_ZTSN4Simd19SynetConvolution16bE", !24, i64 0, !15, 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 0}
!33 = distinct !{!33, !34}
!34 = !{!"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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPhS4_(ptr noundef nonnull align 8 dereferenceable(536) %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 328
  %7 = tail call noundef ptr @_ZN4Simd19SynetConvolution16b6BufferEPh(ptr noundef nonnull align 8 dereferenceable(328) %0, ptr noundef %2)
  store ptr %7, ptr %5, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 472
  %9 = load i64, ptr %8, align 8, !tbaa !9
  %.not = icmp eq i64 %9, 0
  br i1 %.not, label %12, label %10

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

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

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

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

.lr.ph:                                           ; preds = %18
  %.not25 = icmp eq ptr %13, null
  %.not26 = icmp eq ptr %19, null
  %22 = getelementptr inbounds i8, ptr %0, i64 312
  %23 = getelementptr inbounds i8, ptr %0, i64 320
  br i1 %.not25, label %.lr.ph.split.us, label %.lr.ph.split

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

.lr.ph.split.us.split.us:                         ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split.us
  %.029.us.us = phi ptr [ %25, %.lr.ph.split.us.split.us ], [ %1, %.lr.ph.split.us ]
  %.02028.us.us = phi ptr [ %27, %.lr.ph.split.us.split.us ], [ %3, %.lr.ph.split.us ]
  %.02127.us.us = phi i64 [ %29, %.lr.ph.split.us.split.us ], [ 0, %.lr.ph.split.us ]
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr noundef %.029.us.us, ptr noundef %.029.us.us, ptr noundef %.02028.us.us, ptr noundef %.02028.us.us)
  %24 = load i64, ptr %22, align 8, !tbaa !21
  %25 = getelementptr inbounds i8, ptr %.029.us.us, i64 %24
  %26 = load i64, ptr %23, align 8, !tbaa !30
  %27 = getelementptr inbounds i8, ptr %.02028.us.us, i64 %26
  %28 = load i64, ptr %6, align 8, !tbaa !31
  %29 = add i64 %28, %.02127.us.us
  %30 = load i64, ptr %20, align 8, !tbaa !13
  %31 = icmp ult i64 %29, %30
  br i1 %31, label %.lr.ph.split.us.split.us, label %._crit_edge, !llvm.loop !32

.lr.ph.split.us.split:                            ; preds = %.lr.ph.split.us, %.lr.ph.split.us.split
  %.029.us = phi ptr [ %33, %.lr.ph.split.us.split ], [ %1, %.lr.ph.split.us ]
  %.02028.us = phi ptr [ %35, %.lr.ph.split.us.split ], [ %3, %.lr.ph.split.us ]
  %.02127.us = phi i64 [ %37, %.lr.ph.split.us.split ], [ 0, %.lr.ph.split.us ]
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr noundef %.029.us, ptr noundef %.029.us, ptr noundef nonnull %19, ptr noundef %.02028.us)
  %32 = load i64, ptr %22, align 8, !tbaa !21
  %33 = getelementptr inbounds i8, ptr %.029.us, i64 %32
  %34 = load i64, ptr %23, align 8, !tbaa !30
  %35 = getelementptr inbounds i8, ptr %.02028.us, i64 %34
  %36 = load i64, ptr %6, align 8, !tbaa !31
  %37 = add i64 %36, %.02127.us
  %38 = load i64, ptr %20, align 8, !tbaa !13
  %39 = icmp ult i64 %37, %38
  br i1 %39, label %.lr.ph.split.us.split, label %._crit_edge, !llvm.loop !32

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

.lr.ph.split.split.us:                            ; preds = %.lr.ph.split, %.lr.ph.split.split.us
  %.029.us30 = phi ptr [ %41, %.lr.ph.split.split.us ], [ %1, %.lr.ph.split ]
  %.02028.us31 = phi ptr [ %43, %.lr.ph.split.split.us ], [ %3, %.lr.ph.split ]
  %.02127.us32 = phi i64 [ %45, %.lr.ph.split.split.us ], [ 0, %.lr.ph.split ]
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr noundef %.029.us30, ptr noundef nonnull %13, ptr noundef %.02028.us31, ptr noundef %.02028.us31)
  %40 = load i64, ptr %22, align 8, !tbaa !21
  %41 = getelementptr inbounds i8, ptr %.029.us30, i64 %40
  %42 = load i64, ptr %23, align 8, !tbaa !30
  %43 = getelementptr inbounds i8, ptr %.02028.us31, i64 %42
  %44 = load i64, ptr %6, align 8, !tbaa !31
  %45 = add i64 %44, %.02127.us32
  %46 = load i64, ptr %20, align 8, !tbaa !13
  %47 = icmp ult i64 %45, %46
  br i1 %47, label %.lr.ph.split.split.us, label %._crit_edge, !llvm.loop !32

._crit_edge:                                      ; preds = %.lr.ph.split.split, %.lr.ph.split.split.us, %.lr.ph.split.us.split, %.lr.ph.split.us.split.us, %18
  ret void

.lr.ph.split.split:                               ; preds = %.lr.ph.split, %.lr.ph.split.split
  %.029 = phi ptr [ %49, %.lr.ph.split.split ], [ %1, %.lr.ph.split ]
  %.02028 = phi ptr [ %51, %.lr.ph.split.split ], [ %3, %.lr.ph.split ]
  %.02127 = phi i64 [ %53, %.lr.ph.split.split ], [ 0, %.lr.ph.split ]
  call void @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536) %0, ptr noundef %.029, ptr noundef nonnull %13, ptr noundef nonnull %19, ptr noundef %.02028)
  %48 = load i64, ptr %22, align 8, !tbaa !21
  %49 = getelementptr inbounds i8, ptr %.029, i64 %48
  %50 = load i64, ptr %23, align 8, !tbaa !30
  %51 = getelementptr inbounds i8, ptr %.02028, i64 %50
  %52 = load i64, ptr %6, align 8, !tbaa !31
  %53 = add i64 %52, %.02127
  %54 = load i64, ptr %20, align 8, !tbaa !13
  %55 = icmp ult i64 %53, %54
  br i1 %55, label %.lr.ph.split.split, label %._crit_edge, !llvm.loop !32
}

; 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 @_ZN4Simd4Base29SynetConvolution16bNhwcSpecV17ForwardEPKhPtPfPh(ptr noundef nonnull align 8 dereferenceable(536), 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 144}
!10 = !{!"_ZTSN4Simd4Base29SynetConvolution16bNhwcSpecV18AlgParamE", !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 = !{!"long", !7, i64 0}
!12 = !{!10, !11, i64 152}
!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 = !{!22, !11, i64 312}
!22 = !{!"_ZTSN4Simd19SynetConvolution16bE", !23, i64 0, !14, 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, !11, i64 296, !11, i64 304, !11, i64 312, !11, i64 320}
!23 = !{!"_ZTSN4Simd9DeletableE"}
!24 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !11, i64 8}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !26, i64 0, !11, i64 8, !7, i64 16}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!27 = !{!"_ZTSN4Simd5ArrayItEE", !6, i64 0, !11, i64 8}
!28 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!29 = !{!"bool", !7, i64 0}
!30 = !{!22, !11, i64 320}
!31 = !{!10, !11, i64 0}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}


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