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

; 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"

%"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 }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4Simd4Base23SynetConvolution32fInitEmPK25SimdConvolutionParameters(i64 noundef %0, ptr noundef %1) #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca ptr, align 8
  %6 = alloca %"struct.Simd::ConvParam", align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  store i64 %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 184, ptr %6) #6
  %10 = load i64, ptr %4, align 8, !tbaa !5
  %11 = load ptr, ptr %5, align 8, !tbaa !9
  call void @_ZN4Simd9ConvParamC2EmPK25SimdConvolutionParameters26SimdSynetCompatibilityType(ptr noundef nonnull align 8 dereferenceable(180) %6, i64 noundef %10, ptr noundef %11, i32 noundef 0)
  %12 = call noundef zeroext i1 @_ZN4Simd9ConvParam5ValidE18SimdTensorDataTypeS1_(ptr noundef nonnull align 8 dereferenceable(180) %6, i32 noundef 0, i32 noundef 0)
  br i1 %12, label %14, label %13

13:                                               ; preds = %2
  store ptr null, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

14:                                               ; preds = %2
  %15 = call noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProduct10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %15, label %16, label %23

16:                                               ; preds = %14
  %17 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 480) #7
  invoke void @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProductC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(480) %17, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %18 unwind label %19

18:                                               ; preds = %16
  store ptr %17, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

19:                                               ; preds = %16
  %20 = landingpad { ptr, i32 }
          cleanup
  %21 = extractvalue { ptr, i32 } %20, 0
  store ptr %21, ptr %8, align 8
  %22 = extractvalue { ptr, i32 } %20, 1
  store i32 %22, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %17, i64 noundef 480) #8
  br label %86

23:                                               ; preds = %14
  %24 = call noundef zeroext i1 @_ZN4Simd4Base27SynetConvolution32fWinograd10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %24, label %25, label %32

25:                                               ; preds = %23
  %26 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 624) #7
  invoke void @_ZN4Simd4Base27SynetConvolution32fWinogradC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(624) %26, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %27 unwind label %28

27:                                               ; preds = %25
  store ptr %26, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

28:                                               ; preds = %25
  %29 = landingpad { ptr, i32 }
          cleanup
  %30 = extractvalue { ptr, i32 } %29, 0
  store ptr %30, ptr %8, align 8
  %31 = extractvalue { ptr, i32 } %29, 1
  store i32 %31, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %26, i64 noundef 624) #8
  br label %86

32:                                               ; preds = %23
  %33 = call noundef zeroext i1 @_ZN4Simd4Base25SynetConvolution32fGemmNT10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %33, label %34, label %41

34:                                               ; preds = %32
  %35 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 496) #7
  invoke void @_ZN4Simd4Base25SynetConvolution32fGemmNTC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(496) %35, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %36 unwind label %37

36:                                               ; preds = %34
  store ptr %35, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

37:                                               ; preds = %34
  %38 = landingpad { ptr, i32 }
          cleanup
  %39 = extractvalue { ptr, i32 } %38, 0
  store ptr %39, ptr %8, align 8
  %40 = extractvalue { ptr, i32 } %38, 1
  store i32 %40, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %35, i64 noundef 496) #8
  br label %86

41:                                               ; preds = %32
  %42 = call noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fDirectNchw10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %42, label %43, label %50

43:                                               ; preds = %41
  %44 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 512) #7
  invoke void @_ZN4Simd4Base29SynetConvolution32fDirectNchwC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(512) %44, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %45 unwind label %46

45:                                               ; preds = %43
  store ptr %44, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

46:                                               ; preds = %43
  %47 = landingpad { ptr, i32 }
          cleanup
  %48 = extractvalue { ptr, i32 } %47, 0
  store ptr %48, ptr %8, align 8
  %49 = extractvalue { ptr, i32 } %47, 1
  store i32 %49, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %44, i64 noundef 512) #8
  br label %86

50:                                               ; preds = %41
  %51 = call noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fNhwcDirect10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %51, label %52, label %59

52:                                               ; preds = %50
  %53 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 664) #7
  invoke void @_ZN4Simd4Base29SynetConvolution32fNhwcDirectC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(664) %53, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %54 unwind label %55

54:                                               ; preds = %52
  store ptr %53, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

55:                                               ; preds = %52
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %8, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %53, i64 noundef 664) #8
  br label %86

59:                                               ; preds = %50
  %60 = call noundef zeroext i1 @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwise10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %60, label %61, label %68

61:                                               ; preds = %59
  %62 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 472) #7
  invoke void @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwiseC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(472) %62, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %63 unwind label %64

63:                                               ; preds = %61
  store ptr %62, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

64:                                               ; preds = %61
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %8, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %62, i64 noundef 472) #8
  br label %86

68:                                               ; preds = %59
  %69 = call noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x210PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %6)
  br i1 %69, label %70, label %77

70:                                               ; preds = %68
  %71 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 504) #7
  invoke void @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x2C1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(504) %71, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %72 unwind label %73

72:                                               ; preds = %70
  store ptr %71, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

73:                                               ; preds = %70
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %8, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %71, i64 noundef 504) #8
  br label %86

77:                                               ; preds = %68
  %78 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 560) #7
  invoke void @_ZN4Simd4Base25SynetConvolution32fGemmNNC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(560) %78, ptr noundef nonnull align 8 dereferenceable(180) %6)
          to label %79 unwind label %80

79:                                               ; preds = %77
  store ptr %78, ptr %3, align 8
  store i32 1, ptr %7, align 4
  br label %84

80:                                               ; preds = %77
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %8, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %9, align 4
  call void @_ZdlPvm(ptr noundef %78, i64 noundef 560) #8
  br label %86

84:                                               ; preds = %79, %72, %63, %54, %45, %36, %27, %18, %13
  call void @llvm.lifetime.end.p0(i64 184, ptr %6) #6
  %85 = load ptr, ptr %3, align 8
  ret ptr %85

86:                                               ; preds = %80, %73, %64, %55, %46, %37, %28, %19
  call void @llvm.lifetime.end.p0(i64 184, ptr %6) #6
  br label %87

87:                                               ; preds = %86
  %88 = load ptr, ptr %8, align 8
  %89 = load i32, ptr %9, align 4
  %90 = insertvalue { ptr, i32 } poison, ptr %88, 0
  %91 = insertvalue { ptr, i32 } %90, i32 %89, 1
  resume { ptr, i32 } %91
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9ConvParamC2EmPK25SimdConvolutionParameters26SimdSynetCompatibilityType(ptr noundef nonnull align 8 dereferenceable(180), i64 noundef, ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Simd9ConvParam5ValidE18SimdTensorDataTypeS1_(ptr noundef nonnull align 8 dereferenceable(180), i32 noundef, i32 noundef) #2 align 2

declare noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProduct10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #4

declare void @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProductC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(480), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #5

declare noundef zeroext i1 @_ZN4Simd4Base27SynetConvolution32fWinograd10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

declare void @_ZN4Simd4Base27SynetConvolution32fWinogradC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(624), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base25SynetConvolution32fGemmNT10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

declare void @_ZN4Simd4Base25SynetConvolution32fGemmNTC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(496), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fDirectNchw10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

declare void @_ZN4Simd4Base29SynetConvolution32fDirectNchwC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fNhwcDirect10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

declare void @_ZN4Simd4Base29SynetConvolution32fNhwcDirectC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(664), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwise10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

declare void @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwiseC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(472), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x210PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) #3

declare void @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x2C1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(504), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare void @_ZN4Simd4Base25SynetConvolution32fGemmNNC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

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

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 = { nocallback nofree nosync 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 = { "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 = { nobuiltin allocsize(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 #5 = { nobuiltin nounwind "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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}


; 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"

%"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 }

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN4Simd4Base23SynetConvolution32fInitEmPK25SimdConvolutionParameters(i64 noundef %0, ptr noundef %1) local_unnamed_addr #0 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"struct.Simd::ConvParam", align 8
  call void @llvm.lifetime.start.p0(i64 184, ptr nonnull %3) #6
  call void @_ZN4Simd9ConvParamC2EmPK25SimdConvolutionParameters26SimdSynetCompatibilityType(ptr noundef nonnull align 8 dereferenceable(180) %3, i64 noundef %0, ptr noundef %1, i32 noundef 0)
  %4 = call noundef zeroext i1 @_ZN4Simd9ConvParam5ValidE18SimdTensorDataTypeS1_(ptr noundef nonnull align 8 dereferenceable(180) %3, i32 noundef 0, i32 noundef 0)
  br i1 %4, label %5, label %51

5:                                                ; preds = %2
  %6 = call noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProduct10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %6, label %7, label %11

7:                                                ; preds = %5
  %8 = call noalias noundef nonnull dereferenceable(480) ptr @_Znwm(i64 noundef 480) #7
  invoke void @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProductC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(480) %8, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %9

9:                                                ; preds = %7
  %10 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %8, i64 noundef 480) #8
  br label %52

11:                                               ; preds = %5
  %12 = call noundef zeroext i1 @_ZN4Simd4Base27SynetConvolution32fWinograd10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %12, label %13, label %17

13:                                               ; preds = %11
  %14 = call noalias noundef nonnull dereferenceable(624) ptr @_Znwm(i64 noundef 624) #7
  invoke void @_ZN4Simd4Base27SynetConvolution32fWinogradC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(624) %14, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %15

15:                                               ; preds = %13
  %16 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %14, i64 noundef 624) #8
  br label %52

17:                                               ; preds = %11
  %18 = call noundef zeroext i1 @_ZN4Simd4Base25SynetConvolution32fGemmNT10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %18, label %19, label %23

19:                                               ; preds = %17
  %20 = call noalias noundef nonnull dereferenceable(496) ptr @_Znwm(i64 noundef 496) #7
  invoke void @_ZN4Simd4Base25SynetConvolution32fGemmNTC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(496) %20, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %21

21:                                               ; preds = %19
  %22 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %20, i64 noundef 496) #8
  br label %52

