; LLVM IR from libxsmm/libxsmm :: src (generator_mateltwise_unary_binary_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_generated_code = type { ptr, i32, i32, i32, i32, i32, i32 }
%struct.libxsmm_meltw_descriptor = type <{ i32, i32, i32, i32, i32, i32, i8, i8, i8, i16, i16, 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 }

@.str = external hidden unnamed_addr constant [100 x i8], align 1
@libxsmm_ninit = external global i32, align 4
@libxsmm_verbosity = external global i32, align 4
@__func__.libxsmm_compute_unary_2d_reg_block_dropout_inv = external hidden unnamed_addr constant [47 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

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

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

declare void @libxsmm_x86_instruction_unified_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) #1

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef) #1

declare void @libxsmm_x86_instruction_vec_compute_3reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

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

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_compute_unary_2d_reg_block_dropout_inv(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) #2 {
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i32 %4, ptr %15, align 4, !tbaa !9
  store i32 %5, ptr %16, align 4, !tbaa !9
  store i32 %6, ptr %17, align 4, !tbaa !9
  store i32 %7, ptr %18, align 4, !tbaa !9
  store i32 %8, ptr %19, align 4, !tbaa !9
  store i32 %9, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #3
  %30 = load i32, ptr %19, align 4, !tbaa !9
  %31 = load i32, ptr %20, align 4, !tbaa !9
  %32 = load i32, ptr %15, align 4, !tbaa !9
  store i32 0, ptr %22, align 4, !tbaa !9
  br label %33

33:                                               ; preds = %216, %10
  %34 = load i32, ptr %22, align 4, !tbaa !9
  %35 = load i32, ptr %18, align 4, !tbaa !9
  %36 = icmp ult i32 %34, %35
  br i1 %36, label %37, label %219

37:                                               ; preds = %33
  store i32 0, ptr %21, align 4, !tbaa !9
  br label %38

38:                                               ; preds = %212, %37
  %39 = load i32, ptr %21, align 4, !tbaa !9
  %40 = load i32, ptr %17, align 4, !tbaa !9
  %41 = icmp ult i32 %39, %40
  br i1 %41, label %42, label %215

42:                                               ; preds = %38
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #3
  %43 = load ptr, ptr %13, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %43, i32 0, i32 19
  %45 = load i32, ptr %44, align 4, !tbaa !11
  %46 = sub i32 8, %45
  store i32 %46, ptr %24, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  %47 = load ptr, ptr %13, align 8, !tbaa !5
  %48 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %47, i32 0, i32 19
  %49 = load i32, ptr %48, align 4, !tbaa !11
  %50 = load i32, ptr %22, align 4, !tbaa !9
  %51 = load i32, ptr %17, align 4, !tbaa !9
  %52 = mul i32 %50, %51
  %53 = load i32, ptr %21, align 4, !tbaa !9
  %54 = add i32 %52, %53
  %55 = load i32, ptr %24, align 4, !tbaa !9
  %56 = urem i32 %54, %55
  %57 = add i32 %49, %56
  store i32 %57, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  store i32 805574233, ptr %26, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  store i32 -1610346096, ptr %27, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 16, ptr %28, align 4, !tbaa !9
  %58 = load i32, ptr %16, align 4, !tbaa !9
  %59 = load i32, ptr %22, align 4, !tbaa !9
  %60 = load i32, ptr %17, align 4, !tbaa !9
  %61 = mul i32 %59, %60
  %62 = add i32 %58, %61
  %63 = load i32, ptr %21, align 4, !tbaa !9
  %64 = add i32 %62, %63
  store i32 %64, ptr %23, align 4, !tbaa !9
  %65 = load ptr, ptr %11, align 8, !tbaa !5
  %66 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %65, i32 0, i32 6
  %67 = load i32, ptr %66, align 4, !tbaa !13
  %68 = icmp ult i32 %67, 1051
  br i1 %68, label %69, label %152

69:                                               ; preds = %42
  %70 = load i32, ptr %28, align 4, !tbaa !9
  %71 = udiv i32 %70, 2
  store i32 %71, ptr %28, align 4, !tbaa !9
  %72 = load ptr, ptr %14, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %72, i32 0, i32 9
  %74 = load i16, ptr %73, align 1, !tbaa !15
  %75 = zext i16 %74 to i32
  %76 = and i32 %75, 1
  %77 = icmp sgt i32 %76, 0
  br i1 %77, label %78, label %125

78:                                               ; preds = %69
  %79 = load ptr, ptr %11, align 8, !tbaa !5
  %80 = load ptr, ptr %12, align 8, !tbaa !5
  %81 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %80, i32 0, i32 13
  %82 = load i32, ptr %81, align 4, !tbaa !18
  %83 = load i32, ptr %21, align 4, !tbaa !9
  %84 = load i32, ptr %28, align 4, !tbaa !9
  %85 = mul i32 %83, %84
  %86 = load i32, ptr %22, align 4, !tbaa !9
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %87, i32 0, i32 16
  %89 = load i32, ptr %88, align 4, !tbaa !20
  %90 = mul i32 %86, %89
  %91 = add i32 %85, %90
  %92 = udiv i32 %91, 8
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %93, i32 0, i32 128
  %95 = load i8, ptr %94, align 4, !tbaa !21
  %96 = load ptr, ptr %13, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %96, i32 0, i32 107
  %98 = load i32, ptr %97, align 4, !tbaa !22
  call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef %79, i32 noundef 537208952, i32 noundef %82, i32 noundef 127, i32 noundef 0, i32 noundef %92, i8 noundef signext %95, i32 noundef %98, i32 noundef 0, i32 noundef 0, i32 noundef 0)
  %99 = load ptr, ptr %11, align 8, !tbaa !5
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %100, i32 0, i32 128
  %102 = load i8, ptr %101, align 4, !tbaa !21
  %103 = load ptr, ptr %13, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %103, i32 0, i32 107
  %105 = load i32, ptr %104, align 4, !tbaa !22
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %106, i32 0, i32 114
  %108 = load i32, ptr %107, align 4, !tbaa !23
  %109 = load ptr, ptr %13, align 8, !tbaa !5
  %110 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %109, i32 0, i32 107
  %111 = load i32, ptr %110, align 4, !tbaa !22
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %99, i32 noundef 805639899, i8 noundef signext %102, i32 noundef %105, i32 noundef %108, i32 noundef %111)
  %112 = load ptr, ptr %11, align 8, !tbaa !5
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %113, i32 0, i32 128
  %115 = load i8, ptr %114, align 4, !tbaa !21
  %116 = load ptr, ptr %13, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %116, i32 0, i32 107
  %118 = load i32, ptr %117, align 4, !tbaa !22
  %119 = load ptr, ptr %13, align 8, !tbaa !5
  %120 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %119, i32 0, i32 114
  %121 = load i32, ptr %120, align 4, !tbaa !23
  %122 = load ptr, ptr %13, align 8, !tbaa !5
  %123 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %122, i32 0, i32 107
  %124 = load i32, ptr %123, align 4, !tbaa !22
  call void @libxsmm_x86_instruction_vec_compute_3reg_imm8(ptr noundef %112, i32 noundef 805639798, i8 noundef signext %115, i32 noundef %118, i32 noundef %121, i32 noundef %124, i32 noundef 0)
  br label %134

125:                                              ; preds = %69
  %126 = load ptr, ptr %11, align 8, !tbaa !5
  %127 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %128 = icmp ult i32 1, %127
  br i1 %128, label %129, label %131

129:                                              ; preds = %125
  %130 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %132

131:                                              ; preds = %125
  br label %132

132:                                              ; preds = %131, %129
  %133 = phi i32 [ %130, %129 ], [ 1, %131 ]
  call void @libxsmm_handle_error(ptr noundef %126, i32 noundef 90045, ptr noundef @__func__.libxsmm_compute_unary_2d_reg_block_dropout_inv, ptr noundef @.str, i32 noundef 2086, i32 noundef %133)
  store i32 1, ptr %29, align 4
  br label %209

134:                                              ; preds = %78
  %135 = load ptr, ptr %11, align 8, !tbaa !5
  %136 = load i32, ptr %26, align 4, !tbaa !9
  %137 = load i32, ptr %23, align 4, !tbaa !9
  %138 = load ptr, ptr %13, align 8, !tbaa !5
  %139 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %138, i32 0, i32 112
  %140 = load i32, ptr %139, align 4, !tbaa !24
  %141 = load i32, ptr %23, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef %135, i32 noundef %136, i8 noundef signext 121, i32 noundef %137, i32 noundef %140, i32 noundef %141)
  %142 = load ptr, ptr %11, align 8, !tbaa !5
  %143 = load i32, ptr %23, align 4, !tbaa !9
  %144 = load ptr, ptr %13, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %144, i32 0, i32 111
  %146 = load i32, ptr %145, align 4, !tbaa !25
  %147 = load i32, ptr %23, align 4, !tbaa !9
  %148 = load ptr, ptr %13, align 8, !tbaa !5
  %149 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %148, i32 0, i32 107
  %150 = load i32, ptr %149, align 4, !tbaa !22
  %151 = shl i32 %150, 4
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef %142, i32 noundef 1879912522, i8 noundef signext 121, i32 noundef %143, i32 noundef %146, i32 noundef %147, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef %151)
  br label %208

152:                                              ; preds = %42
  %153 = load ptr, ptr %11, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.libxsmm_generated_code, ptr %153, i32 0, i32 6
  %155 = load i32, ptr %154, align 4, !tbaa !13
  %156 = icmp ule i32 %155, 1053
  br i1 %156, label %157, label %160

157:                                              ; preds = %152
  %158 = load i32, ptr %28, align 4, !tbaa !9
  %159 = udiv i32 %158, 2
  br label %162

160:                                              ; preds = %152
  %161 = load i32, ptr %28, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %160, %157
  %163 = phi i32 [ %159, %157 ], [ %161, %160 ]
  store i32 %163, ptr %28, align 4, !tbaa !9
  %164 = load ptr, ptr %14, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.libxsmm_meltw_descriptor, ptr %164, i32 0, i32 9
  %166 = load i16, ptr %165, align 1, !tbaa !15
  %167 = zext i16 %166 to i32
  %168 = and i32 %167, 1
  %169 = icmp sgt i32 %168, 0
  br i1 %169, label %170, label %187

170:                                              ; preds = %162
  %171 = load ptr, ptr %11, align 8, !tbaa !5
  %172 = load i32, ptr %27, align 4, !tbaa !9
  %173 = load ptr, ptr %12, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.libxsmm_mateltwise_gp_reg_mapping_struct, ptr %173, i32 0, i32 13
  %175 = load i32, ptr %174, align 4, !tbaa !18
  %176 = load i32, ptr %21, align 4, !tbaa !9
  %177 = load i32, ptr %28, align 4, !tbaa !9
  %178 = mul i32 %176, %177
  %179 = load i32, ptr %22, align 4, !tbaa !9
  %180 = load ptr, ptr %13, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %180, i32 0, i32 16
  %182 = load i32, ptr %181, align 4, !tbaa !20
  %183 = mul i32 %179, %182
  %184 = add i32 %178, %183
  %185 = udiv i32 %184, 8
  %186 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_mask_move_mem(ptr noundef %171, i32 noundef %172, i32 noundef %175, i32 noundef 127, i32 noundef 0, i32 noundef %185, i32 noundef %186)
  br label %196

187:                                              ; preds = %162
  %188 = load ptr, ptr %11, align 8, !tbaa !5
  %189 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !9
  %190 = icmp ult i32 1, %189
  br i1 %190, label %191, label %193

191:                                              ; preds = %187
  %192 = load i32, ptr @libxsmm_verbosity, align 4, !tbaa !9
  br label %194

193:                                              ; preds = %187
  br label %194

194:                                              ; preds = %193, %191
  %195 = phi i32 [ %192, %191 ], [ 1, %193 ]
  call void @libxsmm_handle_error(ptr noundef %188, i32 noundef 90045, ptr noundef @__func__.libxsmm_compute_unary_2d_reg_block_dropout_inv, ptr noundef @.str, i32 noundef 2101, i32 noundef %195)
  store i32 1, ptr %29, align 4
  br label %209

196:                                              ; preds = %170
  %197 = load ptr, ptr %11, align 8, !tbaa !5
  %198 = load i32, ptr %26, align 4, !tbaa !9
  %199 = load ptr, ptr %13, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %199, i32 0, i32 128
  %201 = load i8, ptr %200, align 4, !tbaa !21
  %202 = load i32, ptr %23, align 4, !tbaa !9
  %203 = load ptr, ptr %13, align 8, !tbaa !5
  %204 = getelementptr inbounds %struct.libxsmm_mateltwise_kernel_config_struct, ptr %203, i32 0, i32 112
  %205 = load i32, ptr %204, align 4, !tbaa !24
  %206 = load i32, ptr %23, align 4, !tbaa !9
  %207 = load i32, ptr %25, align 4, !tbaa !9
  call void @libxsmm_x86_instruction_vec_compute_3reg_mask(ptr noundef %197, i32 noundef %198, i8 noundef signext %201, i32 noundef %202, i32 noundef %205, i32 noundef %206, i32 noundef %207, i32 noundef 1)
  br label %208

208:                                              ; preds = %196, %134
  store i32 0, ptr %29, align 4
  br label %209

209:                                              ; preds = %208, %194, %132
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #3
  %210 = load i32, ptr %29, align 4
  switch i32 %210, label %220 [
    i32 0, label %211
  ]

211:                                              ; preds = %209
  br label %212

212:                                              ; preds = %211
  %213 = load i32, ptr %21, align 4, !tbaa !9
  %214 = add i32 %213, 1
  store i32 %214, ptr %21, align 4, !tbaa !9
  br label %38, !llvm.loop !26

215:                                              ; preds = %38
  br label %216

216:                                              ; preds = %215
  %217 = load i32, ptr %22, align 4, !tbaa !9
  %218 = add i32 %217, 1
  store i32 %218, ptr %22, align 4, !tbaa !9
  br label %33, !llvm.loop !28

219:                                              ; preds = %33
  store i32 0, ptr %29, align 4
  br label %220

220:                                              ; preds = %219, %209
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #3
  %221 = load i32, ptr %29, align 4
  switch i32 %221, label %223 [
    i32 0, label %222
    i32 1, label %222
  ]

222:                                              ; preds = %220, %220
  ret void

223:                                              ; preds = %220
  unreachable
}

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 = { 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 76}
!12 = !{!"libxsmm_mateltwise_kernel_config_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, !10, i64 148, !10, i64 152, !10, i64 156, !10, i64 160, !10, i64 164, !10, i64 168, !10, i64 172, !10, i64 176, !10, i64 180, !10, i64 184, !10, i64 188, !10, i64 192, !10, i64 196, !10, i64 200, !10, i64 204, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !10, i64 224, !10, i64 228, !10, i64 232, !10, i64 236, !10, i64 240, !10, i64 244, !10, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !10, i64 300, !10, i64 304, !10, i64 308, !10, i64 312, !10, i64 316, !10, i64 320, !10, i64 324, !10, i64 328, !10, i64 332, !10, i64 336, !10, i64 340, !10, i64 344, !10, i64 348, !10, i64 352, !10, i64 356, !10, i64 360, !10, i64 364, !10, i64 368, !10, i64 372, !10, i64 376, !10, i64 380, !10, i64 384, !10, i64 388, !10, i64 392, !10, i64 396, !10, i64 400, !10, i64 404, !10, i64 408, !10, i64 412, !10, i64 416, !10, i64 420, !10, i64 424, !10, i64 428, !10, i64 432, !10, i64 436, !10, i64 440, !10, i64 444, !10, i64 448, !10, i64 452, !10, i64 456, !10, i64 460, !10, i64 464, !10, i64 468, !10, i64 472, !10, i64 476, !10, i64 480, !10, i64 484, !10, i64 488, !10, i64 492, !10, i64 496, !10, i64 500, !10, i64 504, !10, i64 508, !7, i64 512}
!13 = !{!14, !10, i64 28}
!14 = !{!"libxsmm_generated_code", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28}
!15 = !{!16, !17, i64 27}
!16 = !{!"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, !17, i64 27, !17, i64 29, !7, i64 31}
!17 = !{!"short", !7, i64 0}
!18 = !{!19, !10, i64 52}
!19 = !{!"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}
!20 = !{!12, !10, i64 64}
!21 = !{!12, !7, i64 512}
!22 = !{!12, !10, i64 428}
!23 = !{!12, !10, i64 456}
!24 = !{!12, !10, i64 448}
!25 = !{!12, !10, i64 444}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !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"

@.str = external hidden unnamed_addr constant [100 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_compute_unary_2d_reg_block_dropout_inv = external hidden unnamed_addr constant [47 x i8], align 1

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

declare void @libxsmm_x86_instruction_unified_vec_move(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i8 noundef zeroext, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_vec_compute_3reg_imm8(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_mask_move_mem(ptr noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

declare void @libxsmm_x86_instruction_vec_compute_3reg_mask(ptr noundef, i32 noundef, i8 noundef signext, i32 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
define dso_local void @libxsmm_compute_unary_2d_reg_block_dropout_inv(ptr noundef %0, ptr nocapture noundef readonly %1, ptr nocapture noundef readonly %2, ptr nocapture noundef readonly %3, i32 noundef %4, i32 noundef %5, i32 noundef %6, i32 noundef %7, i32 noundef %8, i32 noundef %9) local_unnamed_addr #1 {
  %.not = icmp eq i32 %7, 0
  br i1 %.not, label %.critedge, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %10
  %.not80 = icmp eq i32 %6, 0
  %11 = getelementptr inbounds i8, ptr %2, i64 76
  %12 = getelementptr inbounds i8, ptr %0, i64 28
  %13 = getelementptr inbounds i8, ptr %3, i64 27
  %14 = getelementptr inbounds i8, ptr %1, i64 52
  %15 = getelementptr inbounds i8, ptr %2, i64 64
  %16 = getelementptr inbounds i8, ptr %2, i64 512
  %17 = getelementptr inbounds i8, ptr %2, i64 448
  %18 = getelementptr inbounds i8, ptr %2, i64 428
  %19 = getelementptr inbounds i8, ptr %2, i64 456
  %20 = getelementptr inbounds i8, ptr %2, i64 444
  br i1 %.not80, label %.critedge, label %.preheader.us

.preheader.us:                                    ; preds = %.preheader.lr.ph, %._crit_edge.us
  %.07277.us = phi i32 [ %68, %._crit_edge.us ], [ 0, %.preheader.lr.ph ]
  %21 = mul i32 %.07277.us, %6
  %22 = add i32 %21, %5
  br label %23

23:                                               ; preds = %.preheader.us, %66
  %.07176.us = phi i32 [ 0, %.preheader.us ], [ %67, %66 ]
  %24 = load i32, ptr %11, align 4, !tbaa !5
  %25 = sub i32 8, %24
  %26 = add i32 %.07176.us, %21
  %27 = urem i32 %26, %25
  %28 = add i32 %27, %24
  %29 = add i32 %22, %.07176.us
  %30 = load i32, ptr %12, align 4, !tbaa !10
  %31 = icmp ult i32 %30, 1051
  %32 = load i16, ptr %13, align 1, !tbaa !13
  %33 = and i16 %32, 1
  %.not75.us = icmp eq i16 %33, 0
  br i1 %31, label %46, label %34

34:                                               ; preds = %23
  br i1 %.not75.us, label %.critedge.sink.split, label %35

35:                                               ; preds = %34
  %36 = icmp ult i32 %30, 1054
  %37 = load i32, ptr %14, align 4, !tbaa !16
  %38 = select i1 %36, i32 3, i32 4
  %39 = shl i32 %.07176.us, %38
  %40 = load i32, ptr %15, align 4, !tbaa !18
  %41 = mul i32 %40, %.07277.us
  %42 = add i32 %41, %39
  %43 = lshr i32 %42, 3
  tail call void @libxsmm_x86_instruction_mask_move_mem(ptr noundef nonnull %0, i32 noundef -1610346096, i32 noundef %37, i32 noundef 127, i32 noundef 0, i32 noundef %43, i32 noundef %28) #2
  %44 = load i8, ptr %16, align 4, !tbaa !19
  %45 = load i32, ptr %17, align 4, !tbaa !20
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask(ptr noundef nonnull %0, i32 noundef 805574233, i8 noundef signext %44, i32 noundef %29, i32 noundef %45, i32 noundef %29, i32 noundef %28, i32 noundef 1) #2
  br label %66

46:                                               ; preds = %23
  br i1 %.not75.us, label %.critedge.sink.split, label %47

47:                                               ; preds = %46
  %48 = load i32, ptr %14, align 4, !tbaa !16
  %49 = load i32, ptr %15, align 4, !tbaa !18
  %50 = mul i32 %49, %.07277.us
  %51 = lshr i32 %50, 3
  %52 = add i32 %51, %.07176.us
  %53 = and i32 %52, 536870911
  %54 = load i8, ptr %16, align 4, !tbaa !19
  %55 = load i32, ptr %18, align 4, !tbaa !21
  tail call void @libxsmm_x86_instruction_unified_vec_move(ptr noundef nonnull %0, i32 noundef 537208952, i32 noundef %48, i32 noundef 127, i32 noundef 0, i32 noundef %53, i8 noundef signext %54, i32 noundef %55, i32 noundef 0, i32 noundef 0, i32 noundef 0) #2
  %56 = load i8, ptr %16, align 4, !tbaa !19
  %57 = load i32, ptr %18, align 4, !tbaa !21
  %58 = load i32, ptr %19, align 4, !tbaa !22
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef nonnull %0, i32 noundef 805639899, i8 noundef signext %56, i32 noundef %57, i32 noundef %58, i32 noundef %57) #2
  %59 = load i8, ptr %16, align 4, !tbaa !19
  %60 = load i32, ptr %18, align 4, !tbaa !21
  %61 = load i32, ptr %19, align 4, !tbaa !22
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_imm8(ptr noundef nonnull %0, i32 noundef 805639798, i8 noundef signext %59, i32 noundef %60, i32 noundef %61, i32 noundef %60, i32 noundef 0) #2
  %62 = load i32, ptr %17, align 4, !tbaa !20
  tail call void @libxsmm_x86_instruction_vec_compute_3reg(ptr noundef nonnull %0, i32 noundef 805574233, i8 noundef signext 121, i32 noundef %29, i32 noundef %62, i32 noundef %29) #2
  %63 = load i32, ptr %20, align 4, !tbaa !23
  %64 = load i32, ptr %18, align 4, !tbaa !21
  %65 = shl i32 %64, 4
  tail call void @libxsmm_x86_instruction_vec_compute_3reg_mask_sae_imm8(ptr noundef nonnull %0, i32 noundef 1879912522, i8 noundef signext 121, i32 noundef %29, i32 noundef %63, i32 noundef %29, i32 noundef 0, i32 noundef 0, i8 noundef zeroext 0, i32 noundef %65) #2
  br label %66

66:                                               ; preds = %47, %35
  %67 = add nuw i32 %.07176.us, 1
  %exitcond.not = icmp eq i32 %67, %6
  br i1 %exitcond.not, label %._crit_edge.us, label %23, !llvm.loop !24

._crit_edge.us:                                   ; preds = %66
  %68 = add nuw i32 %.07277.us, 1
  %exitcond82.not = icmp eq i32 %68, %7
  br i1 %exitcond82.not, label %.critedge, label %.preheader.us, !llvm.loop !26

.critedge.sink.split:                             ; preds = %34, %46
  %.sink = phi i32 [ 2086, %46 ], [ 2101, %34 ]
  %69 = load i32, ptr @libxsmm_ninit, align 4, !tbaa !27
  %70 = icmp ugt i32 %69, 1
  %71 = load i32, ptr @libxsmm_verbosity, align 4
  %72 = select i1 %70, i32 %71, i32 1
  tail call void @libxsmm_handle_error(ptr noundef nonnull %0, i32 noundef 90045, ptr noundef nonnull @__func__.libxsmm_compute_unary_2d_reg_block_dropout_inv, ptr noundef nonnull @.str, i32 noundef %.sink, i32 noundef %72) #2
  br label %.critedge

.critedge:                                        ; preds = %._crit_edge.us, %.critedge.sink.split, %.preheader.lr.ph, %10
  ret void
}

attributes #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 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !7, i64 76}
!6 = !{!"libxsmm_mateltwise_kernel_config_struct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144, !7, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !7, i64 164, !7, i64 168, !7, i64 172, !7, i64 176, !7, i64 180, !7, i64 184, !7, i64 188, !7, i64 192, !7, i64 196, !7, i64 200, !7, i64 204, !7, i64 208, !7, i64 212, !7, i64 216, !7, i64 220, !7, i64 224, !7, i64 228, !7, i64 232, !7, i64 236, !7, i64 240, !7, i64 244, !7, i64 248, !7, i64 252, !7, i64 256, !7, i64 260, !7, i64 264, !7, i64 268, !7, i64 272, !7, i64 276, !7, i64 280, !7, i64 284, !7, i64 288, !7, i64 292, !7, i64 296, !7, i64 300, !7, i64 304, !7, i64 308, !7, i64 312, !7, i64 316, !7, i64 320, !7, i64 324, !7, i64 328, !7, i64 332, !7, i64 336, !7, i64 340, !7, i64 344, !7, i64 348, !7, i64 352, !7, i64 356, !7, i64 360, !7, i64 364, !7, i64 368, !7, i64 372, !7, i64 376, !7, i64 380, !7, i64 384, !7, i64 388, !7, i64 392, !7, i64 396, !7, i64 400, !7, i64 404, !7, i64 408, !7, i64 412, !7, i64 416, !7, i64 420, !7, i64 424, !7, i64 428, !7, i64 432, !7, i64 436, !7, i64 440, !7, i64 444, !7, i64 448, !7, i64 452, !7, i64 456, !7, i64 460, !7, i64 464, !7, i64 468, !7, i64 472, !7, i64 476, !7, i64 480, !7, i64 484, !7, i64 488, !7, i64 492, !7, i64 496, !7, i64 500, !7, i64 504, !7, i64 508, !8, i64 512}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!11, !7, i64 28}
!11 = !{!"libxsmm_generated_code", !12, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!14, !15, i64 27}
!14 = !{!"libxsmm_meltw_descriptor", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !8, i64 24, !8, i64 25, !8, i64 26, !15, i64 27, !15, i64 29, !8, i64 31}
!15 = !{!"short", !8, i64 0}
!16 = !{!17, !7, i64 52}
!17 = !{!"libxsmm_mateltwise_gp_reg_mapping_struct", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !7, i64 44, !7, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !7, i64 64, !7, i64 68, !7, i64 72, !7, i64 76, !7, i64 80, !7, i64 84, !7, i64 88, !7, i64 92, !7, i64 96, !7, i64 100, !7, i64 104, !7, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !7, i64 128, !7, i64 132, !7, i64 136, !7, i64 140, !7, i64 144}
!18 = !{!6, !7, i64 64}
!19 = !{!6, !8, i64 512}
!20 = !{!6, !7, i64 448}
!21 = !{!6, !7, i64 428}
!22 = !{!6, !7, i64 456}
!23 = !{!6, !7, i64 444}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = distinct !{!26, !25}
!27 = !{!7, !7, i64 0}


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