; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_sse_avx_avx512)

; 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.libxsmm_mateltwise_kernel_config_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.libxsmm_mateltwise_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_loop_label_tracker_struct = type { [512 x i32], i32 }
%struct.libxsmm_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, i8 }>

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel = external hidden unnamed_addr constant [51 x i8], align 1

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_meltw_setup_stack_frame(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_meltw_destroy_stack_frame(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef, ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_mateltwise_x86_valid_arch_precision(ptr noundef, ptr noundef) #2

declare i32 @libxsmm_meqn_is_unary_opcode_reduce_cols_idx_kernel(i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_mateltwise_sse_avx_avx512_kernel(ptr noundef %0, ptr noundef %1) #2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %struct.libxsmm_mateltwise_kernel_config_struct, align 4
  %6 = alloca %struct.libxsmm_mateltwise_gp_reg_mapping_struct, align 4
  %7 = alloca %struct.libxsmm_loop_label_tracker_struct, align 4
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 516, ptr %5) #4
  call void @llvm.lifetime.start.p0(i64 148, ptr %6) #4
  call void @llvm.lifetime.start.p0(i64 2052, ptr %7) #4
  %9 = load ptr, ptr %3, align 8, !tbaa !5
  %10 = load ptr, ptr %4, align 8, !tbaa !5
  %11 = call i32 @libxsmm_generator_mateltwise_x86_valid_arch_precision(ptr noundef %9, ptr noundef %10)
  %12 = icmp eq i32 %11, 0
  br i1 %12, label %13, label %22

13:                                               ; preds = %2
  %14 = load ptr, ptr %3, align 8, !tbaa !5
  %15 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %16 = icmp ult i32 1, %15
  br i1 %16, label %17, label %19

17:                                               ; preds = %13
  %18 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %20

19:                                               ; preds = %13
  br label %20

20:                                               ; preds = %19, %17
  %21 = phi i32 [ %18, %17 ], [ 1, %19 ]
  call void @libxsmm_handle_error(ptr noundef %14, i32 noundef 90006, ptr noundef @__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel, ptr noundef @.str, i32 noundef 936, i32 noundef %21)
  store i32 1, ptr %8, align 4
  br label %343

22:                                               ; preds = %2
  call void @libxsmm_reset_loop_label_tracker(ptr noundef %7)
  call void @llvm.memset.p0.i64(ptr align 4 %6, i8 0, i64 148, i1 false)
  %23 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  store i32 7, ptr %23, align 4, !tbaa !11
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %24, ptr noundef %5, ptr noundef %25)
  %26 = load ptr, ptr %3, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %6, i32 0, i32 0
  %28 = load i32, ptr %27, align 4, !tbaa !11
  call void @libxsmm_x86_instruction_open_stream_alt(ptr noundef %26, i32 noundef %28, i32 noundef 1)
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %29, i32 0, i32 0
  %31 = load i32, ptr %30, align 1, !tbaa !13
  %32 = icmp ugt i32 %31, 0
  br i1 %32, label %33, label %341

33:                                               ; preds = %22
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %34, i32 0, i32 1
  %36 = load i32, ptr %35, align 1, !tbaa !16
  %37 = icmp ugt i32 %36, 0
  br i1 %37, label %51, label %38

38:                                               ; preds = %33
  %39 = load ptr, ptr %4, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %39, i32 0, i32 10
  %41 = load i16, ptr %40, align 1, !tbaa !17
  %42 = zext i16 %41 to i32
  %43 = icmp eq i32 %42, 27
  br i1 %43, label %51, label %44

44:                                               ; preds = %38
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %45, i32 0, i32 10
  %47 = load i16, ptr %46, align 1, !tbaa !17
  %48 = zext i16 %47 to i32
  %49 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_cols_idx_kernel(i32 noundef %48)
  %50 = icmp ne i32 %49, 0
  br i1 %50, label %51, label %341

51:                                               ; preds = %44, %38, %33
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_meltw_setup_stack_frame(ptr noundef %52, ptr noundef %53, ptr noundef %6, ptr noundef %5)
  %54 = load ptr, ptr %4, align 8, !tbaa !5
  %55 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %54, i32 0, i32 11
  %56 = load i8, ptr %55, align 1, !tbaa !18
  %57 = zext i8 %56 to i32
  %58 = icmp eq i32 %57, 1
  br i1 %58, label %59, label %309

59:                                               ; preds = %51
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %60, i32 0, i32 10
  %62 = load i16, ptr %61, align 1, !tbaa !17
  %63 = zext i16 %62 to i32
  %64 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_kernel(i32 noundef %63)
  %65 = icmp sgt i32 %64, 0
  br i1 %65, label %66, label %120

66:                                               ; preds = %59
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %67, i32 0, i32 9
  %69 = load i16, ptr %68, align 1, !tbaa !19
  %70 = zext i16 %69 to i32
  %71 = and i32 %70, 32
  %72 = icmp sgt i32 %71, 0
  br i1 %72, label %73, label %76

73:                                               ; preds = %66
  %74 = load ptr, ptr %3, align 8, !tbaa !5
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_reduce_rows_avx512_microkernel(ptr noundef %74, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %75)
  br label %119

76:                                               ; preds = %66
  %77 = load ptr, ptr %4, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %77, i32 0, i32 9
  %79 = load i16, ptr %78, align 1, !tbaa !19
  %80 = zext i16 %79 to i32
  %81 = and i32 %80, 16
  %82 = icmp sgt i32 %81, 0
  br i1 %82, label %83, label %92

83:                                               ; preds = %76
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %84, i32 0, i32 10
  %86 = load i16, ptr %85, align 1, !tbaa !17
  %87 = zext i16 %86 to i32
  %88 = icmp ne i32 %87, 23
  br i1 %88, label %89, label %92

89:                                               ; preds = %83
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_reduce_cols_avx512_microkernel(ptr noundef %90, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %91)
  br label %118

92:                                               ; preds = %83, %76
  %93 = load ptr, ptr %4, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %93, i32 0, i32 9
  %95 = load i16, ptr %94, align 1, !tbaa !19
  %96 = zext i16 %95 to i32
  %97 = and i32 %96, 16
  %98 = icmp sgt i32 %97, 0
  br i1 %98, label %99, label %108

99:                                               ; preds = %92
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %100, i32 0, i32 10
  %102 = load i16, ptr %101, align 1, !tbaa !17
  %103 = zext i16 %102 to i32
  %104 = icmp eq i32 %103, 23
  br i1 %104, label %105, label %108

105:                                              ; preds = %99
  %106 = load ptr, ptr %3, align 8, !tbaa !5
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_reduce_cols_ncnc_avx512_microkernel(ptr noundef %106, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %107)
  br label %117

108:                                              ; preds = %99, %92
  %109 = load ptr, ptr %3, align 8, !tbaa !5
  %110 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %111 = icmp ult i32 1, %110
  br i1 %111, label %112, label %114

112:                                              ; preds = %108
  %113 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %115

114:                                              ; preds = %108
  br label %115

115:                                              ; preds = %114, %112
  %116 = phi i32 [ %113, %112 ], [ 1, %114 ]
  call void @libxsmm_handle_error(ptr noundef %109, i32 noundef 90000, ptr noundef @__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel, ptr noundef @.str, i32 noundef 973, i32 noundef %116)
  store i32 1, ptr %8, align 4
  br label %343

117:                                              ; preds = %105
  br label %118

118:                                              ; preds = %117, %89
  br label %119

119:                                              ; preds = %118, %73
  br label %308

120:                                              ; preds = %59
  %121 = load ptr, ptr %4, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %121, i32 0, i32 10
  %123 = load i16, ptr %122, align 1, !tbaa !17
  %124 = zext i16 %123 to i32
  %125 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_cols_idx_kernel(i32 noundef %124)
  %126 = icmp sgt i32 %125, 0
  br i1 %126, label %127, label %130

127:                                              ; preds = %120
  %128 = load ptr, ptr %3, align 8, !tbaa !5
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_reduce_cols_index_avx512_microkernel(ptr noundef %128, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %129)
  br label %307

130:                                              ; preds = %120
  %131 = load ptr, ptr %4, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %131, i32 0, i32 10
  %133 = load i16, ptr %132, align 1, !tbaa !17
  %134 = zext i16 %133 to i32
  %135 = icmp eq i32 %134, 27
  br i1 %135, label %136, label %139

136:                                              ; preds = %130
  %137 = load ptr, ptr %3, align 8, !tbaa !5
  %138 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_replicate_col_var_avx_avx512_microkernel(ptr noundef %137, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %138)
  br label %306

139:                                              ; preds = %130
  %140 = load ptr, ptr %4, align 8, !tbaa !5
  %141 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %140, i32 0, i32 10
  %142 = load i16, ptr %141, align 1, !tbaa !17
  %143 = zext i16 %142 to i32
  %144 = icmp eq i32 %143, 51
  br i1 %144, label %151, label %145

145:                                              ; preds = %139
  %146 = load ptr, ptr %4, align 8, !tbaa !5
  %147 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %146, i32 0, i32 10
  %148 = load i16, ptr %147, align 1, !tbaa !17
  %149 = zext i16 %148 to i32
  %150 = icmp eq i32 %149, 52
  br i1 %150, label %151, label %154

151:                                              ; preds = %145, %139
  %152 = load ptr, ptr %3, align 8, !tbaa !5
  %153 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_gather_scatter_avx_avx512_microkernel(ptr noundef %152, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %153)
  br label %305

154:                                              ; preds = %145
  %155 = load ptr, ptr %4, align 8, !tbaa !5
  %156 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %155, i32 0, i32 10
  %157 = load i16, ptr %156, align 1, !tbaa !17
  %158 = zext i16 %157 to i32
  %159 = icmp eq i32 %158, 28
  br i1 %159, label %298, label %160

160:                                              ; preds = %154
  %161 = load ptr, ptr %4, align 8, !tbaa !5
  %162 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %161, i32 0, i32 10
  %163 = load i16, ptr %162, align 1, !tbaa !17
  %164 = zext i16 %163 to i32
  %165 = icmp eq i32 %164, 29
  br i1 %165, label %298, label %166

166:                                              ; preds = %160
  %167 = load ptr, ptr %4, align 8, !tbaa !5
  %168 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %167, i32 0, i32 10
  %169 = load i16, ptr %168, align 1, !tbaa !17
  %170 = zext i16 %169 to i32
  %171 = icmp eq i32 %170, 30
  br i1 %171, label %298, label %172

172:                                              ; preds = %166
  %173 = load ptr, ptr %4, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %173, i32 0, i32 10
  %175 = load i16, ptr %174, align 1, !tbaa !17
  %176 = zext i16 %175 to i32
  %177 = icmp eq i32 %176, 31
  br i1 %177, label %298, label %178

178:                                              ; preds = %172
  %179 = load ptr, ptr %4, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %179, i32 0, i32 10
  %181 = load i16, ptr %180, align 1, !tbaa !17
  %182 = zext i16 %181 to i32
  %183 = icmp eq i32 %182, 32
  br i1 %183, label %298, label %184

184:                                              ; preds = %178
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %185, i32 0, i32 10
  %187 = load i16, ptr %186, align 1, !tbaa !17
  %188 = zext i16 %187 to i32
  %189 = icmp eq i32 %188, 54
  br i1 %189, label %298, label %190

190:                                              ; preds = %184
  %191 = load ptr, ptr %4, align 8, !tbaa !5
  %192 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %191, i32 0, i32 10
  %193 = load i16, ptr %192, align 1, !tbaa !17
  %194 = zext i16 %193 to i32
  %195 = icmp eq i32 %194, 61
  br i1 %195, label %298, label %196

196:                                              ; preds = %190
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %197, i32 0, i32 10
  %199 = load i16, ptr %198, align 1, !tbaa !17
  %200 = zext i16 %199 to i32
  %201 = icmp eq i32 %200, 62
  br i1 %201, label %298, label %202

202:                                              ; preds = %196
  %203 = load ptr, ptr %4, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %203, i32 0, i32 10
  %205 = load i16, ptr %204, align 1, !tbaa !17
  %206 = zext i16 %205 to i32
  %207 = icmp eq i32 %206, 55
  br i1 %207, label %298, label %208

208:                                              ; preds = %202
  %209 = load ptr, ptr %4, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %209, i32 0, i32 10
  %211 = load i16, ptr %210, align 1, !tbaa !17
  %212 = zext i16 %211 to i32
  %213 = icmp eq i32 %212, 56
  br i1 %213, label %298, label %214

214:                                              ; preds = %208
  %215 = load ptr, ptr %4, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %215, i32 0, i32 10
  %217 = load i16, ptr %216, align 1, !tbaa !17
  %218 = zext i16 %217 to i32
  %219 = icmp eq i32 %218, 67
  br i1 %219, label %298, label %220

220:                                              ; preds = %214
  %221 = load ptr, ptr %4, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %221, i32 0, i32 10
  %223 = load i16, ptr %222, align 1, !tbaa !17
  %224 = zext i16 %223 to i32
  %225 = icmp eq i32 %224, 66
  br i1 %225, label %298, label %226

226:                                              ; preds = %220
  %227 = load ptr, ptr %4, align 8, !tbaa !5
  %228 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %227, i32 0, i32 10
  %229 = load i16, ptr %228, align 1, !tbaa !17
  %230 = zext i16 %229 to i32
  %231 = icmp eq i32 %230, 57
  br i1 %231, label %298, label %232

232:                                              ; preds = %226
  %233 = load ptr, ptr %4, align 8, !tbaa !5
  %234 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %233, i32 0, i32 10
  %235 = load i16, ptr %234, align 1, !tbaa !17
  %236 = zext i16 %235 to i32
  %237 = icmp eq i32 %236, 71
  br i1 %237, label %298, label %238

238:                                              ; preds = %232
  %239 = load ptr, ptr %4, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %239, i32 0, i32 10
  %241 = load i16, ptr %240, align 1, !tbaa !17
  %242 = zext i16 %241 to i32
  %243 = icmp eq i32 %242, 72
  br i1 %243, label %298, label %244

244:                                              ; preds = %238
  %245 = load ptr, ptr %4, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %245, i32 0, i32 10
  %247 = load i16, ptr %246, align 1, !tbaa !17
  %248 = zext i16 %247 to i32
  %249 = icmp eq i32 %248, 73
  br i1 %249, label %298, label %250

250:                                              ; preds = %244
  %251 = load ptr, ptr %4, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %251, i32 0, i32 10
  %253 = load i16, ptr %252, align 1, !tbaa !17
  %254 = zext i16 %253 to i32
  %255 = icmp eq i32 %254, 74
  br i1 %255, label %298, label %256

256:                                              ; preds = %250
  %257 = load ptr, ptr %4, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %257, i32 0, i32 10
  %259 = load i16, ptr %258, align 1, !tbaa !17
  %260 = zext i16 %259 to i32
  %261 = icmp eq i32 %260, 75
  br i1 %261, label %298, label %262

262:                                              ; preds = %256
  %263 = load ptr, ptr %4, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %263, i32 0, i32 10
  %265 = load i16, ptr %264, align 1, !tbaa !17
  %266 = zext i16 %265 to i32
  %267 = icmp eq i32 %266, 39
  br i1 %267, label %298, label %268

268:                                              ; preds = %262
  %269 = load ptr, ptr %4, align 8, !tbaa !5
  %270 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %269, i32 0, i32 10
  %271 = load i16, ptr %270, align 1, !tbaa !17
  %272 = zext i16 %271 to i32
  %273 = icmp eq i32 %272, 40
  br i1 %273, label %298, label %274

274:                                              ; preds = %268
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %275, i32 0, i32 10
  %277 = load i16, ptr %276, align 1, !tbaa !17
  %278 = zext i16 %277 to i32
  %279 = icmp eq i32 %278, 41
  br i1 %279, label %298, label %280

280:                                              ; preds = %274
  %281 = load ptr, ptr %4, align 8, !tbaa !5
  %282 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %281, i32 0, i32 10
  %283 = load i16, ptr %282, align 1, !tbaa !17
  %284 = zext i16 %283 to i32
  %285 = icmp eq i32 %284, 58
  br i1 %285, label %298, label %286

286:                                              ; preds = %280
  %287 = load ptr, ptr %4, align 8, !tbaa !5
  %288 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %287, i32 0, i32 10
  %289 = load i16, ptr %288, align 1, !tbaa !17
  %290 = zext i16 %289 to i32
  %291 = icmp eq i32 %290, 59
  br i1 %291, label %298, label %292

292:                                              ; preds = %286
  %293 = load ptr, ptr %4, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %293, i32 0, i32 10
  %295 = load i16, ptr %294, align 1, !tbaa !17
  %296 = zext i16 %295 to i32
  %297 = icmp eq i32 %296, 60
  br i1 %297, label %298, label %301

298:                                              ; preds = %292, %286, %280, %274, %268, %262, %256, %250, %244, %238, %232, %226, %220, %214, %208, %202, %196, %190, %184, %178, %172, %166, %160, %154
  %299 = load ptr, ptr %3, align 8, !tbaa !5
  %300 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_transform_x86_microkernel(ptr noundef %299, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %300)
  br label %304

301:                                              ; preds = %292
  %302 = load ptr, ptr %3, align 8, !tbaa !5
  %303 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %302, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %303)
  br label %304

304:                                              ; preds = %301, %298
  br label %305

305:                                              ; preds = %304, %151
  br label %306

306:                                              ; preds = %305, %136
  br label %307

307:                                              ; preds = %306, %127
  br label %308

308:                                              ; preds = %307, %119
  br label %338

309:                                              ; preds = %51
  %310 = load ptr, ptr %4, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %310, i32 0, i32 11
  %312 = load i8, ptr %311, align 1, !tbaa !18
  %313 = zext i8 %312 to i32
  %314 = icmp eq i32 %313, 2
  br i1 %314, label %315, label %318

315:                                              ; preds = %309
  %316 = load ptr, ptr %3, align 8, !tbaa !5
  %317 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %316, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %317)
  br label %337

318:                                              ; preds = %309
  %319 = load ptr, ptr %4, align 8, !tbaa !5
  %320 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %319, i32 0, i32 11
  %321 = load i8, ptr %320, align 1, !tbaa !18
  %322 = zext i8 %321 to i32
  %323 = icmp eq i32 %322, 3
  br i1 %323, label %324, label %327

324:                                              ; preds = %318
  %325 = load ptr, ptr %3, align 8, !tbaa !5
  %326 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %325, ptr noundef %7, ptr noundef %6, ptr noundef %5, ptr noundef %326)
  br label %336

327:                                              ; preds = %318
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %330 = icmp ult i32 1, %329
  br i1 %330, label %331, label %333

331:                                              ; preds = %327
  %332 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %334

333:                                              ; preds = %327
  br label %334

334:                                              ; preds = %333, %331
  %335 = phi i32 [ %332, %331 ], [ 1, %333 ]
  call void @libxsmm_handle_error(ptr noundef %328, i32 noundef 90005, ptr noundef @__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel, ptr noundef @.str, i32 noundef 1016, i32 noundef %335)
  store i32 1, ptr %8, align 4
  br label %343

336:                                              ; preds = %324
  br label %337

337:                                              ; preds = %336, %315
  br label %338

338:                                              ; preds = %337, %308
  %339 = load ptr, ptr %3, align 8, !tbaa !5
  %340 = load ptr, ptr %4, align 8, !tbaa !5
  call void @libxsmm_generator_meltw_destroy_stack_frame(ptr noundef %339, ptr noundef %340, ptr noundef %5)
  br label %341

341:                                              ; preds = %338, %44, %22
  %342 = load ptr, ptr %3, align 8, !tbaa !5
  call void @libxsmm_x86_instruction_close_stream_alt(ptr noundef %342, i32 noundef 1)
  store i32 0, ptr %8, align 4
  br label %343

343:                                              ; preds = %341, %334, %115, %20
  call void @llvm.lifetime.end.p0(i64 2052, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 148, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 516, ptr %5) #4
  %344 = load i32, ptr %8, align 4
  switch i32 %344, label %346 [
    i32 0, label %345
    i32 1, label %345
  ]

345:                                              ; preds = %343, %343
  ret void

346:                                              ; preds = %343
  unreachable
}

declare void @libxsmm_reset_loop_label_tracker(ptr noundef) #1

declare void @libxsmm_x86_instruction_open_stream_alt(ptr noundef, i32 noundef, i32 noundef) #1

declare i32 @libxsmm_meqn_is_unary_opcode_reduce_kernel(i32 noundef) #1

declare void @libxsmm_generator_reduce_rows_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_reduce_cols_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_reduce_cols_ncnc_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_reduce_cols_index_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_replicate_col_var_avx_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_gather_scatter_avx_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_transform_x86_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare void @libxsmm_x86_instruction_close_stream_alt(ptr noundef, i32 noundef) #1

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"libxsmm_mateltwise_gp_reg_mapping_struct", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144}
!13 = !{!14, !10, i64 0}
!14 = !{!"libxsmm_meltw_descriptor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !15, i64 27, !15, i64 29, !7, i64 31}
!15 = !{!"short", !7, i64 0}
!16 = !{!14, !10, i64 4}
!17 = !{!14, !15, i64 29}
!18 = !{!14, !7, i64 31}
!19 = !{!14, !15, i64 27}


; 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.libxsmm_mateltwise_kernel_config_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i8 }
%struct.libxsmm_mateltwise_gp_reg_mapping_struct = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_loop_label_tracker_struct = type { [512 x i32], i32 }

@.str = external hidden unnamed_addr constant [91 x i8], align 1
@libxsmm_ninit = external local_unnamed_addr global i32, align 4
@libxsmm_verbosity = external local_unnamed_addr global i32, align 4
@__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel = external hidden unnamed_addr constant [51 x i8], align 1

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

declare void @libxsmm_handle_error(ptr noundef, i32 noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_meltw_setup_stack_frame(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_meltw_destroy_stack_frame(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

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

; Function Attrs: nounwind uwtable
declare dso_local i32 @libxsmm_generator_mateltwise_x86_valid_arch_precision(ptr noundef, ptr noundef) local_unnamed_addr #2

declare i32 @libxsmm_meqn_is_unary_opcode_reduce_cols_idx_kernel(i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_generator_mateltwise_sse_avx_avx512_kernel(ptr noundef %0, ptr noundef %1) local_unnamed_addr #2 {
  %3 = alloca %struct.libxsmm_mateltwise_kernel_config_struct, align 4
  %4 = alloca %struct.libxsmm_mateltwise_gp_reg_mapping_struct, align 4
  %5 = alloca %struct.libxsmm_loop_label_tracker_struct, align 4
  call void @llvm.lifetime.start.p0(i64 516, ptr nonnull %3) #4
  call void @llvm.lifetime.start.p0(i64 148, ptr nonnull %4) #4
  call void @llvm.lifetime.start.p0(i64 2052, ptr nonnull %5) #4
  %6 = tail call i32 @libxsmm_generator_mateltwise_x86_valid_arch_precision(ptr noundef %0, ptr noundef %1)
  %7 = icmp eq i32 %6, 0
  br i1 %7, label %8, label %13

8:                                                ; preds = %2
  %9 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %10 = icmp ugt i32 %9, 1
  %11 = load i32, ptr @libxsmm_verbosity, align 4
  %12 = select i1 %10, i32 %11, i32 1
  tail call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90006, ptr noundef nonnull @__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel, ptr noundef nonnull @.str, i32 noundef 936, i32 noundef %12) #4
  br label %78

13:                                               ; preds = %2
  call void @libxsmm_reset_loop_label_tracker(ptr noundef nonnull %5) #4
  %14 = getelementptr inbounds i8, ptr %4, i64 4
  call void @llvm.memset.p0.i64(ptr noundef nonnull align 4 dereferenceable(148) %14, i8 0, i64 144, i1 false)
  store i32 7, ptr %4, align 4, !tbaa !9
  call void @libxsmm_generator_mateltwise_init_micro_kernel_config_fullvector(ptr noundef %0, ptr noundef nonnull %3, ptr noundef %1)
  call void @libxsmm_x86_instruction_open_stream_alt(ptr noundef %0, i32 noundef 7, i32 noundef 1) #4
  %15 = load i32, ptr %1, align 1, !tbaa !11
  %.not = icmp eq i32 %15, 0
  br i1 %.not, label %77, label %16

16:                                               ; preds = %13
  %17 = getelementptr inbounds i8, ptr %1, i64 4
  %18 = load i32, ptr %17, align 1, !tbaa !14
  %.not76 = icmp eq i32 %18, 0
  br i1 %.not76, label %19, label %26

19:                                               ; preds = %16
  %20 = getelementptr inbounds i8, ptr %1, i64 29
  %21 = load i16, ptr %20, align 1, !tbaa !15
  %22 = icmp eq i16 %21, 27
  br i1 %22, label %26, label %23

23:                                               ; preds = %19
  %24 = zext i16 %21 to i32
  %25 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_cols_idx_kernel(i32 noundef %24) #4
  %.not77 = icmp eq i32 %25, 0
  br i1 %.not77, label %77, label %26

26:                                               ; preds = %23, %19, %16
  call void @libxsmm_generator_meltw_setup_stack_frame(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %4, ptr noundef nonnull %3)
  %27 = getelementptr inbounds i8, ptr %1, i64 31
  %28 = load i8, ptr %27, align 1, !tbaa !16
  switch i8 %28, label %71 [
    i8 1, label %29
    i8 2, label %69
    i8 3, label %70
  ]

29:                                               ; preds = %26
  %30 = getelementptr inbounds i8, ptr %1, i64 29
  %31 = load i16, ptr %30, align 1, !tbaa !15
  %32 = zext i16 %31 to i32
  %33 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_kernel(i32 noundef %32) #4
  %34 = icmp sgt i32 %33, 0
  br i1 %34, label %35, label %57

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %1, i64 27
  %37 = load i16, ptr %36, align 1, !tbaa !17
  %38 = zext i16 %37 to i32
  %39 = and i32 %38, 32
  %.not78 = icmp eq i32 %39, 0
  br i1 %.not78, label %41, label %40

40:                                               ; preds = %35
  call void @libxsmm_generator_reduce_rows_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

41:                                               ; preds = %35
  %42 = and i32 %38, 16
  %.not79 = icmp eq i32 %42, 0
  br i1 %.not79, label %46, label %43

43:                                               ; preds = %41
  %44 = load i16, ptr %30, align 1, !tbaa !15
  %.not80 = icmp eq i16 %44, 23
  br i1 %.not80, label %46, label %45

45:                                               ; preds = %43
  call void @libxsmm_generator_reduce_cols_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

46:                                               ; preds = %43, %41
  %47 = and i16 %37, 16
  %.not81 = icmp eq i16 %47, 0
  br i1 %.not81, label %52, label %48

48:                                               ; preds = %46
  %49 = load i16, ptr %30, align 1, !tbaa !15
  %50 = icmp eq i16 %49, 23
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  call void @libxsmm_generator_reduce_cols_ncnc_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

52:                                               ; preds = %48, %46
  %53 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %54 = icmp ugt i32 %53, 1
  %55 = load i32, ptr @libxsmm_verbosity, align 4
  %56 = select i1 %54, i32 %55, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90000, ptr noundef nonnull @__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel, ptr noundef nonnull @.str, i32 noundef 973, i32 noundef %56) #4
  br label %78

57:                                               ; preds = %29
  %58 = load i16, ptr %30, align 1, !tbaa !15
  %59 = zext i16 %58 to i32
  %60 = call i32 @libxsmm_meqn_is_unary_opcode_reduce_cols_idx_kernel(i32 noundef %59) #4
  %61 = icmp sgt i32 %60, 0
  br i1 %61, label %62, label %63

62:                                               ; preds = %57
  call void @libxsmm_generator_reduce_cols_index_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

63:                                               ; preds = %57
  %64 = load i16, ptr %30, align 1, !tbaa !15
  switch i16 %64, label %68 [
    i16 27, label %65
    i16 51, label %66
    i16 52, label %66
    i16 28, label %67
    i16 29, label %67
    i16 30, label %67
    i16 31, label %67
    i16 32, label %67
    i16 54, label %67
    i16 61, label %67
    i16 62, label %67
    i16 55, label %67
    i16 56, label %67
    i16 67, label %67
    i16 66, label %67
    i16 57, label %67
    i16 71, label %67
    i16 72, label %67
    i16 73, label %67
    i16 74, label %67
    i16 75, label %67
    i16 39, label %67
    i16 40, label %67
    i16 41, label %67
    i16 58, label %67
    i16 59, label %67
    i16 60, label %67
  ]

65:                                               ; preds = %63
  call void @libxsmm_generator_replicate_col_var_avx_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

66:                                               ; preds = %63, %63
  call void @libxsmm_generator_gather_scatter_avx_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

67:                                               ; preds = %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63, %63
  call void @libxsmm_generator_transform_x86_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

68:                                               ; preds = %63
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

69:                                               ; preds = %26
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

70:                                               ; preds = %26
  call void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %4, ptr noundef nonnull %3, ptr noundef nonnull %1) #4
  br label %76

71:                                               ; preds = %26
  %72 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !5
  %73 = icmp ugt i32 %72, 1
  %74 = load i32, ptr @libxsmm_verbosity, align 4
  %75 = select i1 %73, i32 %74, i32 1
  call void @libxsmm_handle_error(ptr noundef %0, i32 noundef 90005, ptr noundef nonnull @__func__.libxsmm_generator_mateltwise_sse_avx_avx512_kernel, ptr noundef nonnull @.str, i32 noundef 1016, i32 noundef %75) #4
  br label %78

76:                                               ; preds = %69, %70, %45, %51, %40, %65, %67, %68, %66, %62
  call void @libxsmm_generator_meltw_destroy_stack_frame(ptr noundef %0, ptr noundef nonnull %1, ptr noundef nonnull %3)
  br label %77

77:                                               ; preds = %76, %23, %13
  call void @libxsmm_x86_instruction_close_stream_alt(ptr noundef %0, i32 noundef 1) #4
  br label %78

78:                                               ; preds = %77, %71, %52, %8
  call void @llvm.lifetime.end.p0(i64 2052, ptr nonnull %5) #4
  call void @llvm.lifetime.end.p0(i64 148, ptr nonnull %4) #4
  call void @llvm.lifetime.end.p0(i64 516, ptr nonnull %3) #4
  ret void
}

declare void @libxsmm_reset_loop_label_tracker(ptr noundef) local_unnamed_addr #1

declare void @libxsmm_x86_instruction_open_stream_alt(ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #1

declare i32 @libxsmm_meqn_is_unary_opcode_reduce_kernel(i32 noundef) local_unnamed_addr #1

declare void @libxsmm_generator_reduce_rows_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_reduce_cols_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_reduce_cols_ncnc_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_reduce_cols_index_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_replicate_col_var_avx_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_gather_scatter_avx_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_transform_x86_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_generator_unary_binary_avx512_microkernel(ptr noundef, ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

declare void @libxsmm_x86_instruction_close_stream_alt(ptr noundef, i32 noundef) local_unnamed_addr #1

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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) }
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/C++ TBAA"}
!9 = !{!10, !6, i64 0}
!10 = !{!"libxsmm_mateltwise_gp_reg_mapping_struct", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !6, i64 44, !6, i64 48, !6, i64 52, !6, i64 56, !6, i64 60, !6, i64 64, !6, i64 68, !6, i64 72, !6, i64 76, !6, i64 80, !6, i64 84, !6, i64 88, !6, i64 92, !6, i64 96, !6, i64 100, !6, i64 104, !6, i64 108, !6, i64 112, !6, i64 116, !6, i64 120, !6, i64 124, !6, i64 128, !6, i64 132, !6, i64 136, !6, i64 140, !6, i64 144}
!11 = !{!12, !6, i64 0}
!12 = !{!"libxsmm_meltw_descriptor", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !7, i64 24, !7, i64 25, !7, i64 26, !13, i64 27, !13, i64 29, !7, i64 31}
!13 = !{!"short", !7, i64 0}
!14 = !{!12, !6, i64 4}
!15 = !{!12, !13, i64 29}
!16 = !{!12, !7, i64 31}
!17 = !{!12, !13, i64 27}


; Effective O3 passes: DSEPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,SROAPass,SimplifyCFGPass,TailCallElimPass