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

; 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::SynetMergedConvolution32f" = type { %"struct.Simd::Deletable", %"struct.Simd::MergConvParam", %"struct.Simd::Array", %"class.std::__cxx11::basic_string" }
%"struct.Simd::Deletable" = type { ptr }
%"struct.Simd::MergConvParam" = type <{ [3 x %"struct.Simd::ConvParam"], i64, i32, [4 x i8] }>
%"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] }
%"class.Simd::Base::SynetMergedConvolution32f" = type { %"class.Simd::SynetMergedConvolution32f", [4 x ptr], i64, i64, [2 x i64], [3 x %"struct.Simd::Array"], [3 x %"struct.Simd::Array"], [3 x %"struct.Simd::Array"], [3 x ptr], [3 x ptr], [3 x ptr], i64, i64, [2 x i64], [2 x i64], [2 x i64], [3 x 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: alwaysinline mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK4Simd4Base27SynetMergedConvolution32fDc19ReorderSecondWeightEPKfPf(ptr noundef nonnull align 8 dereferenceable(992) %0, ptr noundef %1, ptr noundef %2) unnamed_addr #2 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 i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i64, align 8
  %15 = alloca i64, align 8
  %16 = alloca i64, align 8
  %17 = 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
  %18 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #3
  %19 = getelementptr inbounds %"class.Simd::SynetMergedConvolution32f", ptr %18, i32 0, i32 1
  %20 = getelementptr inbounds %"struct.Simd::MergConvParam", ptr %19, i32 0, i32 0
  %21 = getelementptr inbounds [3 x %"struct.Simd::ConvParam"], ptr %20, i64 0, i64 1
  store ptr %21, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #3
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %22, i32 0, i32 0
  %24 = load i64, ptr %23, align 8, !tbaa !9
  store i64 %24, ptr %8, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.SimdConvolutionParameters, ptr %25, i32 0, i32 5
  %27 = load i64, ptr %26, align 8, !tbaa !16
  store i64 %27, ptr %9, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %28 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 11
  %29 = load i64, ptr %28, align 8, !tbaa !17
  %30 = mul i64 %29, 2
  store i64 %30, ptr %10, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #3
  store i64 0, ptr %11, align 8, !tbaa !15
  br label %31

31:                                               ; preds = %113, %3
  %32 = load i64, ptr %11, align 8, !tbaa !15
  %33 = load i64, ptr %8, align 8, !tbaa !15
  %34 = icmp ult i64 %32, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %31
  store i32 2, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #3
  br label %118

36:                                               ; preds = %31
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #3
  %37 = load i64, ptr %8, align 8, !tbaa !15
  %38 = load i64, ptr %11, align 8, !tbaa !15
  %39 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 12
  %40 = load i64, ptr %39, align 8, !tbaa !26
  %41 = add i64 %38, %40
  %42 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %37, i64 noundef %41)
  %43 = load i64, ptr %11, align 8, !tbaa !15
  %44 = sub i64 %42, %43
  store i64 %44, ptr %13, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #3
  store i64 0, ptr %14, align 8, !tbaa !15
  br label %45

45:                                               ; preds = %103, %36
  %46 = load i64, ptr %14, align 8, !tbaa !15
  %47 = load i64, ptr %9, align 8, !tbaa !15
  %48 = icmp ult i64 %46, %47
  br i1 %48, label %50, label %49

49:                                               ; preds = %45
  store i32 5, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #3
  br label %107

50:                                               ; preds = %45
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #3
  %51 = load i64, ptr %10, align 8, !tbaa !15
  %52 = load i64, ptr %9, align 8, !tbaa !15
  %53 = load i64, ptr %14, align 8, !tbaa !15
  %54 = sub i64 %52, %53
  %55 = call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %51, i64 noundef %54)
  store i64 %55, ptr %15, align 8, !tbaa !15
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #3
  store i64 0, ptr %16, align 8, !tbaa !15
  br label %56

56:                                               ; preds = %99, %50
  %57 = load i64, ptr %16, align 8, !tbaa !15
  %58 = load i64, ptr %13, align 8, !tbaa !15
  %59 = icmp ult i64 %57, %58
  br i1 %59, label %61, label %60

60:                                               ; preds = %56
  store i32 8, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #3
  br label %102

61:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #3
  store i64 0, ptr %17, align 8, !tbaa !15
  br label %62

