; LLVM IR from huawei-noah/bolt :: compute/tensor/src (matmul)

; 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.TensorDesc = type { i32, i32, i32, [20 x 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: 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 uwtable
define dso_local noundef i32 @_Z27mmm_infer_forward_tmp_bytesPjjj10DataFormatS0_10TensorDescS1_4Arch(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr noundef byval(%struct.TensorDesc) align 8 %5, ptr noundef byval(%struct.TensorDesc) align 8 %6, i32 noundef %7) #2 {
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca %struct.TensorDesc, align 4
  %17 = alloca %struct.TensorDesc, align 4
  %18 = alloca %struct.TensorDesc, align 8
  %19 = alloca %struct.TensorDesc, align 8
  %20 = alloca %struct.TensorDesc, align 4
  %21 = alloca %struct.TensorDesc, align 4
  %22 = alloca %struct.TensorDesc, align 8
  %23 = alloca %struct.TensorDesc, align 8
  %24 = alloca %struct.TensorDesc, align 4
  %25 = alloca %struct.TensorDesc, align 4
  %26 = alloca %struct.TensorDesc, align 8
  %27 = alloca %struct.TensorDesc, align 8
  store ptr %0, ptr %9, align 8, !tbaa !5
  store i32 %1, ptr %10, align 4, !tbaa !9
  store i32 %2, ptr %11, align 4, !tbaa !9
  store i32 %3, ptr %12, align 4, !tbaa !11
  store i32 %4, ptr %13, align 4, !tbaa !11
  store i32 %7, ptr %14, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  store i32 51, ptr %15, align 4, !tbaa !15
  %28 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 3
  %29 = load i32, ptr %10, align 4, !tbaa !9
  %30 = sub i32 1, %29
  %31 = zext i32 %30 to i64
  %32 = getelementptr inbounds [20 x i32], ptr %28, i64 0, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp eq i32 %33, 1
  br i1 %34, label %35, label %58

35:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 92, ptr %16) #5
  %36 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 0
  %37 = load i32, ptr %36, align 8, !tbaa !17
  %38 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 3
  %39 = load i32, ptr %10, align 4, !tbaa !9
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds [20 x i32], ptr %38, i64 0, i64 %40
  %42 = load i32, ptr %41, align 4, !tbaa !9
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %16, i32 noundef %37, i32 noundef %42)
  call void @llvm.lifetime.start.p0(i64 92, ptr %17) #5
  %43 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 0
  %44 = load i32, ptr %43, align 8, !tbaa !17
  %45 = load i32, ptr %13, align 4, !tbaa !11
  %46 = icmp eq i32 %45, 13
  %47 = zext i1 %46 to i64
  %48 = select i1 %46, i32 14, i32 13
  %49 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 3
  %50 = getelementptr inbounds [20 x i32], ptr %49, i64 0, i64 1
  %51 = load i32, ptr %50, align 4, !tbaa !9
  %52 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 3
  %53 = getelementptr inbounds [20 x i32], ptr %52, i64 0, i64 0
  %54 = load i32, ptr %53, align 4, !tbaa !9
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %17, i32 noundef %44, i32 noundef %48, i32 noundef %51, i32 noundef %54)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %18, ptr align 4 %17, i64 92, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %19, ptr align 4 %16, i64 92, i1 false), !tbaa.struct !20
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = load i32, ptr %14, align 4, !tbaa !13
  %57 = call i32 @matrix_vector_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8 %18, ptr noundef byval(%struct.TensorDesc) align 8 %19, ptr noundef %55, i32 noundef %56)
  store i32 %57, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 92, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 92, ptr %16) #5
  br label %109

58:                                               ; preds = %8
  %59 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 3
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = sub i32 1, %60
  %62 = zext i32 %61 to i64
  %63 = getelementptr inbounds [20 x i32], ptr %59, i64 0, i64 %62
  %64 = load i32, ptr %63, align 4, !tbaa !9
  %65 = icmp eq i32 %64, 1
  br i1 %65, label %66, label %86

66:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 92, ptr %20) #5
  %67 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !17
  %69 = load i32, ptr %12, align 4, !tbaa !11
  %70 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 3
  %71 = getelementptr inbounds [20 x i32], ptr %70, i64 0, i64 1
  %72 = load i32, ptr %71, align 4, !tbaa !9
  %73 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 3
  %74 = getelementptr inbounds [20 x i32], ptr %73, i64 0, i64 0
  %75 = load i32, ptr %74, align 4, !tbaa !9
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %20, i32 noundef %68, i32 noundef %69, i32 noundef %72, i32 noundef %75)
  call void @llvm.lifetime.start.p0(i64 92, ptr %21) #5
  %76 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !17
  %78 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 3
  %79 = load i32, ptr %11, align 4, !tbaa !9
  %80 = zext i32 %79 to i64
  %81 = getelementptr inbounds [20 x i32], ptr %78, i64 0, i64 %80
  %82 = load i32, ptr %81, align 4, !tbaa !9
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %21, i32 noundef %77, i32 noundef %82)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %22, ptr align 4 %20, i64 92, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %23, ptr align 4 %21, i64 92, i1 false), !tbaa.struct !20
  %83 = load ptr, ptr %9, align 8, !tbaa !5
  %84 = load i32, ptr %14, align 4, !tbaa !13
  %85 = call i32 @matrix_vector_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8 %22, ptr noundef byval(%struct.TensorDesc) align 8 %23, ptr noundef %83, i32 noundef %84)
  store i32 %85, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 92, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 92, ptr %20) #5
  br label %108

86:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 92, ptr %24) #5
  %87 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 0
  %88 = load i32, ptr %87, align 8, !tbaa !17
  %89 = load i32, ptr %12, align 4, !tbaa !11
  %90 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 3
  %91 = getelementptr inbounds [20 x i32], ptr %90, i64 0, i64 1
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = getelementptr inbounds %struct.TensorDesc, ptr %5, i32 0, i32 3
  %94 = getelementptr inbounds [20 x i32], ptr %93, i64 0, i64 0
  %95 = load i32, ptr %94, align 4, !tbaa !9
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %24, i32 noundef %88, i32 noundef %89, i32 noundef %92, i32 noundef %95)
  call void @llvm.lifetime.start.p0(i64 92, ptr %25) #5
  %96 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 0
  %97 = load i32, ptr %96, align 8, !tbaa !17
  %98 = load i32, ptr %13, align 4, !tbaa !11
  %99 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 3
  %100 = getelementptr inbounds [20 x i32], ptr %99, i64 0, i64 1
  %101 = load i32, ptr %100, align 4, !tbaa !9
  %102 = getelementptr inbounds %struct.TensorDesc, ptr %6, i32 0, i32 3
  %103 = getelementptr inbounds [20 x i32], ptr %102, i64 0, i64 0
  %104 = load i32, ptr %103, align 4, !tbaa !9
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind writable sret(%struct.TensorDesc) align 4 %25, i32 noundef %97, i32 noundef %98, i32 noundef %101, i32 noundef %104)
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %26, ptr align 4 %24, i64 92, i1 false), !tbaa.struct !20
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %27, ptr align 4 %25, i64 92, i1 false), !tbaa.struct !20
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = load i32, ptr %14, align 4, !tbaa !13
  %107 = call i32 @matrix_matrix_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8 %26, ptr noundef byval(%struct.TensorDesc) align 8 %27, ptr noundef %105, i32 noundef %106)
  store i32 %107, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 92, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 92, ptr %24) #5
  br label %108

108:                                              ; preds = %86, %66
  br label %109

109:                                              ; preds = %108, %35
  %110 = load i32, ptr %15, align 4, !tbaa !15
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  ret i32 %110
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8tensor1d8DataTypej(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #3

declare i32 @matrix_vector_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef) #4

declare i32 @matrix_matrix_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree 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 = { inlinehint 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 = { "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 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"_ZTS10DataFormat", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"_ZTS4Arch", !7, i64 0}
!15 = !{!16, !16, i64 0}
!16 = !{!"_ZTS2EE", !7, i64 0}
!17 = !{!18, !19, i64 0}
!18 = !{!"_ZTS10TensorDesc", !19, i64 0, !12, i64 4, !10, i64 8, !7, i64 12}
!19 = !{!"_ZTS8DataType", !7, i64 0}
!20 = !{i64 0, i64 4, !21, i64 4, i64 4, !11, i64 8, i64 4, !9, i64 12, i64 80, !22}
!21 = !{!19, !19, i64 0}
!22 = !{!7, !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.TensorDesc = type { i32, i32, i32, [20 x i32] }

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z27mmm_infer_forward_tmp_bytesPjjj10DataFormatS0_10TensorDescS1_4Arch(ptr noundef %0, i32 noundef %1, i32 noundef %2, i32 noundef %3, i32 noundef %4, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %5, ptr nocapture noundef readonly byval(%struct.TensorDesc) align 8 %6, i32 noundef %7) local_unnamed_addr #1 {
  %9 = alloca %struct.TensorDesc, align 8
  %10 = alloca %struct.TensorDesc, align 8
  %11 = alloca %struct.TensorDesc, align 8
  %12 = alloca %struct.TensorDesc, align 8
  %13 = alloca %struct.TensorDesc, align 8
  %14 = alloca %struct.TensorDesc, align 8
  %15 = getelementptr inbounds i8, ptr %5, i64 12
  %16 = sub i32 1, %1
  %17 = zext i32 %16 to i64
  %18 = getelementptr inbounds [20 x i32], ptr %15, i64 0, i64 %17
  %19 = load i32, ptr %18, align 4, !tbaa !5
  %20 = icmp eq i32 %19, 1
  br i1 %20, label %21, label %34

21:                                               ; preds = %8
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %9) #4
  %22 = load i32, ptr %5, align 8, !tbaa !9
  %23 = zext i32 %1 to i64
  %24 = getelementptr inbounds [20 x i32], ptr %15, i64 0, i64 %23
  %25 = load i32, ptr %24, align 4, !tbaa !5
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %9, i32 noundef %22, i32 noundef %25)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %10) #4
  %26 = load i32, ptr %6, align 8, !tbaa !9
  %27 = icmp eq i32 %4, 13
  %28 = select i1 %27, i32 14, i32 13
  %29 = getelementptr inbounds i8, ptr %6, i64 12
  %30 = getelementptr inbounds i8, ptr %6, i64 16
  %31 = load i32, ptr %30, align 8, !tbaa !5
  %32 = load i32, ptr %29, align 4, !tbaa !5
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %10, i32 noundef %26, i32 noundef %28, i32 noundef %31, i32 noundef %32)
  %33 = call i32 @matrix_vector_multiply_tmp_bytes(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %10, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %9, ptr noundef %0, i32 noundef %7)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %9) #4
  br label %60