23:                                               ; preds = %17
  %24 = call noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fDirectNchw10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %24, label %25, label %29

25:                                               ; preds = %23
  %26 = call noalias noundef nonnull dereferenceable(512) ptr @_Znwm(i64 noundef 512) #7
  invoke void @_ZN4Simd4Base29SynetConvolution32fDirectNchwC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(512) %26, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %27

27:                                               ; preds = %25
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %26, i64 noundef 512) #8
  br label %52

29:                                               ; preds = %23
  %30 = call noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fNhwcDirect10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %30, label %31, label %35

31:                                               ; preds = %29
  %32 = call noalias noundef nonnull dereferenceable(664) ptr @_Znwm(i64 noundef 664) #7
  invoke void @_ZN4Simd4Base29SynetConvolution32fNhwcDirectC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(664) %32, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %33

33:                                               ; preds = %31
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %32, i64 noundef 664) #8
  br label %52

35:                                               ; preds = %29
  %36 = call noundef zeroext i1 @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwise10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %36, label %37, label %41

37:                                               ; preds = %35
  %38 = call noalias noundef nonnull dereferenceable(472) ptr @_Znwm(i64 noundef 472) #7
  invoke void @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwiseC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(472) %38, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %39

39:                                               ; preds = %37
  %40 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %38, i64 noundef 472) #8
  br label %52

41:                                               ; preds = %35
  %42 = call noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x210PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180) %3)
  br i1 %42, label %43, label %47

43:                                               ; preds = %41
  %44 = call noalias noundef nonnull dereferenceable(504) ptr @_Znwm(i64 noundef 504) #7
  invoke void @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x2C1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(504) %44, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %45

45:                                               ; preds = %43
  %46 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %44, i64 noundef 504) #8
  br label %52

47:                                               ; preds = %41
  %48 = call noalias noundef nonnull dereferenceable(560) ptr @_Znwm(i64 noundef 560) #7
  invoke void @_ZN4Simd4Base25SynetConvolution32fGemmNNC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(560) %48, ptr noundef nonnull align 8 dereferenceable(180) %3)
          to label %51 unwind label %49

49:                                               ; preds = %47
  %50 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %48, i64 noundef 560) #8
  br label %52

51:                                               ; preds = %47, %43, %37, %31, %25, %19, %13, %7, %2
  %.05 = phi ptr [ null, %2 ], [ %8, %7 ], [ %14, %13 ], [ %20, %19 ], [ %26, %25 ], [ %32, %31 ], [ %38, %37 ], [ %44, %43 ], [ %48, %47 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #6
  ret ptr %.05

52:                                               ; preds = %49, %45, %39, %33, %27, %21, %15, %9
  %.pn = phi { ptr, i32 } [ %10, %9 ], [ %16, %15 ], [ %22, %21 ], [ %28, %27 ], [ %34, %33 ], [ %40, %39 ], [ %46, %45 ], [ %50, %49 ]
  call void @llvm.lifetime.end.p0(i64 184, ptr nonnull %3) #6
  resume { ptr, i32 } %.pn
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN4Simd9ConvParamC2EmPK25SimdConvolutionParameters26SimdSynetCompatibilityType(ptr noundef nonnull align 8 dereferenceable(180), i64 noundef, ptr noundef, i32 noundef) unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN4Simd9ConvParam5ValidE18SimdTensorDataTypeS1_(ptr noundef nonnull align 8 dereferenceable(180), i32 noundef, i32 noundef) local_unnamed_addr #2 align 2

declare noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProduct10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #4

declare void @_ZN4Simd4Base38SynetConvolution32fDepthwiseDotProductC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(480), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #5

declare noundef zeroext i1 @_ZN4Simd4Base27SynetConvolution32fWinograd10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

declare void @_ZN4Simd4Base27SynetConvolution32fWinogradC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(624), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base25SynetConvolution32fGemmNT10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

declare void @_ZN4Simd4Base25SynetConvolution32fGemmNTC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(496), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fDirectNchw10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

declare void @_ZN4Simd4Base29SynetConvolution32fDirectNchwC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base29SynetConvolution32fNhwcDirect10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

declare void @_ZN4Simd4Base29SynetConvolution32fNhwcDirectC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(664), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwise10PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

declare void @_ZN4Simd4Base32SynetConvolution32fNhwcDepthwiseC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(472), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare noundef zeroext i1 @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x210PreferableERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(180)) local_unnamed_addr #3

declare void @_ZN4Simd4Base38SynetConvolution32fNhwcGroupedBlock1x2C1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(504), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

declare void @_ZN4Simd4Base25SynetConvolution32fGemmNNC1ERKNS_9ConvParamE(ptr noundef nonnull align 8 dereferenceable(560), ptr noundef nonnull align 8 dereferenceable(180)) unnamed_addr #3

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

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 nocallback nofree nosync 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 = { "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 = { nobuiltin allocsize(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 #5 = { nobuiltin nounwind "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 #6 = { nounwind }
attributes #7 = { builtin allocsize(0) }
attributes #8 = { builtin 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)"}


; Effective O3 passes: CorrelatedValuePropagationPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass