; LLVM IR from glaretechnologies/substrata :: opus/opus-1.3.1/src (mlp)

; 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.GRULayer = type { ptr, ptr, ptr, i32, i32 }

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

; Function Attrs: nounwind uwtable
declare hidden void @gemm_accum(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sigmoid_approx(float noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @tansig_approx(float noundef) #2

; 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
define dso_local void @compute_gru(ptr noundef %0, ptr noundef %1, ptr noundef %2) #1 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [32 x float], align 16
  %12 = alloca [32 x float], align 16
  %13 = alloca [32 x float], align 16
  %14 = alloca [32 x float], align 16
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %11) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %13) #4
  call void @llvm.lifetime.start.p0(i64 128, ptr %14) #4
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = getelementptr inbounds %struct.GRULayer, ptr %15, i32 0, i32 3
  %17 = load i32, ptr %16, align 8, !tbaa !9
  store i32 %17, ptr %9, align 4, !tbaa !12
  %18 = load ptr, ptr %4, align 8, !tbaa !5
  %19 = getelementptr inbounds %struct.GRULayer, ptr %18, i32 0, i32 4
  %20 = load i32, ptr %19, align 4, !tbaa !13
  store i32 %20, ptr %8, align 4, !tbaa !12
  %21 = load i32, ptr %8, align 4, !tbaa !12
  %22 = mul nsw i32 3, %21
  store i32 %22, ptr %10, align 4, !tbaa !12
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %23

23:                                               ; preds = %39, %3
  %24 = load i32, ptr %7, align 4, !tbaa !12
  %25 = load i32, ptr %8, align 4, !tbaa !12
  %26 = icmp slt i32 %24, %25
  br i1 %26, label %27, label %42

27:                                               ; preds = %23
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.GRULayer, ptr %28, i32 0, i32 0
  %30 = load ptr, ptr %29, align 8, !tbaa !14
  %31 = load i32, ptr %7, align 4, !tbaa !12
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds i8, ptr %30, i64 %32
  %34 = load i8, ptr %33, align 1, !tbaa !15
  %35 = sitofp i8 %34 to float
  %36 = load i32, ptr %7, align 4, !tbaa !12
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 %37
  store float %35, ptr %38, align 4, !tbaa !16
  br label %39

39:                                               ; preds = %27
  %40 = load i32, ptr %7, align 4, !tbaa !12
  %41 = add nsw i32 %40, 1
  store i32 %41, ptr %7, align 4, !tbaa !12
  br label %23, !llvm.loop !18

42:                                               ; preds = %23
  %43 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 0
  %44 = load ptr, ptr %4, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct.GRULayer, ptr %44, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !20
  %47 = load i32, ptr %8, align 4, !tbaa !12
  %48 = load i32, ptr %9, align 4, !tbaa !12
  %49 = load i32, ptr %10, align 4, !tbaa !12
  %50 = load ptr, ptr %6, align 8, !tbaa !5
  call void @gemm_accum(ptr noundef %43, ptr noundef %46, i32 noundef %47, i32 noundef %48, i32 noundef %49, ptr noundef %50)
  %51 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 0
  %52 = load ptr, ptr %4, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.GRULayer, ptr %52, i32 0, i32 2
  %54 = load ptr, ptr %53, align 8, !tbaa !21
  %55 = load i32, ptr %8, align 4, !tbaa !12
  %56 = load i32, ptr %8, align 4, !tbaa !12
  %57 = load i32, ptr %10, align 4, !tbaa !12
  %58 = load ptr, ptr %5, align 8, !tbaa !5
  call void @gemm_accum(ptr noundef %51, ptr noundef %54, i32 noundef %55, i32 noundef %56, i32 noundef %57, ptr noundef %58)
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %59

59:                                               ; preds = %73, %42
  %60 = load i32, ptr %7, align 4, !tbaa !12
  %61 = load i32, ptr %8, align 4, !tbaa !12
  %62 = icmp slt i32 %60, %61
  br i1 %62, label %63, label %76

63:                                               ; preds = %59
  %64 = load i32, ptr %7, align 4, !tbaa !12
  %65 = sext i32 %64 to i64
  %66 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 %65
  %67 = load float, ptr %66, align 4, !tbaa !16
  %68 = fmul float 7.812500e-03, %67
  %69 = call float @sigmoid_approx(float noundef %68)
  %70 = load i32, ptr %7, align 4, !tbaa !12
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 %71
  store float %69, ptr %72, align 4, !tbaa !16
  br label %73

73:                                               ; preds = %63
  %74 = load i32, ptr %7, align 4, !tbaa !12
  %75 = add nsw i32 %74, 1
  store i32 %75, ptr %7, align 4, !tbaa !12
  br label %59, !llvm.loop !22

76:                                               ; preds = %59
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %77

77:                                               ; preds = %95, %76
  %78 = load i32, ptr %7, align 4, !tbaa !12
  %79 = load i32, ptr %8, align 4, !tbaa !12
  %80 = icmp slt i32 %78, %79
  br i1 %80, label %81, label %98

81:                                               ; preds = %77
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.GRULayer, ptr %82, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !14
  %85 = load i32, ptr %8, align 4, !tbaa !12
  %86 = load i32, ptr %7, align 4, !tbaa !12
  %87 = add nsw i32 %85, %86
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds i8, ptr %84, i64 %88
  %90 = load i8, ptr %89, align 1, !tbaa !15
  %91 = sitofp i8 %90 to float
  %92 = load i32, ptr %7, align 4, !tbaa !12
  %93 = sext i32 %92 to i64
  %94 = getelementptr inbounds [32 x float], ptr %13, i64 0, i64 %93
  store float %91, ptr %94, align 4, !tbaa !16
  br label %95

95:                                               ; preds = %81
  %96 = load i32, ptr %7, align 4, !tbaa !12
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %7, align 4, !tbaa !12
  br label %77, !llvm.loop !23

98:                                               ; preds = %77
  %99 = getelementptr inbounds [32 x float], ptr %13, i64 0, i64 0
  %100 = load ptr, ptr %4, align 8, !tbaa !5
  %101 = getelementptr inbounds %struct.GRULayer, ptr %100, i32 0, i32 1
  %102 = load ptr, ptr %101, align 8, !tbaa !20
  %103 = load i32, ptr %8, align 4, !tbaa !12
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds i8, ptr %102, i64 %104
  %106 = load i32, ptr %8, align 4, !tbaa !12
  %107 = load i32, ptr %9, align 4, !tbaa !12
  %108 = load i32, ptr %10, align 4, !tbaa !12
  %109 = load ptr, ptr %6, align 8, !tbaa !5
  call void @gemm_accum(ptr noundef %99, ptr noundef %105, i32 noundef %106, i32 noundef %107, i32 noundef %108, ptr noundef %109)
  %110 = getelementptr inbounds [32 x float], ptr %13, i64 0, i64 0
  %111 = load ptr, ptr %4, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.GRULayer, ptr %111, i32 0, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !21
  %114 = load i32, ptr %8, align 4, !tbaa !12
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds i8, ptr %113, i64 %115
  %117 = load i32, ptr %8, align 4, !tbaa !12
  %118 = load i32, ptr %8, align 4, !tbaa !12
  %119 = load i32, ptr %10, align 4, !tbaa !12
  %120 = load ptr, ptr %5, align 8, !tbaa !5
  call void @gemm_accum(ptr noundef %110, ptr noundef %116, i32 noundef %117, i32 noundef %118, i32 noundef %119, ptr noundef %120)
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %121

121:                                              ; preds = %135, %98
  %122 = load i32, ptr %7, align 4, !tbaa !12
  %123 = load i32, ptr %8, align 4, !tbaa !12
  %124 = icmp slt i32 %122, %123
  br i1 %124, label %125, label %138

125:                                              ; preds = %121
  %126 = load i32, ptr %7, align 4, !tbaa !12
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [32 x float], ptr %13, i64 0, i64 %127
  %129 = load float, ptr %128, align 4, !tbaa !16
  %130 = fmul float 7.812500e-03, %129
  %131 = call float @sigmoid_approx(float noundef %130)
  %132 = load i32, ptr %7, align 4, !tbaa !12
  %133 = sext i32 %132 to i64
  %134 = getelementptr inbounds [32 x float], ptr %13, i64 0, i64 %133
  store float %131, ptr %134, align 4, !tbaa !16
  br label %135

135:                                              ; preds = %125
  %136 = load i32, ptr %7, align 4, !tbaa !12
  %137 = add nsw i32 %136, 1
  store i32 %137, ptr %7, align 4, !tbaa !12
  br label %121, !llvm.loop !24

138:                                              ; preds = %121
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %139

139:                                              ; preds = %158, %138
  %140 = load i32, ptr %7, align 4, !tbaa !12
  %141 = load i32, ptr %8, align 4, !tbaa !12
  %142 = icmp slt i32 %140, %141
  br i1 %142, label %143, label %161

143:                                              ; preds = %139
  %144 = load ptr, ptr %4, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.GRULayer, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !14
  %147 = load i32, ptr %8, align 4, !tbaa !12
  %148 = mul nsw i32 2, %147
  %149 = load i32, ptr %7, align 4, !tbaa !12
  %150 = add nsw i32 %148, %149
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds i8, ptr %146, i64 %151
  %153 = load i8, ptr %152, align 1, !tbaa !15
  %154 = sitofp i8 %153 to float
  %155 = load i32, ptr %7, align 4, !tbaa !12
  %156 = sext i32 %155 to i64
  %157 = getelementptr inbounds [32 x float], ptr %14, i64 0, i64 %156
  store float %154, ptr %157, align 4, !tbaa !16
  br label %158

158:                                              ; preds = %143
  %159 = load i32, ptr %7, align 4, !tbaa !12
  %160 = add nsw i32 %159, 1
  store i32 %160, ptr %7, align 4, !tbaa !12
  br label %139, !llvm.loop !25

161:                                              ; preds = %139
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %162

162:                                              ; preds = %180, %161
  %163 = load i32, ptr %7, align 4, !tbaa !12
  %164 = load i32, ptr %8, align 4, !tbaa !12
  %165 = icmp slt i32 %163, %164
  br i1 %165, label %166, label %183

166:                                              ; preds = %162
  %167 = load ptr, ptr %5, align 8, !tbaa !5
  %168 = load i32, ptr %7, align 4, !tbaa !12
  %169 = sext i32 %168 to i64
  %170 = getelementptr inbounds float, ptr %167, i64 %169
  %171 = load float, ptr %170, align 4, !tbaa !16
  %172 = load i32, ptr %7, align 4, !tbaa !12
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [32 x float], ptr %13, i64 0, i64 %173
  %175 = load float, ptr %174, align 4, !tbaa !16
  %176 = fmul float %171, %175
  %177 = load i32, ptr %7, align 4, !tbaa !12
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [32 x float], ptr %11, i64 0, i64 %178
  store float %176, ptr %179, align 4, !tbaa !16
  br label %180

180:                                              ; preds = %166
  %181 = load i32, ptr %7, align 4, !tbaa !12
  %182 = add nsw i32 %181, 1
  store i32 %182, ptr %7, align 4, !tbaa !12
  br label %162, !llvm.loop !26

183:                                              ; preds = %162
  %184 = getelementptr inbounds [32 x float], ptr %14, i64 0, i64 0
  %185 = load ptr, ptr %4, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.GRULayer, ptr %185, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !20
  %188 = load i32, ptr %8, align 4, !tbaa !12
  %189 = mul nsw i32 2, %188
  %190 = sext i32 %189 to i64
  %191 = getelementptr inbounds i8, ptr %187, i64 %190
  %192 = load i32, ptr %8, align 4, !tbaa !12
  %193 = load i32, ptr %9, align 4, !tbaa !12
  %194 = load i32, ptr %10, align 4, !tbaa !12
  %195 = load ptr, ptr %6, align 8, !tbaa !5
  call void @gemm_accum(ptr noundef %184, ptr noundef %191, i32 noundef %192, i32 noundef %193, i32 noundef %194, ptr noundef %195)
  %196 = getelementptr inbounds [32 x float], ptr %14, i64 0, i64 0
  %197 = load ptr, ptr %4, align 8, !tbaa !5
  %198 = getelementptr inbounds %struct.GRULayer, ptr %197, i32 0, i32 2
  %199 = load ptr, ptr %198, align 8, !tbaa !21
  %200 = load i32, ptr %8, align 4, !tbaa !12
  %201 = mul nsw i32 2, %200
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds i8, ptr %199, i64 %202
  %204 = load i32, ptr %8, align 4, !tbaa !12
  %205 = load i32, ptr %8, align 4, !tbaa !12
  %206 = load i32, ptr %10, align 4, !tbaa !12
  %207 = getelementptr inbounds [32 x float], ptr %11, i64 0, i64 0
  call void @gemm_accum(ptr noundef %196, ptr noundef %203, i32 noundef %204, i32 noundef %205, i32 noundef %206, ptr noundef %207)
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %208

208:                                              ; preds = %238, %183
  %209 = load i32, ptr %7, align 4, !tbaa !12
  %210 = load i32, ptr %8, align 4, !tbaa !12
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %241

212:                                              ; preds = %208
  %213 = load i32, ptr %7, align 4, !tbaa !12
  %214 = sext i32 %213 to i64
  %215 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 %214
  %216 = load float, ptr %215, align 4, !tbaa !16
  %217 = load ptr, ptr %5, align 8, !tbaa !5
  %218 = load i32, ptr %7, align 4, !tbaa !12
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds float, ptr %217, i64 %219
  %221 = load float, ptr %220, align 4, !tbaa !16
  %222 = load i32, ptr %7, align 4, !tbaa !12
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds [32 x float], ptr %12, i64 0, i64 %223
  %225 = load float, ptr %224, align 4, !tbaa !16
  %226 = fsub float 1.000000e+00, %225
  %227 = load i32, ptr %7, align 4, !tbaa !12
  %228 = sext i32 %227 to i64
  %229 = getelementptr inbounds [32 x float], ptr %14, i64 0, i64 %228
  %230 = load float, ptr %229, align 4, !tbaa !16
  %231 = fmul float 7.812500e-03, %230
  %232 = call float @tansig_approx(float noundef %231)
  %233 = fmul float %226, %232
  %234 = call float @llvm.fmuladd.f32(float %216, float %221, float %233)
  %235 = load i32, ptr %7, align 4, !tbaa !12
  %236 = sext i32 %235 to i64
  %237 = getelementptr inbounds [32 x float], ptr %14, i64 0, i64 %236
  store float %234, ptr %237, align 4, !tbaa !16
  br label %238

238:                                              ; preds = %212
  %239 = load i32, ptr %7, align 4, !tbaa !12
  %240 = add nsw i32 %239, 1
  store i32 %240, ptr %7, align 4, !tbaa !12
  br label %208, !llvm.loop !27

241:                                              ; preds = %208
  store i32 0, ptr %7, align 4, !tbaa !12
  br label %242

242:                                              ; preds = %255, %241
  %243 = load i32, ptr %7, align 4, !tbaa !12
  %244 = load i32, ptr %8, align 4, !tbaa !12
  %245 = icmp slt i32 %243, %244
  br i1 %245, label %246, label %258

246:                                              ; preds = %242
  %247 = load i32, ptr %7, align 4, !tbaa !12
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds [32 x float], ptr %14, i64 0, i64 %248
  %250 = load float, ptr %249, align 4, !tbaa !16
  %251 = load ptr, ptr %5, align 8, !tbaa !5
  %252 = load i32, ptr %7, align 4, !tbaa !12
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds float, ptr %251, i64 %253
  store float %250, ptr %254, align 4, !tbaa !16
  br label %255

255:                                              ; preds = %246
  %256 = load i32, ptr %7, align 4, !tbaa !12
  %257 = add nsw i32 %256, 1
  store i32 %257, ptr %7, align 4, !tbaa !12
  br label %242, !llvm.loop !28

258:                                              ; preds = %242
  call void @llvm.lifetime.end.p0(i64 128, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 128, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret void
}

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 24}
!10 = !{!"", !6, i64 0, !6, i64 8, !6, i64 16, !11, i64 24, !11, i64 28}
!11 = !{!"int", !7, i64 0}
!12 = !{!11, !11, i64 0}
!13 = !{!10, !11, i64 28}
!14 = !{!10, !6, i64 0}
!15 = !{!7, !7, i64 0}
!16 = !{!17, !17, i64 0}
!17 = !{!"float", !7, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 8}
!21 = !{!10, !6, i64 16}
!22 = distinct !{!22, !19}
!23 = distinct !{!23, !19}
!24 = distinct !{!24, !19}
!25 = distinct !{!25, !19}
!26 = distinct !{!26, !19}
!27 = distinct !{!27, !19}
!28 = distinct !{!28, !19}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

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

; Function Attrs: nounwind uwtable
declare hidden void @gemm_accum(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @sigmoid_approx(float noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden float @tansig_approx(float noundef) local_unnamed_addr #2

; 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
define dso_local void @compute_gru(ptr nocapture noundef readonly %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #1 {
  %4 = alloca [32 x float], align 16
  %5 = alloca [32 x float], align 16
  %6 = alloca [32 x float], align 16
  %7 = alloca [32 x float], align 16
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %4) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %5) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %6) #5
  call void @llvm.lifetime.start.p0(i64 128, ptr nonnull %7) #5
  %8 = getelementptr inbounds i8, ptr %0, i64 24
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 28
  %11 = load i32, ptr %10, align 4, !tbaa !11
  %12 = mul nsw i32 %11, 3
  %13 = icmp sgt i32 %11, 0
  br i1 %13, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %3
  %14 = load ptr, ptr %0, align 8, !tbaa !12
  %wide.trip.count = zext nneg i32 %11 to i64
  %min.iters.check = icmp ult i32 %11, 8
  br i1 %min.iters.check, label %scalar.ph.preheader, label %vector.memcheck

vector.memcheck:                                  ; preds = %.lr.ph
  %15 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep = getelementptr i8, ptr %5, i64 %15
  %scevgep149 = getelementptr i8, ptr %14, i64 %wide.trip.count
  %bound0 = icmp ult ptr %5, %scevgep149
  %bound1 = icmp ult ptr %14, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %scalar.ph.preheader, label %vector.ph

vector.ph:                                        ; preds = %vector.memcheck
  %n.vec = and i64 %wide.trip.count, 2147483640
  br label %vector.body

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %16 = getelementptr inbounds i8, ptr %14, i64 %index
  %17 = getelementptr inbounds i8, ptr %16, i64 4
  %wide.load = load <4 x i8>, ptr %16, align 1, !tbaa !13, !alias.scope !14
  %wide.load150 = load <4 x i8>, ptr %17, align 1, !tbaa !13, !alias.scope !14
  %18 = sitofp <4 x i8> %wide.load to <4 x float>
  %19 = sitofp <4 x i8> %wide.load150 to <4 x float>
  %20 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %index
  %21 = getelementptr inbounds i8, ptr %20, i64 16
  store <4 x float> %18, ptr %20, align 16, !tbaa !17, !alias.scope !19, !noalias !14
  store <4 x float> %19, ptr %21, align 16, !tbaa !17, !alias.scope !19, !noalias !14
  %index.next = add nuw i64 %index, 8
  %22 = icmp eq i64 %index.next, %n.vec
  br i1 %22, label %middle.block, label %vector.body, !llvm.loop !21

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count
  br i1 %cmp.n, label %._crit_edge, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %vector.memcheck, %.lr.ph
  %indvars.iv.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph ], [ %n.vec, %middle.block ]
  %xtraiter = and i64 %wide.trip.count, 3
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %scalar.ph.prol ], [ %indvars.iv.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %23 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv.prol
  %24 = load i8, ptr %23, align 1, !tbaa !13
  %25 = sitofp i8 %24 to float
  %26 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv.prol
  store float %25, ptr %26, align 4, !tbaa !17
  %indvars.iv.next.prol = add nuw nsw i64 %indvars.iv.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !25

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %scalar.ph.preheader ], [ %indvars.iv.next.prol, %scalar.ph.prol ]
  %27 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %28 = icmp ugt i64 %27, -4
  br i1 %28, label %._crit_edge, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %scalar.ph ], [ %indvars.iv.unr, %scalar.ph.prol.loopexit ]
  %29 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv
  %30 = load i8, ptr %29, align 1, !tbaa !13
  %31 = sitofp i8 %30 to float
  %32 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv
  store float %31, ptr %32, align 4, !tbaa !17
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %33 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv.next
  %34 = load i8, ptr %33, align 1, !tbaa !13
  %35 = sitofp i8 %34 to float
  %36 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv.next
  store float %35, ptr %36, align 4, !tbaa !17
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %37 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv.next.1
  %38 = load i8, ptr %37, align 1, !tbaa !13
  %39 = sitofp i8 %38 to float
  %40 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv.next.1
  store float %39, ptr %40, align 4, !tbaa !17
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %41 = getelementptr inbounds i8, ptr %14, i64 %indvars.iv.next.2
  %42 = load i8, ptr %41, align 1, !tbaa !13
  %43 = sitofp i8 %42 to float
  %44 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv.next.2
  store float %43, ptr %44, align 4, !tbaa !17
  %indvars.iv.next.3 = add nuw nsw i64 %indvars.iv, 4
  %exitcond.not.3 = icmp eq i64 %indvars.iv.next.3, %wide.trip.count
  br i1 %exitcond.not.3, label %._crit_edge, label %scalar.ph, !llvm.loop !27

._crit_edge:                                      ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block, %3
  %45 = getelementptr inbounds i8, ptr %0, i64 8
  %46 = load ptr, ptr %45, align 8, !tbaa !28
  call void @gemm_accum(ptr noundef nonnull %5, ptr noundef %46, i32 noundef %11, i32 noundef %9, i32 noundef %12, ptr noundef %2)
  %47 = getelementptr inbounds i8, ptr %0, i64 16
  %48 = load ptr, ptr %47, align 8, !tbaa !29
  call void @gemm_accum(ptr noundef nonnull %5, ptr noundef %48, i32 noundef %11, i32 noundef %11, i32 noundef %12, ptr noundef %1)
  br i1 %13, label %.lr.ph94.preheader, label %._crit_edge105.critedge

.lr.ph94.preheader:                               ; preds = %._crit_edge
  %wide.trip.count116 = zext nneg i32 %11 to i64
  br label %.lr.ph94

.preheader90:                                     ; preds = %.lr.ph94
  br i1 %13, label %.lr.ph96, label %._crit_edge105.critedge

.lr.ph96:                                         ; preds = %.preheader90
  %49 = load ptr, ptr %0, align 8, !tbaa !12
  %50 = zext nneg i32 %11 to i64
  %invariant.gep = getelementptr inbounds i8, ptr %49, i64 %50
  %min.iters.check159 = icmp ult i32 %11, 8
  br i1 %min.iters.check159, label %scalar.ph158.preheader, label %vector.memcheck151

scalar.ph158.preheader:                           ; preds = %middle.block157, %vector.memcheck151, %.lr.ph96
  %indvars.iv118.ph = phi i64 [ 0, %vector.memcheck151 ], [ 0, %.lr.ph96 ], [ %n.vec162, %middle.block157 ]
  %xtraiter205 = and i64 %wide.trip.count116, 3
  %lcmp.mod206.not = icmp eq i64 %xtraiter205, 0
  br i1 %lcmp.mod206.not, label %scalar.ph158.prol.loopexit, label %scalar.ph158.prol

scalar.ph158.prol:                                ; preds = %scalar.ph158.preheader, %scalar.ph158.prol
  %indvars.iv118.prol = phi i64 [ %indvars.iv.next119.prol, %scalar.ph158.prol ], [ %indvars.iv118.ph, %scalar.ph158.preheader ]
  %prol.iter207 = phi i64 [ %prol.iter207.next, %scalar.ph158.prol ], [ 0, %scalar.ph158.preheader ]
  %gep.prol = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv118.prol
  %51 = load i8, ptr %gep.prol, align 1, !tbaa !13
  %52 = sitofp i8 %51 to float
  %53 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv118.prol
  store float %52, ptr %53, align 4, !tbaa !17
  %indvars.iv.next119.prol = add nuw nsw i64 %indvars.iv118.prol, 1
  %prol.iter207.next = add i64 %prol.iter207, 1
  %prol.iter207.cmp.not = icmp eq i64 %prol.iter207.next, %xtraiter205
  br i1 %prol.iter207.cmp.not, label %scalar.ph158.prol.loopexit, label %scalar.ph158.prol, !llvm.loop !30

scalar.ph158.prol.loopexit:                       ; preds = %scalar.ph158.prol, %scalar.ph158.preheader
  %indvars.iv118.unr = phi i64 [ %indvars.iv118.ph, %scalar.ph158.preheader ], [ %indvars.iv.next119.prol, %scalar.ph158.prol ]
  %54 = sub nsw i64 %indvars.iv118.ph, %wide.trip.count116
  %55 = icmp ugt i64 %54, -4
  br i1 %55, label %._crit_edge97, label %scalar.ph158

vector.memcheck151:                               ; preds = %.lr.ph96
  %56 = shl nuw nsw i64 %wide.trip.count116, 2
  %scevgep152 = getelementptr i8, ptr %6, i64 %56
  %57 = shl nuw nsw i64 %wide.trip.count116, 1
  %scevgep153 = getelementptr i8, ptr %49, i64 %57
  %bound0154 = icmp ult ptr %6, %scevgep153
  %bound1155 = icmp ult ptr %invariant.gep, %scevgep152
  %found.conflict156 = and i1 %bound0154, %bound1155
  br i1 %found.conflict156, label %scalar.ph158.preheader, label %vector.ph160

vector.ph160:                                     ; preds = %vector.memcheck151
  %n.vec162 = and i64 %wide.trip.count116, 2147483640
  br label %vector.body164

vector.body164:                                   ; preds = %vector.body164, %vector.ph160
  %index165 = phi i64 [ 0, %vector.ph160 ], [ %index.next168, %vector.body164 ]
  %58 = getelementptr inbounds i8, ptr %invariant.gep, i64 %index165
  %59 = getelementptr inbounds i8, ptr %58, i64 4
  %wide.load166 = load <4 x i8>, ptr %58, align 1, !tbaa !13, !alias.scope !31
  %wide.load167 = load <4 x i8>, ptr %59, align 1, !tbaa !13, !alias.scope !31
  %60 = sitofp <4 x i8> %wide.load166 to <4 x float>
  %61 = sitofp <4 x i8> %wide.load167 to <4 x float>
  %62 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %index165
  %63 = getelementptr inbounds i8, ptr %62, i64 16
  store <4 x float> %60, ptr %62, align 16, !tbaa !17, !alias.scope !34, !noalias !31
  store <4 x float> %61, ptr %63, align 16, !tbaa !17, !alias.scope !34, !noalias !31
  %index.next168 = add nuw i64 %index165, 8
  %64 = icmp eq i64 %index.next168, %n.vec162
  br i1 %64, label %middle.block157, label %vector.body164, !llvm.loop !36

middle.block157:                                  ; preds = %vector.body164
  %cmp.n169 = icmp eq i64 %n.vec162, %wide.trip.count116
  br i1 %cmp.n169, label %._crit_edge97, label %scalar.ph158.preheader

.lr.ph94:                                         ; preds = %.lr.ph94.preheader, %.lr.ph94
  %indvars.iv113 = phi i64 [ 0, %.lr.ph94.preheader ], [ %indvars.iv.next114, %.lr.ph94 ]
  %65 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv113
  %66 = load float, ptr %65, align 4, !tbaa !17
  %67 = fmul float %66, 7.812500e-03
  %68 = call float @sigmoid_approx(float noundef %67)
  store float %68, ptr %65, align 4, !tbaa !17
  %indvars.iv.next114 = add nuw nsw i64 %indvars.iv113, 1
  %exitcond117.not = icmp eq i64 %indvars.iv.next114, %wide.trip.count116
  br i1 %exitcond117.not, label %.preheader90, label %.lr.ph94, !llvm.loop !37

scalar.ph158:                                     ; preds = %scalar.ph158.prol.loopexit, %scalar.ph158
  %indvars.iv118 = phi i64 [ %indvars.iv.next119.3, %scalar.ph158 ], [ %indvars.iv118.unr, %scalar.ph158.prol.loopexit ]
  %gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv118
  %69 = load i8, ptr %gep, align 1, !tbaa !13
  %70 = sitofp i8 %69 to float
  %71 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv118
  store float %70, ptr %71, align 4, !tbaa !17
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %gep.1 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next119
  %72 = load i8, ptr %gep.1, align 1, !tbaa !13
  %73 = sitofp i8 %72 to float
  %74 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv.next119
  store float %73, ptr %74, align 4, !tbaa !17
  %indvars.iv.next119.1 = add nuw nsw i64 %indvars.iv118, 2
  %gep.2 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next119.1
  %75 = load i8, ptr %gep.2, align 1, !tbaa !13
  %76 = sitofp i8 %75 to float
  %77 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv.next119.1
  store float %76, ptr %77, align 4, !tbaa !17
  %indvars.iv.next119.2 = add nuw nsw i64 %indvars.iv118, 3
  %gep.3 = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv.next119.2
  %78 = load i8, ptr %gep.3, align 1, !tbaa !13
  %79 = sitofp i8 %78 to float
  %80 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv.next119.2
  store float %79, ptr %80, align 4, !tbaa !17
  %indvars.iv.next119.3 = add nuw nsw i64 %indvars.iv118, 4
  %exitcond122.not.3 = icmp eq i64 %indvars.iv.next119.3, %50
  br i1 %exitcond122.not.3, label %._crit_edge97, label %scalar.ph158, !llvm.loop !38

._crit_edge97:                                    ; preds = %scalar.ph158.prol.loopexit, %scalar.ph158, %middle.block157
  %81 = load ptr, ptr %45, align 8, !tbaa !28
  %82 = zext nneg i32 %11 to i64
  %83 = getelementptr inbounds i8, ptr %81, i64 %82
  call void @gemm_accum(ptr noundef nonnull %6, ptr noundef nonnull %83, i32 noundef %11, i32 noundef %9, i32 noundef %12, ptr noundef %2)
  %84 = load ptr, ptr %47, align 8, !tbaa !29
  %85 = getelementptr inbounds i8, ptr %84, i64 %82
  call void @gemm_accum(ptr noundef nonnull %6, ptr noundef nonnull %85, i32 noundef %11, i32 noundef %11, i32 noundef %12, ptr noundef %1)
  br i1 %13, label %.lr.ph100.preheader, label %._crit_edge111.critedge

.lr.ph100.preheader:                              ; preds = %._crit_edge97
  %wide.trip.count126 = zext nneg i32 %11 to i64
  br label %.lr.ph100

.preheader89:                                     ; preds = %.lr.ph100
  br i1 %13, label %.lr.ph102, label %._crit_edge111.critedge

.lr.ph102:                                        ; preds = %.preheader89
  %86 = load ptr, ptr %0, align 8, !tbaa !12
  %87 = shl nuw nsw i32 %11, 1
  %88 = zext nneg i32 %87 to i64
  %wide.trip.count131 = zext nneg i32 %11 to i64
  %invariant.gep146 = getelementptr inbounds i8, ptr %86, i64 %88
  %min.iters.check178 = icmp ult i32 %11, 8
  br i1 %min.iters.check178, label %scalar.ph177.preheader, label %vector.memcheck170

scalar.ph177.preheader:                           ; preds = %middle.block176, %vector.memcheck170, %.lr.ph102
  %indvars.iv128.ph = phi i64 [ 0, %vector.memcheck170 ], [ 0, %.lr.ph102 ], [ %n.vec181, %middle.block176 ]
  %xtraiter208 = and i64 %wide.trip.count116, 3
  %lcmp.mod209.not = icmp eq i64 %xtraiter208, 0
  br i1 %lcmp.mod209.not, label %scalar.ph177.prol.loopexit, label %scalar.ph177.prol

scalar.ph177.prol:                                ; preds = %scalar.ph177.preheader, %scalar.ph177.prol
  %indvars.iv128.prol = phi i64 [ %indvars.iv.next129.prol, %scalar.ph177.prol ], [ %indvars.iv128.ph, %scalar.ph177.preheader ]
  %prol.iter210 = phi i64 [ %prol.iter210.next, %scalar.ph177.prol ], [ 0, %scalar.ph177.preheader ]
  %gep147.prol = getelementptr inbounds i8, ptr %invariant.gep146, i64 %indvars.iv128.prol
  %89 = load i8, ptr %gep147.prol, align 1, !tbaa !13
  %90 = sitofp i8 %89 to float
  %91 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %indvars.iv128.prol
  store float %90, ptr %91, align 4, !tbaa !17
  %indvars.iv.next129.prol = add nuw nsw i64 %indvars.iv128.prol, 1
  %prol.iter210.next = add i64 %prol.iter210, 1
  %prol.iter210.cmp.not = icmp eq i64 %prol.iter210.next, %xtraiter208
  br i1 %prol.iter210.cmp.not, label %scalar.ph177.prol.loopexit, label %scalar.ph177.prol, !llvm.loop !39

scalar.ph177.prol.loopexit:                       ; preds = %scalar.ph177.prol, %scalar.ph177.preheader
  %indvars.iv128.unr = phi i64 [ %indvars.iv128.ph, %scalar.ph177.preheader ], [ %indvars.iv.next129.prol, %scalar.ph177.prol ]
  %92 = sub nsw i64 %indvars.iv128.ph, %wide.trip.count116
  %93 = icmp ugt i64 %92, -4
  br i1 %93, label %.preheader88, label %scalar.ph177

vector.memcheck170:                               ; preds = %.lr.ph102
  %94 = shl nuw nsw i64 %wide.trip.count116, 2
  %scevgep171 = getelementptr i8, ptr %7, i64 %94
  %95 = getelementptr i8, ptr %86, i64 %wide.trip.count116
  %scevgep172 = getelementptr i8, ptr %95, i64 %88
  %bound0173 = icmp ult ptr %7, %scevgep172
  %bound1174 = icmp ult ptr %invariant.gep146, %scevgep171
  %found.conflict175 = and i1 %bound0173, %bound1174
  br i1 %found.conflict175, label %scalar.ph177.preheader, label %vector.ph179

vector.ph179:                                     ; preds = %vector.memcheck170
  %n.vec181 = and i64 %wide.trip.count116, 2147483640
  br label %vector.body183

vector.body183:                                   ; preds = %vector.body183, %vector.ph179
  %index184 = phi i64 [ 0, %vector.ph179 ], [ %index.next187, %vector.body183 ]
  %96 = getelementptr inbounds i8, ptr %invariant.gep146, i64 %index184
  %97 = getelementptr inbounds i8, ptr %96, i64 4
  %wide.load185 = load <4 x i8>, ptr %96, align 1, !tbaa !13, !alias.scope !40
  %wide.load186 = load <4 x i8>, ptr %97, align 1, !tbaa !13, !alias.scope !40
  %98 = sitofp <4 x i8> %wide.load185 to <4 x float>
  %99 = sitofp <4 x i8> %wide.load186 to <4 x float>
  %100 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %index184
  %101 = getelementptr inbounds i8, ptr %100, i64 16
  store <4 x float> %98, ptr %100, align 16, !tbaa !17, !alias.scope !43, !noalias !40
  store <4 x float> %99, ptr %101, align 16, !tbaa !17, !alias.scope !43, !noalias !40
  %index.next187 = add nuw i64 %index184, 8
  %102 = icmp eq i64 %index.next187, %n.vec181
  br i1 %102, label %middle.block176, label %vector.body183, !llvm.loop !45

middle.block176:                                  ; preds = %vector.body183
  %cmp.n188 = icmp eq i64 %n.vec181, %wide.trip.count116
  br i1 %cmp.n188, label %.preheader88, label %scalar.ph177.preheader

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %.lr.ph100
  %indvars.iv123 = phi i64 [ 0, %.lr.ph100.preheader ], [ %indvars.iv.next124, %.lr.ph100 ]
  %103 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv123
  %104 = load float, ptr %103, align 4, !tbaa !17
  %105 = fmul float %104, 7.812500e-03
  %106 = call float @sigmoid_approx(float noundef %105)
  store float %106, ptr %103, align 4, !tbaa !17
  %indvars.iv.next124 = add nuw nsw i64 %indvars.iv123, 1
  %exitcond127.not = icmp eq i64 %indvars.iv.next124, %wide.trip.count126
  br i1 %exitcond127.not, label %.preheader89, label %.lr.ph100, !llvm.loop !46

.preheader88:                                     ; preds = %scalar.ph177.prol.loopexit, %scalar.ph177, %middle.block176
  br i1 %13, label %.lr.ph104.preheader, label %._crit_edge111.critedge

.lr.ph104.preheader:                              ; preds = %.preheader88
  %wide.trip.count136 = zext nneg i32 %11 to i64
  %min.iters.check191 = icmp ult i32 %11, 8
  br i1 %min.iters.check191, label %.lr.ph104.preheader204, label %vector.ph192

.lr.ph104.preheader204:                           ; preds = %middle.block189, %.lr.ph104.preheader
  %indvars.iv133.ph = phi i64 [ 0, %.lr.ph104.preheader ], [ %n.vec194, %middle.block189 ]
  br label %.lr.ph104

vector.ph192:                                     ; preds = %.lr.ph104.preheader
  %n.vec194 = and i64 %wide.trip.count116, 2147483640
  br label %vector.body196

vector.body196:                                   ; preds = %vector.body196, %vector.ph192
  %index197 = phi i64 [ 0, %vector.ph192 ], [ %index.next202, %vector.body196 ]
  %107 = getelementptr inbounds float, ptr %1, i64 %index197
  %108 = getelementptr inbounds i8, ptr %107, i64 16
  %wide.load198 = load <4 x float>, ptr %107, align 4, !tbaa !17
  %wide.load199 = load <4 x float>, ptr %108, align 4, !tbaa !17
  %109 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %index197
  %110 = getelementptr inbounds i8, ptr %109, i64 16
  %wide.load200 = load <4 x float>, ptr %109, align 16, !tbaa !17
  %wide.load201 = load <4 x float>, ptr %110, align 16, !tbaa !17
  %111 = fmul <4 x float> %wide.load198, %wide.load200
  %112 = fmul <4 x float> %wide.load199, %wide.load201
  %113 = getelementptr inbounds [32 x float], ptr %4, i64 0, i64 %index197
  %114 = getelementptr inbounds i8, ptr %113, i64 16
  store <4 x float> %111, ptr %113, align 16, !tbaa !17
  store <4 x float> %112, ptr %114, align 16, !tbaa !17
  %index.next202 = add nuw i64 %index197, 8
  %115 = icmp eq i64 %index.next202, %n.vec194
  br i1 %115, label %middle.block189, label %vector.body196, !llvm.loop !47

middle.block189:                                  ; preds = %vector.body196
  %cmp.n203 = icmp eq i64 %n.vec194, %wide.trip.count116
  br i1 %cmp.n203, label %._crit_edge105, label %.lr.ph104.preheader204

scalar.ph177:                                     ; preds = %scalar.ph177.prol.loopexit, %scalar.ph177
  %indvars.iv128 = phi i64 [ %indvars.iv.next129.3, %scalar.ph177 ], [ %indvars.iv128.unr, %scalar.ph177.prol.loopexit ]
  %gep147 = getelementptr inbounds i8, ptr %invariant.gep146, i64 %indvars.iv128
  %116 = load i8, ptr %gep147, align 1, !tbaa !13
  %117 = sitofp i8 %116 to float
  %118 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %indvars.iv128
  store float %117, ptr %118, align 4, !tbaa !17
  %indvars.iv.next129 = add nuw nsw i64 %indvars.iv128, 1
  %gep147.1 = getelementptr inbounds i8, ptr %invariant.gep146, i64 %indvars.iv.next129
  %119 = load i8, ptr %gep147.1, align 1, !tbaa !13
  %120 = sitofp i8 %119 to float
  %121 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %indvars.iv.next129
  store float %120, ptr %121, align 4, !tbaa !17
  %indvars.iv.next129.1 = add nuw nsw i64 %indvars.iv128, 2
  %gep147.2 = getelementptr inbounds i8, ptr %invariant.gep146, i64 %indvars.iv.next129.1
  %122 = load i8, ptr %gep147.2, align 1, !tbaa !13
  %123 = sitofp i8 %122 to float
  %124 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %indvars.iv.next129.1
  store float %123, ptr %124, align 4, !tbaa !17
  %indvars.iv.next129.2 = add nuw nsw i64 %indvars.iv128, 3
  %gep147.3 = getelementptr inbounds i8, ptr %invariant.gep146, i64 %indvars.iv.next129.2
  %125 = load i8, ptr %gep147.3, align 1, !tbaa !13
  %126 = sitofp i8 %125 to float
  %127 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %indvars.iv.next129.2
  store float %126, ptr %127, align 4, !tbaa !17
  %indvars.iv.next129.3 = add nuw nsw i64 %indvars.iv128, 4
  %exitcond132.not.3 = icmp eq i64 %indvars.iv.next129.3, %wide.trip.count131
  br i1 %exitcond132.not.3, label %.preheader88, label %scalar.ph177, !llvm.loop !48

.lr.ph104:                                        ; preds = %.lr.ph104.preheader204, %.lr.ph104
  %indvars.iv133 = phi i64 [ %indvars.iv.next134, %.lr.ph104 ], [ %indvars.iv133.ph, %.lr.ph104.preheader204 ]
  %128 = getelementptr inbounds float, ptr %1, i64 %indvars.iv133
  %129 = load float, ptr %128, align 4, !tbaa !17
  %130 = getelementptr inbounds [32 x float], ptr %6, i64 0, i64 %indvars.iv133
  %131 = load float, ptr %130, align 4, !tbaa !17
  %132 = fmul float %129, %131
  %133 = getelementptr inbounds [32 x float], ptr %4, i64 0, i64 %indvars.iv133
  store float %132, ptr %133, align 4, !tbaa !17
  %indvars.iv.next134 = add nuw nsw i64 %indvars.iv133, 1
  %exitcond137.not = icmp eq i64 %indvars.iv.next134, %wide.trip.count136
  br i1 %exitcond137.not, label %._crit_edge105, label %.lr.ph104, !llvm.loop !49

._crit_edge105.critedge:                          ; preds = %.preheader90, %._crit_edge
  %134 = load ptr, ptr %45, align 8, !tbaa !28
  %135 = sext i32 %11 to i64
  %136 = getelementptr inbounds i8, ptr %134, i64 %135
  call void @gemm_accum(ptr noundef nonnull %6, ptr noundef %136, i32 noundef %11, i32 noundef %9, i32 noundef %12, ptr noundef %2)
  %137 = load ptr, ptr %47, align 8, !tbaa !29
  %138 = getelementptr inbounds i8, ptr %137, i64 %135
  call void @gemm_accum(ptr noundef nonnull %6, ptr noundef %138, i32 noundef %11, i32 noundef %11, i32 noundef %12, ptr noundef %1)
  br label %._crit_edge105

._crit_edge105:                                   ; preds = %.lr.ph104, %middle.block189, %._crit_edge105.critedge
  %139 = load ptr, ptr %45, align 8, !tbaa !28
  %140 = shl nsw i32 %11, 1
  %141 = sext i32 %140 to i64
  %142 = getelementptr inbounds i8, ptr %139, i64 %141
  call void @gemm_accum(ptr noundef nonnull %7, ptr noundef %142, i32 noundef %11, i32 noundef %9, i32 noundef %12, ptr noundef %2)
  %143 = load ptr, ptr %47, align 8, !tbaa !29
  %144 = getelementptr inbounds i8, ptr %143, i64 %141
  call void @gemm_accum(ptr noundef nonnull %7, ptr noundef %144, i32 noundef %11, i32 noundef %11, i32 noundef %12, ptr noundef nonnull %4)
  br i1 %13, label %.lr.ph108.preheader, label %._crit_edge111

.lr.ph108.preheader:                              ; preds = %._crit_edge105
  %wide.trip.count141 = zext nneg i32 %11 to i64
  br label %.lr.ph108

.preheader:                                       ; preds = %.lr.ph108
  br i1 %13, label %.lr.ph110.preheader, label %._crit_edge111

.lr.ph110.preheader:                              ; preds = %.preheader
  %145 = zext nneg i32 %11 to i64
  %146 = shl nuw nsw i64 %145, 2
  call void @llvm.memcpy.p0.p0.i64(ptr nonnull align 4 %1, ptr nonnull align 16 %7, i64 %146, i1 false), !tbaa !17
  br label %._crit_edge111

.lr.ph108:                                        ; preds = %.lr.ph108.preheader, %.lr.ph108
  %indvars.iv138 = phi i64 [ 0, %.lr.ph108.preheader ], [ %indvars.iv.next139, %.lr.ph108 ]
  %147 = getelementptr inbounds [32 x float], ptr %5, i64 0, i64 %indvars.iv138
  %148 = load float, ptr %147, align 4, !tbaa !17
  %149 = getelementptr inbounds float, ptr %1, i64 %indvars.iv138
  %150 = load float, ptr %149, align 4, !tbaa !17
  %151 = fsub float 1.000000e+00, %148
  %152 = getelementptr inbounds [32 x float], ptr %7, i64 0, i64 %indvars.iv138
  %153 = load float, ptr %152, align 4, !tbaa !17
  %154 = fmul float %153, 7.812500e-03
  %155 = call float @tansig_approx(float noundef %154)
  %156 = fmul float %151, %155
  %157 = call float @llvm.fmuladd.f32(float %148, float %150, float %156)
  store float %157, ptr %152, align 4, !tbaa !17
  %indvars.iv.next139 = add nuw nsw i64 %indvars.iv138, 1
  %exitcond142.not = icmp eq i64 %indvars.iv.next139, %wide.trip.count141
  br i1 %exitcond142.not, label %.preheader, label %.lr.ph108, !llvm.loop !50

._crit_edge111.critedge:                          ; preds = %.preheader88, %.preheader89, %._crit_edge97
  %158 = load ptr, ptr %45, align 8, !tbaa !28
  %159 = shl nuw nsw i32 %11, 1
  %160 = zext nneg i32 %159 to i64
  %161 = getelementptr inbounds i8, ptr %158, i64 %160
  call void @gemm_accum(ptr noundef nonnull %7, ptr noundef nonnull %161, i32 noundef %11, i32 noundef %9, i32 noundef %12, ptr noundef %2)
  %162 = load ptr, ptr %47, align 8, !tbaa !29
  %163 = getelementptr inbounds i8, ptr %162, i64 %160
  call void @gemm_accum(ptr noundef nonnull %7, ptr noundef nonnull %163, i32 noundef %11, i32 noundef %11, i32 noundef %12, ptr noundef nonnull %4)
  br label %._crit_edge111

._crit_edge111:                                   ; preds = %._crit_edge111.critedge, %._crit_edge105, %.lr.ph110.preheader, %.preheader
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %7) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 128, ptr nonnull %4) #5
  ret void
}

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #3

; 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) #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { inlinehint 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 nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 24}
!6 = !{!"", !7, i64 0, !7, i64 8, !7, i64 16, !10, i64 24, !10, i64 28}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!6, !10, i64 28}
!12 = !{!6, !7, i64 0}
!13 = !{!8, !8, i64 0}
!14 = !{!15}
!15 = distinct !{!15, !16}
!16 = distinct !{!16, !"LVerDomain"}
!17 = !{!18, !18, i64 0}
!18 = !{!"float", !8, i64 0}
!19 = !{!20}
!20 = distinct !{!20, !16}
!21 = distinct !{!21, !22, !23, !24}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!"llvm.loop.isvectorized", i32 1}
!24 = !{!"llvm.loop.unroll.runtime.disable"}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = distinct !{!27, !22, !23}
!28 = !{!6, !7, i64 8}
!29 = !{!6, !7, i64 16}
!30 = distinct !{!30, !26}
!31 = !{!32}
!32 = distinct !{!32, !33}
!33 = distinct !{!33, !"LVerDomain"}
!34 = !{!35}
!35 = distinct !{!35, !33}
!36 = distinct !{!36, !22, !23, !24}
!37 = distinct !{!37, !22}
!38 = distinct !{!38, !22, !23}
!39 = distinct !{!39, !26}
!40 = !{!41}
!41 = distinct !{!41, !42}
!42 = distinct !{!42, !"LVerDomain"}
!43 = !{!44}
!44 = distinct !{!44, !42}
!45 = distinct !{!45, !22, !23, !24}
!46 = distinct !{!46, !22}
!47 = distinct !{!47, !22, !23, !24}
!48 = distinct !{!48, !22, !23}
!49 = distinct !{!49, !22, !24, !23}
!50 = distinct !{!50, !22}


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