62:                                               ; preds = %80, %61
  %63 = load i64, ptr %17, align 8, !tbaa !15
  %64 = load i64, ptr %15, align 8, !tbaa !15
  %65 = icmp ult i64 %63, %64
  br i1 %65, label %66, label %83

66:                                               ; preds = %62
  %67 = load ptr, ptr %5, align 8, !tbaa !5
  %68 = load i64, ptr %16, align 8, !tbaa !15
  %69 = load i64, ptr %9, align 8, !tbaa !15
  %70 = mul i64 %68, %69
  %71 = load i64, ptr %14, align 8, !tbaa !15
  %72 = add i64 %70, %71
  %73 = load i64, ptr %17, align 8, !tbaa !15
  %74 = add i64 %72, %73
  %75 = getelementptr inbounds float, ptr %67, i64 %74
  %76 = load float, ptr %75, align 4, !tbaa !27
  %77 = load ptr, ptr %6, align 8, !tbaa !5
  %78 = load i64, ptr %17, align 8, !tbaa !15
  %79 = getelementptr inbounds float, ptr %77, i64 %78
  store float %76, ptr %79, align 4, !tbaa !27
  br label %80

80:                                               ; preds = %66
  %81 = load i64, ptr %17, align 8, !tbaa !15
  %82 = add i64 %81, 1
  store i64 %82, ptr %17, align 8, !tbaa !15
  br label %62, !llvm.loop !29

83:                                               ; preds = %62
  br label %84

84:                                               ; preds = %92, %83
  %85 = load i64, ptr %17, align 8, !tbaa !15
  %86 = load i64, ptr %10, align 8, !tbaa !15
  %87 = icmp ult i64 %85, %86
  br i1 %87, label %88, label %95

88:                                               ; preds = %84
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = load i64, ptr %17, align 8, !tbaa !15
  %91 = getelementptr inbounds float, ptr %89, i64 %90
  store float 0.000000e+00, ptr %91, align 4, !tbaa !27
  br label %92

92:                                               ; preds = %88
  %93 = load i64, ptr %17, align 8, !tbaa !15
  %94 = add i64 %93, 1
  store i64 %94, ptr %17, align 8, !tbaa !15
  br label %84, !llvm.loop !31

95:                                               ; preds = %84
  %96 = load i64, ptr %10, align 8, !tbaa !15
  %97 = load ptr, ptr %6, align 8, !tbaa !5
  %98 = getelementptr inbounds float, ptr %97, i64 %96
  store ptr %98, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #3
  br label %99

99:                                               ; preds = %95
  %100 = load i64, ptr %16, align 8, !tbaa !15
  %101 = add i64 %100, 1
  store i64 %101, ptr %16, align 8, !tbaa !15
  br label %56, !llvm.loop !32

102:                                              ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #3
  br label %103

103:                                              ; preds = %102
  %104 = load i64, ptr %10, align 8, !tbaa !15
  %105 = load i64, ptr %14, align 8, !tbaa !15
  %106 = add i64 %105, %104
  store i64 %106, ptr %14, align 8, !tbaa !15
  br label %45, !llvm.loop !33

107:                                              ; preds = %49
  %108 = load i64, ptr %9, align 8, !tbaa !15
  %109 = load i64, ptr %13, align 8, !tbaa !15
  %110 = mul i64 %108, %109
  %111 = load ptr, ptr %5, align 8, !tbaa !5
  %112 = getelementptr inbounds float, ptr %111, i64 %110
  store ptr %112, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #3
  br label %113

113:                                              ; preds = %107
  %114 = getelementptr inbounds %"class.Simd::Base::SynetMergedConvolution32f", ptr %18, i32 0, i32 12
  %115 = load i64, ptr %114, align 8, !tbaa !26
  %116 = load i64, ptr %11, align 8, !tbaa !15
  %117 = add i64 %116, %115
  store i64 %117, ptr %11, align 8, !tbaa !15
  br label %31, !llvm.loop !34

118:                                              ; preds = %35
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #3
  ret void
}

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 = { 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 = { 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 0}
!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 = !{!11, !11, i64 0}
!16 = !{!10, !11, i64 32}
!17 = !{!18, !11, i64 904}
!18 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution32fE", !19, i64 0, !7, i64 624, !11, i64 656, !11, i64 664, !7, i64 672, !7, i64 688, !7, i64 736, !7, i64 784, !7, i64 832, !7, i64 856, !7, i64 880, !11, i64 904, !11, i64 912, !7, i64 920, !7, i64 936, !7, i64 952, !7, i64 968}
!19 = !{!"_ZTSN4Simd25SynetMergedConvolution32fE", !20, i64 0, !21, i64 8, !23, i64 576, !24, i64 592}
!20 = !{!"_ZTSN4Simd9DeletableE"}
!21 = !{!"_ZTSN4Simd13MergConvParamE", !7, i64 0, !11, i64 552, !22, i64 560}
!22 = !{!"_ZTS8SimdBool", !7, i64 0}
!23 = !{!"_ZTSN4Simd5ArrayIfEE", !6, i64 0, !11, i64 8}
!24 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !25, i64 0, !11, i64 8, !7, i64 16}
!25 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!26 = !{!18, !11, i64 912}
!27 = !{!28, !28, i64 0}
!28 = !{!"float", !7, i64 0}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.mustprogress"}
!31 = distinct !{!31, !30}
!32 = distinct !{!32, !30}
!33 = distinct !{!33, !30}
!34 = distinct !{!34, !30}


; 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 i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZNK4Simd4Base27SynetMergedConvolution32fDc19ReorderSecondWeightEPKfPf(ptr nocapture noundef nonnull readonly align 8 dereferenceable(992) %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) unnamed_addr #1 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 192
  %5 = load i64, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 224
  %7 = load i64, ptr %6, align 8, !tbaa !13
  %.fr = freeze i64 %7
  %8 = getelementptr inbounds i8, ptr %0, i64 904
  %9 = load i64, ptr %8, align 8, !tbaa !14
  %10 = shl i64 %9, 1
  %.not = icmp eq i64 %5, 0
  br i1 %.not, label %._crit_edge83, label %.lr.ph82

.lr.ph82:                                         ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 912
  %.not89 = icmp eq i64 %.fr, 0
  %.not88 = icmp eq i64 %10, 0
  br i1 %.not89, label %.lr.ph82.split.preheader, label %.lr.ph.us.preheader

.lr.ph.us.preheader:                              ; preds = %.lr.ph82
  %12 = shl i64 %9, 3
  %.pre = load i64, ptr %11, align 8, !tbaa !24
  %13 = shl i64 %9, 3
  %14 = shl i64 %9, 3
  %15 = shl i64 %.fr, 2
  %16 = or i64 %13, %15
  %17 = icmp slt i64 %16, 0
  br label %.lr.ph.us

.lr.ph82.split.preheader:                         ; preds = %.lr.ph82
  %.pre102 = load i64, ptr %11, align 8, !tbaa !24
  br label %.lr.ph82.split

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %18 = phi i64 [ %36, %._crit_edge.us ], [ %.pre, %.lr.ph.us.preheader ]
  %.03979.us = phi ptr [ %35, %._crit_edge.us ], [ %1, %.lr.ph.us.preheader ]
  %.04178.us = phi ptr [ %.us-phi76.us, %._crit_edge.us ], [ %2, %.lr.ph.us.preheader ]
  %.04377.us = phi i64 [ %37, %._crit_edge.us ], [ 0, %.lr.ph.us.preheader ]
  %.04377.us.fr = freeze i64 %.04377.us
  %19 = add i64 %18, %.04377.us.fr
  %20 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %5, i64 noundef %19)
  %21 = sub i64 %20, %.04377.us.fr
  %.not90 = icmp eq i64 %20, %.04377.us.fr
  br i1 %.not90, label %.lr.ph.split.us86, label %.preheader48.lr.ph.us.us.preheader

.preheader48.lr.ph.us.us.preheader:               ; preds = %.lr.ph.us
  %22 = mul i64 %12, %21
  %23 = sub i64 %20, %.04377.us.fr
  %24 = shl i64 %23, 3
  %25 = mul i64 %9, %24
  %26 = xor i64 %.04377.us.fr, -1
  %27 = add i64 %20, %26
  %28 = mul i64 %13, %27
  %29 = mul i64 %15, %27
  br label %.preheader48.lr.ph.us.us

.lr.ph.split.us86:                                ; preds = %.lr.ph.us, %.lr.ph.split.us86
  %.04065.us84 = phi i64 [ %32, %.lr.ph.split.us86 ], [ 0, %.lr.ph.us ]
  %30 = sub i64 %.fr, %.04065.us84
  %31 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %10, i64 noundef %30)
  %32 = add i64 %.04065.us84, %10
  %33 = icmp ult i64 %32, %.fr
  br i1 %33, label %.lr.ph.split.us86, label %._crit_edge.us, !llvm.loop !25

._crit_edge.us:                                   ; preds = %._crit_edge54.us.us, %.lr.ph.split.us86
  %.us-phi76.us = phi ptr [ %.04178.us, %.lr.ph.split.us86 ], [ %.us-phi.us.us, %._crit_edge54.us.us ]
  %34 = mul i64 %21, %.fr
  %35 = getelementptr inbounds float, ptr %.03979.us, i64 %34
  %36 = load i64, ptr %11, align 8, !tbaa !24
  %37 = add i64 %36, %.04377.us.fr
  %38 = icmp ult i64 %37, %5
  br i1 %38, label %.lr.ph.us, label %._crit_edge83, !llvm.loop !27

.preheader48.lr.ph.us.us:                         ; preds = %.preheader48.lr.ph.us.us.preheader, %._crit_edge54.us.us
  %indvar = phi i64 [ 0, %.preheader48.lr.ph.us.us.preheader ], [ %indvar.next, %._crit_edge54.us.us ]
  %.04065.us.us = phi i64 [ 0, %.preheader48.lr.ph.us.us.preheader ], [ %47, %._crit_edge54.us.us ]
  %.14264.us.us = phi ptr [ %.04178.us, %.preheader48.lr.ph.us.us.preheader ], [ %.us-phi.us.us, %._crit_edge54.us.us ]
  %39 = mul i64 %14, %indvar
  %scevgep109 = getelementptr i8, ptr %.03979.us, i64 %39
  %40 = sub i64 %.fr, %.04065.us.us
  %41 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %10, i64 noundef %40)
  %.not91 = icmp eq i64 %41, 0
  br i1 %.not91, label %.preheader48.lr.ph.split.us72.us, label %.preheader48.us.us.us.preheader

.preheader48.us.us.us.preheader:                  ; preds = %.preheader48.lr.ph.us.us
  %42 = add i64 %29, %39
  %scevgep110 = getelementptr i8, ptr %.03979.us, i64 %42
  %43 = shl i64 %41, 2
  %44 = sub i64 %12, %43
  %45 = icmp ult i64 %41, %10
  %scevgep107 = getelementptr i8, ptr %.14264.us.us, i64 %28
  %scevgep108 = getelementptr i8, ptr %scevgep107, i64 %43
  %scevgep111 = getelementptr i8, ptr %scevgep110, i64 %43
  %min.iters.check = icmp ult i64 %41, 8
  %bound0 = icmp ult ptr %.14264.us.us, %scevgep111
  %bound1 = icmp ult ptr %scevgep109, %scevgep108
  %found.conflict = and i1 %bound0, %bound1
  %46 = or i1 %found.conflict, %17
  %n.vec = and i64 %41, -8
  %cmp.n = icmp eq i64 %41, %n.vec
  %xtraiter = and i64 %41, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br label %.preheader48.us.us.us

.preheader48.lr.ph.split.us72.us:                 ; preds = %.preheader48.lr.ph.us.us
  br i1 %.not88, label %.preheader48.us67.us.preheader, label %.preheader48.us56.us.us.preheader

.preheader48.us56.us.us.preheader:                ; preds = %.preheader48.lr.ph.split.us72.us
  tail call void @llvm.memset.p0.i64(ptr align 4 %.14264.us.us, i8 0, i64 %22, i1 false), !tbaa !28
  %scevgep100 = getelementptr i8, ptr %.14264.us.us, i64 %25
  br label %._crit_edge54.us.us

.preheader48.us67.us.preheader:                   ; preds = %.preheader48.lr.ph.split.us72.us
  %scevgep101 = getelementptr i8, ptr %.14264.us.us, i64 %25
  br label %._crit_edge54.us.us

._crit_edge54.us.us:                              ; preds = %._crit_edge.us.us.us, %.preheader48.us56.us.us.preheader, %.preheader48.us67.us.preheader
  %.us-phi.us.us = phi ptr [ %scevgep101, %.preheader48.us67.us.preheader ], [ %scevgep100, %.preheader48.us56.us.us.preheader ], [ %66, %._crit_edge.us.us.us ]
  %47 = add i64 %.04065.us.us, %10
  %48 = icmp ult i64 %47, %.fr
  %indvar.next = add i64 %indvar, 1
  br i1 %48, label %.preheader48.lr.ph.us.us, label %._crit_edge.us, !llvm.loop !25

.preheader48.us.us.us:                            ; preds = %.preheader48.us.us.us.preheader, %._crit_edge.us.us.us
  %.03853.us.us.us = phi i64 [ %67, %._crit_edge.us.us.us ], [ 0, %.preheader48.us.us.us.preheader ]
  %.252.us.us.us = phi ptr [ %66, %._crit_edge.us.us.us ], [ %.14264.us.us, %.preheader48.us.us.us.preheader ]
  %49 = mul i64 %12, %.03853.us.us.us
  %50 = add i64 %43, %49
  %scevgep = getelementptr i8, ptr %.14264.us.us, i64 %50
  %51 = mul i64 %.03853.us.us.us, %.fr
  %52 = add i64 %51, %.04065.us.us
  %brmerge = select i1 %min.iters.check, i1 true, i1 %46
  br i1 %brmerge, label %scalar.ph.preheader, label %vector.body

scalar.ph.preheader:                              ; preds = %.preheader48.us.us.us, %middle.block
  %.049.us.us.us.ph = phi i64 [ 0, %.preheader48.us.us.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %.049.us.us.us.prol = phi i64 [ %57, %scalar.ph.prol ], [ %.049.us.us.us.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %53 = add i64 %52, %.049.us.us.us.prol
  %54 = getelementptr inbounds float, ptr %.03979.us, i64 %53
  %55 = load float, ptr %54, align 4, !tbaa !28
  %56 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %.049.us.us.us.prol
  store float %55, ptr %56, align 4, !tbaa !28
  %57 = add nuw i64 %.049.us.us.us.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !30

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %.049.us.us.us.unr = phi i64 [ %.049.us.us.us.ph, %scalar.ph.preheader ], [ %57, %scalar.ph.prol ]
  %58 = sub i64 %.049.us.us.us.ph, %41
  %59 = icmp ugt i64 %58, -4
  br i1 %59, label %..preheader_crit_edge.us.us.us, label %scalar.ph

vector.body:                                      ; preds = %.preheader48.us.us.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader48.us.us.us ]
  %60 = add i64 %52, %index
  %61 = getelementptr inbounds float, ptr %.03979.us, i64 %60
  %62 = getelementptr inbounds i8, ptr %61, i64 16
  %wide.load = load <4 x float>, ptr %61, align 4, !tbaa !28, !alias.scope !32
  %wide.load113 = load <4 x float>, ptr %62, align 4, !tbaa !28, !alias.scope !32
  %63 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %index
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  store <4 x float> %wide.load, ptr %63, align 4, !tbaa !28, !alias.scope !35, !noalias !32
  store <4 x float> %wide.load113, ptr %64, align 4, !tbaa !28, !alias.scope !35, !noalias !32
  %index.next = add nuw i64 %index, 8
  %65 = icmp eq i64 %index.next, %n.vec
  br i1 %65, label %middle.block, label %vector.body, !llvm.loop !37

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %..preheader_crit_edge.us.us.us, label %scalar.ph.preheader

._crit_edge.us.us.us:                             ; preds = %.lr.ph51.us.us.us.preheader, %..preheader_crit_edge.us.us.us
  %66 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %10
  %67 = add nuw i64 %.03853.us.us.us, 1
  %exitcond99.not = icmp eq i64 %67, %21
  br i1 %exitcond99.not, label %._crit_edge54.us.us, label %.preheader48.us.us.us, !llvm.loop !40

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %.049.us.us.us = phi i64 [ %87, %scalar.ph ], [ %.049.us.us.us.unr, %scalar.ph.prol.loopexit ]
  %68 = add i64 %52, %.049.us.us.us
  %69 = getelementptr inbounds float, ptr %.03979.us, i64 %68
  %70 = load float, ptr %69, align 4, !tbaa !28
  %71 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %.049.us.us.us
  store float %70, ptr %71, align 4, !tbaa !28
  %72 = add nuw i64 %.049.us.us.us, 1
  %73 = add i64 %52, %72
  %74 = getelementptr inbounds float, ptr %.03979.us, i64 %73
  %75 = load float, ptr %74, align 4, !tbaa !28
  %76 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %72
  store float %75, ptr %76, align 4, !tbaa !28
  %77 = add nuw i64 %.049.us.us.us, 2
  %78 = add i64 %52, %77
  %79 = getelementptr inbounds float, ptr %.03979.us, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !28
  %81 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %77
  store float %80, ptr %81, align 4, !tbaa !28
  %82 = add nuw i64 %.049.us.us.us, 3
  %83 = add i64 %52, %82
  %84 = getelementptr inbounds float, ptr %.03979.us, i64 %83
  %85 = load float, ptr %84, align 4, !tbaa !28
  %86 = getelementptr inbounds float, ptr %.252.us.us.us, i64 %82
  store float %85, ptr %86, align 4, !tbaa !28
  %87 = add nuw i64 %.049.us.us.us, 4
  %exitcond.not.3 = icmp eq i64 %87, %41
  br i1 %exitcond.not.3, label %..preheader_crit_edge.us.us.us, label %scalar.ph, !llvm.loop !41

..preheader_crit_edge.us.us.us:                   ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  br i1 %45, label %.lr.ph51.us.us.us.preheader, label %._crit_edge.us.us.us

.lr.ph51.us.us.us.preheader:                      ; preds = %..preheader_crit_edge.us.us.us
  tail call void @llvm.memset.p0.i64(ptr align 4 %scevgep, i8 0, i64 %44, i1 false), !tbaa !28
  br label %._crit_edge.us.us.us

._crit_edge83:                                    ; preds = %._crit_edge.us, %.lr.ph82.split, %3
  ret void

.lr.ph82.split:                                   ; preds = %.lr.ph82.split.preheader, %.lr.ph82.split
  %88 = phi i64 [ %91, %.lr.ph82.split ], [ %.pre102, %.lr.ph82.split.preheader ]
  %.04377 = phi i64 [ %92, %.lr.ph82.split ], [ 0, %.lr.ph82.split.preheader ]
  %89 = add i64 %88, %.04377
  %90 = tail call noundef i64 @_ZN4Simd3MinImEET_S1_S1_(i64 noundef %5, i64 noundef %89)
  %91 = load i64, ptr %11, align 8, !tbaa !24
  %92 = add i64 %91, %.04377
  %93 = icmp ult i64 %92, %5
  br i1 %93, label %.lr.ph82.split, label %._crit_edge83, !llvm.loop !27
}

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

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 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: 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 0}
!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 32}
!14 = !{!15, !7, i64 904}
!15 = !{!"_ZTSN4Simd4Base25SynetMergedConvolution32fE", !16, i64 0, !8, i64 624, !7, i64 656, !7, i64 664, !8, i64 672, !8, i64 688, !8, i64 736, !8, i64 784, !8, i64 832, !8, i64 856, !8, i64 880, !7, i64 904, !7, i64 912, !8, i64 920, !8, i64 936, !8, i64 952, !8, i64 968}
!16 = !{!"_ZTSN4Simd25SynetMergedConvolution32fE", !17, i64 0, !18, i64 8, !20, i64 576, !22, i64 592}
!17 = !{!"_ZTSN4Simd9DeletableE"}
!18 = !{!"_ZTSN4Simd13MergConvParamE", !8, i64 0, !7, i64 552, !19, i64 560}
!19 = !{!"_ZTS8SimdBool", !8, i64 0}
!20 = !{!"_ZTSN4Simd5ArrayIfEE", !21, i64 0, !7, i64 8}
!21 = !{!"any pointer", !8, i64 0}
!22 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !23, i64 0, !7, i64 8, !8, i64 16}
!23 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !21, i64 0}
!24 = !{!15, !7, i64 912}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = !{!29, !29, i64 0}
!29 = !{!"float", !8, i64 0}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.unroll.disable"}
!32 = !{!33}
!33 = distinct !{!33, !34}
!34 = distinct !{!34, !"LVerDomain"}
!35 = !{!36}
!36 = distinct !{!36, !34}
!37 = distinct !{!37, !26, !38, !39}
!38 = !{!"llvm.loop.isvectorized", i32 1}
!39 = !{!"llvm.loop.unroll.runtime.disable"}
!40 = distinct !{!40, !26}
!41 = distinct !{!41, !26, !38}


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