34:                                               ; preds = %8
  %35 = getelementptr inbounds i8, ptr %6, i64 12
  %36 = sub i32 1, %2
  %37 = zext i32 %36 to i64
  %38 = getelementptr inbounds [20 x i32], ptr %35, i64 0, i64 %37
  %39 = load i32, ptr %38, align 4, !tbaa !5
  %40 = icmp eq i32 %39, 1
  %41 = getelementptr inbounds i8, ptr %5, i64 16
  br i1 %40, label %42, label %51

42:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %11) #4
  %43 = load i32, ptr %5, align 8, !tbaa !9
  %44 = load i32, ptr %41, align 8, !tbaa !5
  %45 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %11, i32 noundef %43, i32 noundef %3, i32 noundef %44, i32 noundef %45)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %12) #4
  %46 = load i32, ptr %6, align 8, !tbaa !9
  %47 = zext i32 %2 to i64
  %48 = getelementptr inbounds [20 x i32], ptr %35, i64 0, i64 %47
  %49 = load i32, ptr %48, align 4, !tbaa !5
  call void @_Z8tensor1d8DataTypej(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %12, i32 noundef %46, i32 noundef %49)
  %50 = call i32 @matrix_vector_multiply_tmp_bytes(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %11, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %12, ptr noundef %0, i32 noundef %7)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %12) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %11) #4
  br label %60

51:                                               ; preds = %34
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %13) #4
  %52 = load i32, ptr %5, align 8, !tbaa !9
  %53 = load i32, ptr %41, align 8, !tbaa !5
  %54 = load i32, ptr %15, align 4, !tbaa !5
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %13, i32 noundef %52, i32 noundef %3, i32 noundef %53, i32 noundef %54)
  call void @llvm.lifetime.start.p0(i64 92, ptr nonnull %14) #4
  %55 = load i32, ptr %6, align 8, !tbaa !9
  %56 = getelementptr inbounds i8, ptr %6, i64 16
  %57 = load i32, ptr %56, align 8, !tbaa !5
  %58 = load i32, ptr %35, align 4, !tbaa !5
  call void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind nonnull writable sret(%struct.TensorDesc) align 4 %14, i32 noundef %55, i32 noundef %4, i32 noundef %57, i32 noundef %58)
  %59 = call i32 @matrix_matrix_multiply_tmp_bytes(ptr noundef nonnull byval(%struct.TensorDesc) align 8 %13, ptr noundef nonnull byval(%struct.TensorDesc) align 8 %14, ptr noundef %0, i32 noundef %7)
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 92, ptr nonnull %13) #4
  br label %60

60:                                               ; preds = %42, %51, %21
  %.0 = phi i32 [ %33, %21 ], [ %50, %42 ], [ %59, %51 ]
  ret i32 %.0
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z8tensor1d8DataTypej(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef) local_unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_Z9tensor2df8DataType10DataFormatjj(ptr dead_on_unwind noalias writable sret(%struct.TensorDesc) align 4, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

declare i32 @matrix_vector_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef) local_unnamed_addr #3

declare i32 @matrix_matrix_multiply_tmp_bytes(ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef byval(%struct.TensorDesc) align 8, ptr noundef, i32 noundef) local_unnamed_addr #3

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { inlinehint 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 = { "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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS10TensorDesc", !11, i64 0, !12, i64 4, !6, i64 8, !7, i64 12}
!11 = !{!"_ZTS8DataType", !7, i64 0}
!12 = !{!"_ZTS10DataFormat", !7, i64 0}


; Effective O3 passes: DSEPass,EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass