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

; 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 }
%"class.Simd::Base::SynetConvolution8iNhwcDirect" = type { %"class.Simd::SynetConvolution8i", %"struct.Simd::Base::SynetConvolution8iNhwcDirect::AlgParam", i64, i64, %"struct.Simd::ConvParam", [3 x ptr] }
%"struct.Simd::Base::SynetConvolution8iNhwcDirect::AlgParam" = type { i64, i64, i64, i64, i64, i32, i32, i32 }

; 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) #1 align 2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN4Simd4Base28SynetConvolution8iNhwcDirect8PadInputEPKhPh(ptr noundef nonnull align 8 dereferenceable(832) %0, ptr noundef %1, ptr noundef %2) #3 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %14 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %15 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %14, i32 0, i32 1
  store ptr %15, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %16 = load ptr, ptr %7, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %16, i32 0, i32 17
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = load ptr, ptr %7, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %19, i32 0, i32 0
  %21 = load i64, ptr %20, align 8, !tbaa !15
  %22 = mul i64 %18, %21
  %23 = mul i64 %22, 1
  store i64 %23, ptr %8, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %24 = load ptr, ptr %7, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %24, i32 0, i32 2
  %26 = load i64, ptr %25, align 8, !tbaa !17
  %27 = load ptr, ptr %7, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %27, i32 0, i32 0
  %29 = load i64, ptr %28, align 8, !tbaa !15
  %30 = mul i64 %26, %29
  %31 = mul i64 %30, 1
  store i64 %31, ptr %9, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %32 = load ptr, ptr %7, align 8, !tbaa !5
  %33 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %32, i32 0, i32 19
  %34 = load i64, ptr %33, align 8, !tbaa !18
  %35 = load ptr, ptr %7, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %35, i32 0, i32 0
  %37 = load i64, ptr %36, align 8, !tbaa !15
  %38 = mul i64 %34, %37
  %39 = mul i64 %38, 1
  store i64 %39, ptr %10, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %40 = load i64, ptr %8, align 8, !tbaa !16
  %41 = load i64, ptr %9, align 8, !tbaa !16
  %42 = add i64 %40, %41
  %43 = load i64, ptr %10, align 8, !tbaa !16
  %44 = add i64 %42, %43
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %45, i32 0, i32 16
  %47 = load i64, ptr %46, align 8, !tbaa !19
  %48 = mul i64 %44, %47
  store i64 %48, ptr %11, align 8, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %49 = load i64, ptr %8, align 8, !tbaa !16
  %50 = load i64, ptr %9, align 8, !tbaa !16
  %51 = add i64 %49, %50
  %52 = load i64, ptr %10, align 8, !tbaa !16
  %53 = add i64 %51, %52
  %54 = load ptr, ptr %7, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %54, i32 0, i32 18
  %56 = load i64, ptr %55, align 8, !tbaa !20
  %57 = mul i64 %53, %56
  store i64 %57, ptr %12, align 8, !tbaa !16
  %58 = getelementptr inbounds %"class.Simd::Base::SynetConvolution8iNhwcDirect", ptr %14, i32 0, i32 4
  %59 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %58, i32 0, i32 16
  %60 = load i64, ptr %59, align 8, !tbaa !19
  %61 = load ptr, ptr %7, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %61, i32 0, i32 16
  %63 = load i64, ptr %62, align 8, !tbaa !19
  %64 = icmp ne i64 %60, %63
  br i1 %64, label %65, label %77

65:                                               ; preds = %3
  %66 = load ptr, ptr %6, align 8, !tbaa !5
  %67 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %14, i32 0, i32 5
  %68 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %67, i32 0, i32 0
  %69 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %68, i64 noundef 0)
  %70 = load i8, ptr %69, align 1, !tbaa !21
  %71 = zext i8 %70 to i32
  %72 = trunc i32 %71 to i8
  %73 = load i64, ptr %11, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr align 1 %66, i8 %72, i64 %73, i1 false)
  %74 = load i64, ptr %11, align 8, !tbaa !16
  %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
  br label %77

77:                                               ; preds = %65, %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !16
  br label %78

78:                                               ; preds = %117, %77
  %79 = load i64, ptr %13, align 8, !tbaa !16
  %80 = load ptr, ptr %7, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %80, i32 0, i32 1
  %82 = load i64, ptr %81, align 8, !tbaa !22
  %83 = icmp ult i64 %79, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %78
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %120

85:                                               ; preds = %78
  %86 = load ptr, ptr %6, align 8, !tbaa !5
  %87 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %14, i32 0, i32 5
  %88 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %87, i32 0, i32 0
  %89 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %88, i64 noundef 0)
  %90 = load i8, ptr %89, align 1, !tbaa !21
  %91 = zext i8 %90 to i32
  %92 = trunc i32 %91 to i8
  %93 = load i64, ptr %8, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr align 1 %86, i8 %92, i64 %93, i1 false)
  %94 = load i64, ptr %8, align 8, !tbaa !16
  %95 = load ptr, ptr %6, align 8, !tbaa !5
  %96 = getelementptr inbounds i8, ptr %95, i64 %94
  store ptr %96, ptr %6, align 8, !tbaa !5
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = load ptr, ptr %5, align 8, !tbaa !5
  %99 = load i64, ptr %9, align 8, !tbaa !16
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %97, ptr align 1 %98, i64 %99, i1 false)
  %100 = load i64, ptr %9, align 8, !tbaa !16
  %101 = load ptr, ptr %5, align 8, !tbaa !5
  %102 = getelementptr inbounds i8, ptr %101, i64 %100
  store ptr %102, ptr %5, align 8, !tbaa !5
  %103 = load i64, ptr %9, align 8, !tbaa !16
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds i8, ptr %104, i64 %103
  store ptr %105, ptr %6, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %14, i32 0, i32 5
  %108 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %107, i32 0, i32 0
  %109 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %108, i64 noundef 0)
  %110 = load i8, ptr %109, align 1, !tbaa !21
  %111 = zext i8 %110 to i32
  %112 = trunc i32 %111 to i8
  %113 = load i64, ptr %10, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr align 1 %106, i8 %112, i64 %113, i1 false)
  %114 = load i64, ptr %10, align 8, !tbaa !16
  %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
  br label %117

117:                                              ; preds = %85
  %118 = load i64, ptr %13, align 8, !tbaa !16
  %119 = add i64 %118, 1
  store i64 %119, ptr %13, align 8, !tbaa !16
  br label %78, !llvm.loop !23

120:                                              ; preds = %84
  %121 = getelementptr inbounds %"class.Simd::Base::SynetConvolution8iNhwcDirect", ptr %14, i32 0, i32 4
  %122 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %121, i32 0, i32 18
  %123 = load i64, ptr %122, align 8, !tbaa !20
  %124 = load ptr, ptr %7, align 8, !tbaa !5
  %125 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %124, i32 0, i32 18
  %126 = load i64, ptr %125, align 8, !tbaa !20
  %127 = icmp ne i64 %123, %126
  br i1 %127, label %128, label %140

128:                                              ; preds = %120
  %129 = load ptr, ptr %6, align 8, !tbaa !5
  %130 = getelementptr inbounds %"class.Simd::SynetConvolution8i", ptr %14, i32 0, i32 5
  %131 = getelementptr inbounds %"struct.Simd::CvtParam", ptr %130, i32 0, i32 0
  %132 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %131, i64 noundef 0)
  %133 = load i8, ptr %132, align 1, !tbaa !21
  %134 = zext i8 %133 to i32
  %135 = trunc i32 %134 to i8
  %136 = load i64, ptr %12, align 8, !tbaa !16
  call void @llvm.memset.p0.i64(ptr align 1 %129, i8 %135, i64 %136, i1 false)
  %137 = load i64, ptr %12, align 8, !tbaa !16
  %138 = load ptr, ptr %6, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 %137
  store ptr %139, ptr %6, align 8, !tbaa !5
  br label %140

140:                                              ; preds = %128, %120
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  ret void
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { alwaysinline mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { 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 120}
!10 = !{!"_ZTS25SimdConvolutionParameters", !11, i64 0, !11, i64 8, !11, i64 16, !12, i64 24, !13, i64 28, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !13, 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, !14, i64 152}
!11 = !{!"long", !7, i64 0}
!12 = !{!"_ZTS18SimdTensorDataType", !7, i64 0}
!13 = !{!"_ZTS20SimdTensorFormatType", !7, i64 0}
!14 = !{!"_ZTS29SimdConvolutionActivationType", !7, i64 0}
!15 = !{!10, !11, i64 0}
!16 = !{!11, !11, i64 0}
!17 = !{!10, !11, i64 16}
!18 = !{!10, !11, i64 136}
!19 = !{!10, !11, i64 112}
!20 = !{!10, !11, i64 128}
!21 = !{!7, !7, i64 0}
!22 = !{!10, !11, i64 8}
!23 = distinct !{!23, !24}
!24 = !{!"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 nounwind uwtable
declare dso_local noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN4Simd4Base28SynetConvolution8iNhwcDirect8PadInputEPKhPh(ptr noundef nonnull align 8 dereferenceable(832) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #2 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 128
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = load i64, ptr %4, align 8, !tbaa !13
  %8 = mul i64 %7, %6
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i64, ptr %9, align 8, !tbaa !14
  %11 = mul i64 %10, %7
  %12 = getelementptr inbounds i8, ptr %0, i64 144
  %13 = load i64, ptr %12, align 8, !tbaa !15
  %14 = mul i64 %13, %7
  %15 = add i64 %11, %8
  %16 = add i64 %15, %14
  %17 = getelementptr inbounds i8, ptr %0, i64 120
  %18 = load i64, ptr %17, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %0, i64 136
  %20 = load i64, ptr %19, align 8, !tbaa !17
  %21 = mul i64 %16, %20
  %22 = getelementptr inbounds i8, ptr %0, i64 736
  %23 = load i64, ptr %22, align 8, !tbaa !16
  %.not = icmp eq i64 %23, %18
  br i1 %.not, label %30, label %24

24:                                               ; preds = %3
  %25 = mul i64 %16, %18
  %26 = getelementptr inbounds i8, ptr %0, i64 248
  %27 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %26, i64 noundef 0)
  %28 = load i8, ptr %27, align 1, !tbaa !18
  tail call void @llvm.memset.p0.i64(ptr align 1 %2, i8 %28, i64 %25, i1 false)
  %29 = getelementptr inbounds i8, ptr %2, i64 %25
  br label %30

30:                                               ; preds = %24, %3
  %.043 = phi ptr [ %29, %24 ], [ %2, %3 ]
  %31 = getelementptr inbounds i8, ptr %0, i64 16
  %32 = load i64, ptr %31, align 8, !tbaa !19
  %.not48 = icmp eq i64 %32, 0
  br i1 %.not48, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %30
  %33 = getelementptr inbounds i8, ptr %0, i64 248
  br label %37

._crit_edge:                                      ; preds = %37, %30
  %.1.lcssa = phi ptr [ %.043, %30 ], [ %45, %37 ]
  %34 = getelementptr inbounds i8, ptr %0, i64 752
  %35 = load i64, ptr %34, align 8, !tbaa !17
  %36 = load i64, ptr %19, align 8, !tbaa !17
  %.not44 = icmp eq i64 %35, %36
  br i1 %.not44, label %53, label %49

37:                                               ; preds = %.lr.ph, %37
  %.047 = phi i64 [ 0, %.lr.ph ], [ %46, %37 ]
  %.04246 = phi ptr [ %1, %.lr.ph ], [ %41, %37 ]
  %.145 = phi ptr [ %.043, %.lr.ph ], [ %45, %37 ]
  %38 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 0)
  %39 = load i8, ptr %38, align 1, !tbaa !18
  tail call void @llvm.memset.p0.i64(ptr align 1 %.145, i8 %39, i64 %8, i1 false)
  %40 = getelementptr inbounds i8, ptr %.145, i64 %8
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 1 %40, ptr align 1 %.04246, i64 %11, i1 false)
  %41 = getelementptr inbounds i8, ptr %.04246, i64 %11
  %42 = getelementptr inbounds i8, ptr %40, i64 %11
  %43 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %33, i64 noundef 0)
  %44 = load i8, ptr %43, align 1, !tbaa !18
  tail call void @llvm.memset.p0.i64(ptr align 1 %42, i8 %44, i64 %14, i1 false)
  %45 = getelementptr inbounds i8, ptr %42, i64 %14
  %46 = add nuw i64 %.047, 1
  %47 = load i64, ptr %31, align 8, !tbaa !19
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %37, label %._crit_edge, !llvm.loop !20

49:                                               ; preds = %._crit_edge
  %50 = getelementptr inbounds i8, ptr %0, i64 248
  %51 = tail call noundef nonnull align 1 dereferenceable(1) ptr @_ZN4Simd5ArrayIhEixEm(ptr noundef nonnull align 8 dereferenceable(16) %50, i64 noundef 0)
  %52 = load i8, ptr %51, align 1, !tbaa !18
  tail call void @llvm.memset.p0.i64(ptr align 1 %.1.lcssa, i8 %52, i64 %21, i1 false)
  br label %53

53:                                               ; preds = %49, %._crit_edge
  ret void
}

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !7, i64 120}
!6 = !{!"_ZTS25SimdConvolutionParameters", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !11, i64 28, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !11, i64 60, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !7, i64 96, !7, i64 104, !7, i64 112, !7, i64 120, !7, i64 128, !7, i64 136, !7, i64 144, !12, i64 152}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS18SimdTensorDataType", !8, i64 0}
!11 = !{!"_ZTS20SimdTensorFormatType", !8, i64 0}
!12 = !{!"_ZTS29SimdConvolutionActivationType", !8, i64 0}
!13 = !{!6, !7, i64 0}
!14 = !{!6, !7, i64 16}
!15 = !{!6, !7, i64 136}
!16 = !{!6, !7, i64 112}
!17 = !{!6, !7, i64 128}
!18 = !{!8, !8, i64 0}
!19 = !{!6, !7, i64 8}
!20 = distinct !{!20, !21}
!21 = !{!"llvm.loop.mustprogress"}


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