; LLVM IR from ermig1979/Simd :: src/Simd/SimdBaseSynetConvolution8i.ll (ZN4Simd18SynetConvolution8i7ForwardEPKhPhS3_)

; 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::SynetConvolution8i" = type { %"struct.Simd::Deletable", %"struct.Simd::ConvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string", ptr, %"struct.Simd::CvtParam", %"struct.Simd::CvtParam", %"struct.Simd::Array.1", %"struct.Simd::Array.0", %"struct.Simd::Array.0", %"struct.Simd::Array.0", i8, i8, 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::CvtParam" = type <{ %"struct.Simd::Array", %"struct.Simd::Array.0", %"struct.Simd::Array.0", %"struct.Simd::Array.0", %"struct.Simd::Array.0", i8, [3 x i8], i32, i32, i32, i32, [4 x i8] }>
%"struct.Simd::Array.1" = type { ptr, i64 }
%"struct.Simd::Array.0" = type { ptr, i64 }

; Function Attrs: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) #0 align 2

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd18SynetConvolution8i7ForwardEPKhPhS3_(ptr noundef nonnull align 8 dereferenceable(552) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #2 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 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
  %12 = load ptr, ptr %5, align 8
  %13 = load ptr, ptr %7, align 8, !tbaa !5
  %14 = icmp eq ptr %13, null
  br i1 %14, label %15, label %24

15:                                               ; preds = %4
  %16 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 2
  %17 = load ptr, ptr %12, align 8, !tbaa !9
  %18 = getelementptr inbounds ptr, ptr %17, i64 4
  %19 = load ptr, ptr %18, align 8
  %20 = call noundef i64 %19(ptr noundef nonnull align 8 dereferenceable(552) %12)
  call void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %16, i64 noundef %20, i1 noundef zeroext false, i64 noundef 8)
  %21 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 2
  %22 = getelementptr inbounds %"struct.Simd::Array", ptr %21, i32 0, i32 0
  %23 = load ptr, ptr %22, align 8, !tbaa !11
  store ptr %23, ptr %7, align 8, !tbaa !5
  br label %24

24:                                               ; preds = %15, %4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %25 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 1
  store ptr %25, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %26 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 11
  %27 = load i8, ptr %26, align 8, !tbaa !30, !range !31, !noundef !32
  %28 = trunc i8 %27 to i1
  br i1 %28, label %29, label %30

29:                                               ; preds = %24
  br label %37

30:                                               ; preds = %24
  %31 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 14
  %32 = load i64, ptr %31, align 8, !tbaa !33
  %33 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 13
  %34 = load i64, ptr %33, align 8, !tbaa !34
  %35 = mul i64 %32, %34
  %36 = call noundef ptr @_ZN4Simd8AllocateIhEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %7, i64 noundef %35, i64 noundef 8)
  br label %37

37:                                               ; preds = %30, %29
  %38 = phi ptr [ null, %29 ], [ %36, %30 ]
  store ptr %38, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !35
  br label %39

39:                                               ; preds = %116, %37
  %40 = load i64, ptr %11, align 8, !tbaa !35
  %41 = load ptr, ptr %9, align 8, !tbaa !5
  %42 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %41, i32 0, i32 3
  %43 = load i64, ptr %42, align 8, !tbaa !36
  %44 = icmp ult i64 %40, %43
  br i1 %44, label %46, label %45

45:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  br label %121

46:                                               ; preds = %39
  %47 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 11
  %48 = load i8, ptr %47, align 8, !tbaa !30, !range !31, !noundef !32
  %49 = trunc i8 %48 to i1
  br i1 %49, label %85, label %50

50:                                               ; preds = %46
  %51 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 4
  %52 = load ptr, ptr %51, align 8, !tbaa !37
  %53 = load ptr, ptr %6, align 8, !tbaa !5
  %54 = load i64, ptr %11, align 8, !tbaa !35
  %55 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 14
  %56 = load i64, ptr %55, align 8, !tbaa !33
  %57 = mul i64 %54, %56
  %58 = getelementptr inbounds float, ptr %53, i64 %57
  %59 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 13
  %60 = load i64, ptr %59, align 8, !tbaa !34
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %61, i32 0, i32 0
  %63 = load i64, ptr %62, align 8, !tbaa !38
  %64 = load ptr, ptr %9, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %64, i32 0, i32 1
  %66 = load i64, ptr %65, align 8, !tbaa !39
  %67 = load ptr, ptr %9, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %67, i32 0, i32 2
  %69 = load i64, ptr %68, align 8, !tbaa !40
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %70, i32 0, i32 4
  %72 = load i32, ptr %71, align 4, !tbaa !41
  %73 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 5
  %74 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %73, i32 0, i32 1
  %75 = getelementptr inbounds %"struct.Simd::Array.0", ptr %74, i32 0, i32 0
  %76 = load ptr, ptr %75, align 8, !tbaa !42
  %77 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 5
  %78 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %77, i32 0, i32 2
  %79 = getelementptr inbounds %"struct.Simd::Array.0", ptr %78, i32 0, i32 0
  %80 = load ptr, ptr %79, align 8, !tbaa !43
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = load ptr, ptr %9, align 8, !tbaa !5
  %83 = getelementptr inbounds %"struct.Simd::ConvParam", ptr %82, i32 0, i32 4
  %84 = load i32, ptr %83, align 8, !tbaa !44
  call void %52(ptr noundef %58, i64 noundef %60, i64 noundef %63, i64 noundef %66, i64 noundef %69, i32 noundef %72, ptr noundef %76, ptr noundef %80, ptr noundef %81, i32 noundef %84)
  br label %85

85:                                               ; preds = %50, %46
  %86 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 11
  %87 = load i8, ptr %86, align 8, !tbaa !30, !range !31, !noundef !32
  %88 = trunc i8 %87 to i1
  br i1 %88, label %89, label %96

89:                                               ; preds = %85
  %90 = load ptr, ptr %6, align 8, !tbaa !5
  %91 = load i64, ptr %11, align 8, !tbaa !35
  %92 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 14
  %93 = load i64, ptr %92, align 8, !tbaa !33
  %94 = mul i64 %91, %93
  %95 = getelementptr inbounds i8, ptr %90, i64 %94
  br label %98

96:                                               ; preds = %85
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  br label %98

98:                                               ; preds = %96, %89
  %99 = phi ptr [ %95, %89 ], [ %97, %96 ]
  %100 = load ptr, ptr %7, align 8, !tbaa !5
  %101 = load ptr, ptr %8, align 8, !tbaa !5
  %102 = load i64, ptr %11, align 8, !tbaa !35
  %103 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 15
  %104 = load i64, ptr %103, align 8, !tbaa !45
  %105 = mul i64 %102, %104
  %106 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 12
  %107 = load i8, ptr %106, align 1, !tbaa !46, !range !31, !noundef !32
  %108 = trunc i8 %107 to i1
  %109 = zext i1 %108 to i64
  %110 = select i1 %108, i64 1, i64 4
  %111 = mul i64 %105, %110
  %112 = getelementptr inbounds i8, ptr %101, i64 %111
  %113 = load ptr, ptr %12, align 8, !tbaa !9
  %114 = getelementptr inbounds ptr, ptr %113, i64 8
  %115 = load ptr, ptr %114, align 8
  call void %115(ptr noundef nonnull align 8 dereferenceable(552) %12, ptr noundef %99, ptr noundef %100, ptr noundef %112)
  br label %116

116:                                              ; preds = %98
  %117 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %12, i32 0, i32 13
  %118 = load i64, ptr %117, align 8, !tbaa !34
  %119 = load i64, ptr %11, align 8, !tbaa !35
  %120 = add i64 %119, %118
  store i64 %120, ptr %11, align 8, !tbaa !35
  br label %39, !llvm.loop !47

121:                                              ; preds = %45
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

attributes #0 = { alwaysinline 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 192}
!12 = !{!"_ZTSN4Simd18SynetConvolution8iE", !13, i64 0, !14, i64 8, !22, i64 192, !23, i64 208, !6, i64 240, !25, i64 248, !25, i64 352, !29, i64 456, !26, i64 472, !26, i64 488, !26, i64 504, !27, i64 520, !27, i64 521, !16, i64 528, !16, i64 536, !16, i64 544}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"_ZTSN4Simd9ConvParamE", !15, i64 0, !20, i64 160, !16, i64 168, !21, i64 176}
!15 = !{!"_ZTS25SimdConvolutionParameters", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24, !18, i64 28, !16, i64 32, !16, i64 40, !16, i64 48, !17, i64 56, !18, i64 60, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !19, i64 152}
!16 = !{!"long", !7, i64 0}
!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 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !16, i64 8}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !16, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"_ZTSN4Simd8CvtParamE", !22, i64 0, !26, i64 16, !26, i64 32, !26, i64 48, !26, i64 64, !27, i64 80, !28, i64 84, !28, i64 88, !28, i64 92, !28, i64 96}
!26 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !16, i64 8}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = !{!"_ZTSN4Simd5ArrayIaEE", !6, i64 0, !16, i64 8}
!30 = !{!12, !27, i64 520}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!12, !16, i64 536}
!34 = !{!12, !16, i64 528}
!35 = !{!16, !16, i64 0}
!36 = !{!14, !16, i64 168}
!37 = !{!12, !6, i64 240}
!38 = !{!15, !16, i64 0}
!39 = !{!15, !16, i64 8}
!40 = !{!15, !16, i64 16}
!41 = !{!15, !18, i64 28}
!42 = !{!12, !6, i64 264}
!43 = !{!12, !6, i64 280}
!44 = !{!14, !21, i64 176}
!45 = !{!12, !16, i64 544}
!46 = !{!12, !27, i64 521}
!47 = distinct !{!47, !48}
!48 = !{!"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: alwaysinline mustprogress uwtable
declare dso_local void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef, i1 noundef zeroext, i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd18SynetConvolution8i7ForwardEPKhPhS3_(ptr noundef nonnull align 8 dereferenceable(552) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) unnamed_addr #1 align 2 {
  %5 = alloca ptr, align 8
  store ptr %2, ptr %5, align 8, !tbaa !5
  %6 = icmp eq ptr %2, null
  br i1 %6, label %7, label %14

7:                                                ; preds = %4
  %8 = getelementptr inbounds i8, ptr %0, i64 192
  %9 = load ptr, ptr %0, align 8, !tbaa !9
  %10 = getelementptr inbounds i8, ptr %9, i64 32
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef i64 %11(ptr noundef nonnull align 8 dereferenceable(552) %0)
  tail call void @_ZN4Simd5ArrayIhE6ResizeEmbm(ptr noundef nonnull align 8 dereferenceable(16) %8, i64 noundef %12, i1 noundef zeroext false, i64 noundef 8)
  %13 = load ptr, ptr %8, align 8, !tbaa !11
  store ptr %13, ptr %5, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %7, %4
  %15 = getelementptr inbounds i8, ptr %0, i64 8
  %16 = getelementptr inbounds i8, ptr %0, i64 520
  %17 = load i8, ptr %16, align 8, !tbaa !30, !range !31, !noundef !32
  %18 = trunc nuw i8 %17 to i1
  br i1 %18, label %26, label %19

19:                                               ; preds = %14
  %20 = getelementptr inbounds i8, ptr %0, i64 536
  %21 = load i64, ptr %20, align 8, !tbaa !33
  %22 = getelementptr inbounds i8, ptr %0, i64 528
  %23 = load i64, ptr %22, align 8, !tbaa !34
  %24 = mul i64 %23, %21
  %25 = call noundef ptr @_ZN4Simd8AllocateIhEEPT_RPhmm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %24, i64 noundef 8)
  br label %26

26:                                               ; preds = %14, %19
  %27 = phi ptr [ %25, %19 ], [ null, %14 ]
  %28 = getelementptr inbounds i8, ptr %0, i64 176
  %29 = load i64, ptr %28, align 8, !tbaa !35
  %.not = icmp eq i64 %29, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %26
  %30 = getelementptr inbounds i8, ptr %0, i64 240
  %31 = getelementptr inbounds i8, ptr %0, i64 536
  %32 = getelementptr inbounds i8, ptr %0, i64 528
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = getelementptr inbounds i8, ptr %0, i64 24
  %35 = getelementptr inbounds i8, ptr %0, i64 36
  %36 = getelementptr inbounds i8, ptr %0, i64 264
  %37 = getelementptr inbounds i8, ptr %0, i64 280
  %38 = getelementptr inbounds i8, ptr %0, i64 184
  %39 = getelementptr inbounds i8, ptr %0, i64 544
  %40 = getelementptr inbounds i8, ptr %0, i64 521
  br label %41

._crit_edge:                                      ; preds = %57, %26
  ret void

41:                                               ; preds = %.lr.ph, %57
  %.016 = phi i64 [ 0, %.lr.ph ], [ %74, %57 ]
  %42 = load i8, ptr %16, align 8, !tbaa !30, !range !31, !noundef !32
  %43 = trunc nuw i8 %42 to i1
  br i1 %43, label %57, label %44

44:                                               ; preds = %41
  %45 = load ptr, ptr %30, align 8, !tbaa !36
  %46 = load i64, ptr %31, align 8, !tbaa !33
  %47 = mul i64 %46, %.016
  %48 = getelementptr inbounds float, ptr %1, i64 %47
  %49 = load i64, ptr %32, align 8, !tbaa !34
  %50 = load i64, ptr %15, align 8, !tbaa !37
  %51 = load i64, ptr %33, align 8, !tbaa !38
  %52 = load i64, ptr %34, align 8, !tbaa !39
  %53 = load i32, ptr %35, align 4, !tbaa !40
  %54 = load ptr, ptr %36, align 8, !tbaa !41
  %55 = load ptr, ptr %37, align 8, !tbaa !42
  %56 = load i32, ptr %38, align 8, !tbaa !43
  call void %45(ptr noundef %48, i64 noundef %49, i64 noundef %50, i64 noundef %51, i64 noundef %52, i32 noundef %53, ptr noundef %54, ptr noundef %55, ptr noundef %27, i32 noundef %56)
  %.pre = load i8, ptr %16, align 8, !tbaa !30, !range !31
  %.pre17 = trunc nuw i8 %.pre to i1
  br label %57

57:                                               ; preds = %44, %41
  %.pre-phi = phi i1 [ %.pre17, %44 ], [ true, %41 ]
  %58 = load i64, ptr %31, align 8
  %59 = mul i64 %58, %.016
  %60 = getelementptr inbounds i8, ptr %1, i64 %59
  %61 = select i1 %.pre-phi, ptr %60, ptr %27
  %62 = load ptr, ptr %5, align 8, !tbaa !5
  %63 = load i64, ptr %39, align 8, !tbaa !44
  %64 = mul i64 %63, %.016
  %65 = load i8, ptr %40, align 1, !tbaa !45, !range !31, !noundef !32
  %66 = trunc nuw i8 %65 to i1
  %67 = select i1 %66, i64 0, i64 2
  %68 = shl i64 %64, %67
  %69 = getelementptr inbounds i8, ptr %3, i64 %68
  %70 = load ptr, ptr %0, align 8, !tbaa !9
  %71 = getelementptr inbounds i8, ptr %70, i64 64
  %72 = load ptr, ptr %71, align 8
  call void %72(ptr noundef nonnull align 8 dereferenceable(552) %0, ptr noundef %61, ptr noundef %62, ptr noundef %69)
  %73 = load i64, ptr %32, align 8, !tbaa !34
  %74 = add i64 %73, %.016
  %75 = load i64, ptr %28, align 8, !tbaa !35
  %76 = icmp ult i64 %74, %75
  br i1 %76, label %41, label %._crit_edge, !llvm.loop !46
}

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

attributes #0 = { alwaysinline 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 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" }

!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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !6, i64 192}
!12 = !{!"_ZTSN4Simd18SynetConvolution8iE", !13, i64 0, !14, i64 8, !22, i64 192, !23, i64 208, !6, i64 240, !25, i64 248, !25, i64 352, !29, i64 456, !26, i64 472, !26, i64 488, !26, i64 504, !27, i64 520, !27, i64 521, !16, i64 528, !16, i64 536, !16, i64 544}
!13 = !{!"_ZTSN4Simd9DeletableE"}
!14 = !{!"_ZTSN4Simd9ConvParamE", !15, i64 0, !20, i64 160, !16, i64 168, !21, i64 176}
!15 = !{!"_ZTS25SimdConvolutionParameters", !16, i64 0, !16, i64 8, !16, i64 16, !17, i64 24, !18, i64 28, !16, i64 32, !16, i64 40, !16, i64 48, !17, i64 56, !18, i64 60, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !19, i64 152}
!16 = !{!"long", !7, i64 0}
!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 = !{!"_ZTSN4Simd5ArrayIhEE", !6, i64 0, !16, i64 8}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !24, i64 0, !16, i64 8, !7, i64 16}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!25 = !{!"_ZTSN4Simd8CvtParamE", !22, i64 0, !26, i64 16, !26, i64 32, !26, i64 48, !26, i64 64, !27, i64 80, !28, i64 84, !28, i64 88, !28, i64 92, !28, i64 96}
!26 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !16, i64 8}
!27 = !{!"bool", !7, i64 0}
!28 = !{!"int", !7, i64 0}
!29 = !{!"_ZTSN4Simd5ArrayIaEE", !6, i64 0, !16, i64 8}
!30 = !{!12, !27, i64 520}
!31 = !{i8 0, i8 2}
!32 = !{}
!33 = !{!12, !16, i64 536}
!34 = !{!12, !16, i64 528}
!35 = !{!14, !16, i64 168}
!36 = !{!12, !6, i64 240}
!37 = !{!15, !16, i64 0}
!38 = !{!15, !16, i64 8}
!39 = !{!15, !16, i64 16}
!40 = !{!15, !18, i64 28}
!41 = !{!12, !6, i64 264}
!42 = !{!12, !6, i64 280}
!43 = !{!14, !21, i64 176}
!44 = !{!12, !16, i64 544}
!45 = !{!12, !27, i64 521}
!46 = distinct !{!46, !47}
!47 = !{!"llvm.loop.mustprogress"}


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