; LLVM IR from jingweizhanghuai/Morn :: src/deep_learning (morn_tensor_channel)

; 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.TensorRegister = type { [32 x i8], ptr, ptr, ptr }
%struct.MLayer = type { [32 x i8], i32, ptr, ptr, ptr, i32 }
%struct.TensorMergePara = type { ptr, ptr, i32, i32 }
%struct.MTensor = type { i32, i32, i32, i32, ptr, i32 }

@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@__FUNCTION__.mTensorMergeBackward = external hidden unnamed_addr constant [21 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 @m_Exception(i32 noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, ptr 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 willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #2

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

; Function Attrs: nounwind uwtable
define dso_local void @mTensorMergeBackward(ptr noundef %0) #4 {
  %2 = alloca ptr, align 8
  %3 = alloca i32, align 4
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  br label %14

14:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 4, ptr %3) #5
  %15 = load ptr, ptr %2, align 8, !tbaa !5
  %16 = icmp eq ptr %15, null
  br i1 %16, label %21, label %17

17:                                               ; preds = %14
  %18 = load ptr, ptr %2, align 8, !tbaa !5
  %19 = ptrtoint ptr %18 to i64
  %20 = icmp eq i64 %19, -1
  br label %21

21:                                               ; preds = %17, %14
  %22 = phi i1 [ true, %14 ], [ %20, %17 ]
  %23 = zext i1 %22 to i32
  store i32 %23, ptr %3, align 4, !tbaa !9
  %24 = load i32, ptr %3, align 4, !tbaa !9
  %25 = icmp ne i32 %24, 0
  br i1 %25, label %26, label %28

26:                                               ; preds = %21
  %27 = load i32, ptr %3, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %27, i32 noundef -1, ptr noundef @.str.1, i32 noundef 104, ptr noundef @__FUNCTION__.mTensorMergeBackward, ptr noundef @.str.9)
  br label %28

28:                                               ; preds = %26, %21
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #5
  br label %29

29:                                               ; preds = %28
  br label %30

30:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  %31 = load ptr, ptr %2, align 8, !tbaa !5
  %32 = getelementptr inbounds %struct.MLayer, ptr %31, i32 0, i32 1
  %33 = load i32, ptr %32, align 8, !tbaa !11
  %34 = sext i32 %33 to i64
  %35 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %34
  %36 = getelementptr inbounds %struct.TensorRegister, ptr %35, i32 0, i32 0
  %37 = getelementptr inbounds [32 x i8], ptr %36, i64 0, i64 0
  %38 = call i32 @strcmp(ptr noundef @.str.10, ptr noundef %37) #6
  store i32 %38, ptr %4, align 4, !tbaa !9
  %39 = load i32, ptr %4, align 4, !tbaa !9
  %40 = icmp ne i32 %39, 0
  br i1 %40, label %41, label %43

41:                                               ; preds = %30
  %42 = load i32, ptr %4, align 4, !tbaa !9
  call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %42, i32 noundef -1, ptr noundef @.str.1, i32 noundef 105, ptr noundef @__FUNCTION__.mTensorMergeBackward, ptr noundef @.str.11)
  br label %43

43:                                               ; preds = %41, %30
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %44

44:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #5
  %45 = load ptr, ptr %2, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.MLayer, ptr %45, i32 0, i32 4
  %47 = load ptr, ptr %46, align 8, !tbaa !13
  store ptr %47, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #5
  %48 = load ptr, ptr %5, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.TensorMergePara, ptr %48, i32 0, i32 0
  %50 = load ptr, ptr %49, align 8, !tbaa !14
  %51 = getelementptr inbounds %struct.MLayer, ptr %50, i32 0, i32 3
  %52 = load ptr, ptr %51, align 8, !tbaa !16
  store ptr %52, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  %53 = load ptr, ptr %5, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TensorMergePara, ptr %53, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !17
  %56 = getelementptr inbounds %struct.MLayer, ptr %55, i32 0, i32 3
  %57 = load ptr, ptr %56, align 8, !tbaa !16
  store ptr %57, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %58 = load ptr, ptr %2, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.MLayer, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  store ptr %60, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  %61 = load ptr, ptr %8, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.MTensor, ptr %61, i32 0, i32 2
  %63 = load i32, ptr %62, align 8, !tbaa !18
  %64 = load ptr, ptr %8, align 8, !tbaa !5
  %65 = getelementptr inbounds %struct.MTensor, ptr %64, i32 0, i32 3
  %66 = load i32, ptr %65, align 4, !tbaa !20
  %67 = mul nsw i32 %63, %66
  store i32 %67, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  store i32 0, ptr %10, align 4, !tbaa !9
  br label %68

68:                                               ; preds = %274, %44
  %69 = load i32, ptr %10, align 4, !tbaa !9
  %70 = load ptr, ptr %8, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct.MTensor, ptr %70, i32 0, i32 0
  %72 = load i32, ptr %71, align 8, !tbaa !21
  %73 = icmp slt i32 %69, %72
  br i1 %73, label %75, label %74

74:                                               ; preds = %68
  store i32 6, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %277

75:                                               ; preds = %68
  %76 = load ptr, ptr %5, align 8, !tbaa !5
  %77 = getelementptr inbounds %struct.TensorMergePara, ptr %76, i32 0, i32 2
  %78 = load i32, ptr %77, align 8, !tbaa !22
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %80, label %164

80:                                               ; preds = %75
  %81 = load ptr, ptr %6, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.MTensor, ptr %81, i32 0, i32 4
  %83 = load ptr, ptr %82, align 8, !tbaa !23
  %84 = load i32, ptr %10, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds ptr, ptr %83, i64 %85
  %87 = load ptr, ptr %86, align 8, !tbaa !5
  %88 = load ptr, ptr %8, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.MTensor, ptr %88, i32 0, i32 4
  %90 = load ptr, ptr %89, align 8, !tbaa !23
  %91 = load i32, ptr %10, align 4, !tbaa !9
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds ptr, ptr %90, i64 %92
  %94 = load ptr, ptr %93, align 8, !tbaa !5
  %95 = icmp ne ptr %87, %94
  br i1 %95, label %96, label %164

96:                                               ; preds = %80
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.TensorMergePara, ptr %97, i32 0, i32 0
  %99 = load ptr, ptr %98, align 8, !tbaa !14
  %100 = getelementptr inbounds %struct.MLayer, ptr %99, i32 0, i32 5
  %101 = load i32, ptr %100, align 8, !tbaa !24
  %102 = icmp eq i32 %101, 0
  br i1 %102, label %103, label %125

103:                                              ; preds = %96
  %104 = load ptr, ptr %6, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.MTensor, ptr %104, i32 0, i32 4
  %106 = load ptr, ptr %105, align 8, !tbaa !23
  %107 = load i32, ptr %10, align 4, !tbaa !9
  %108 = sext i32 %107 to i64
  %109 = getelementptr inbounds ptr, ptr %106, i64 %108
  %110 = load ptr, ptr %109, align 8, !tbaa !5
  %111 = load ptr, ptr %8, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.MTensor, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !23
  %114 = load i32, ptr %10, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds ptr, ptr %113, i64 %115
  %117 = load ptr, ptr %116, align 8, !tbaa !5
  %118 = load ptr, ptr %6, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.MTensor, ptr %118, i32 0, i32 1
  %120 = load i32, ptr %119, align 4, !tbaa !25
  %121 = load i32, ptr %9, align 4, !tbaa !9
  %122 = mul nsw i32 %120, %121
  %123 = sext i32 %122 to i64
  %124 = mul i64 %123, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %110, ptr align 4 %117, i64 %124, i1 false)
  br label %163

125:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store i32 0, ptr %12, align 4, !tbaa !9
  br label %126

126:                                              ; preds = %159, %125
  %127 = load i32, ptr %12, align 4, !tbaa !9
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct.MTensor, ptr %128, i32 0, i32 1
  %130 = load i32, ptr %129, align 4, !tbaa !25
  %131 = load i32, ptr %9, align 4, !tbaa !9
  %132 = mul nsw i32 %130, %131
  %133 = icmp slt i32 %127, %132
  br i1 %133, label %135, label %134

134:                                              ; preds = %126
  store i32 9, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %162

135:                                              ; preds = %126
  %136 = load ptr, ptr %8, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.MTensor, ptr %136, i32 0, i32 4
  %138 = load ptr, ptr %137, align 8, !tbaa !23
  %139 = load i32, ptr %10, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds ptr, ptr %138, i64 %140
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  %143 = load i32, ptr %12, align 4, !tbaa !9
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds float, ptr %142, i64 %144
  %146 = load float, ptr %145, align 4, !tbaa !26
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.MTensor, ptr %147, i32 0, i32 4
  %149 = load ptr, ptr %148, align 8, !tbaa !23
  %150 = load i32, ptr %10, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = getelementptr inbounds ptr, ptr %149, i64 %151
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  %154 = load i32, ptr %12, align 4, !tbaa !9
  %155 = sext i32 %154 to i64
  %156 = getelementptr inbounds float, ptr %153, i64 %155
  %157 = load float, ptr %156, align 4, !tbaa !26
  %158 = fadd float %157, %146
  store float %158, ptr %156, align 4, !tbaa !26
  br label %159

159:                                              ; preds = %135
  %160 = load i32, ptr %12, align 4, !tbaa !9
  %161 = add nsw i32 %160, 1
  store i32 %161, ptr %12, align 4, !tbaa !9
  br label %126, !llvm.loop !28

162:                                              ; preds = %134
  br label %163

163:                                              ; preds = %162, %103
  br label %164

164:                                              ; preds = %163, %80, %75
  %165 = load ptr, ptr %5, align 8, !tbaa !5
  %166 = getelementptr inbounds %struct.TensorMergePara, ptr %165, i32 0, i32 3
  %167 = load i32, ptr %166, align 4, !tbaa !30
  %168 = icmp eq i32 %167, 1
  br i1 %168, label %169, label %273

169:                                              ; preds = %164
  %170 = load ptr, ptr %7, align 8, !tbaa !5
  %171 = getelementptr inbounds %struct.MTensor, ptr %170, i32 0, i32 4
  %172 = load ptr, ptr %171, align 8, !tbaa !23
  %173 = load i32, ptr %10, align 4, !tbaa !9
  %174 = sext i32 %173 to i64
  %175 = getelementptr inbounds ptr, ptr %172, i64 %174
  %176 = load ptr, ptr %175, align 8, !tbaa !5
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = getelementptr inbounds %struct.MTensor, ptr %177, i32 0, i32 4
  %179 = load ptr, ptr %178, align 8, !tbaa !23
  %180 = load i32, ptr %10, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds ptr, ptr %179, i64 %181
  %183 = load ptr, ptr %182, align 8, !tbaa !5
  %184 = load i32, ptr %9, align 4, !tbaa !9
  %185 = load ptr, ptr %6, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.MTensor, ptr %185, i32 0, i32 1
  %187 = load i32, ptr %186, align 4, !tbaa !25
  %188 = mul nsw i32 %184, %187
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds float, ptr %183, i64 %189
  %191 = icmp ne ptr %176, %190
  br i1 %191, label %192, label %273

192:                                              ; preds = %169
  %193 = load ptr, ptr %5, align 8, !tbaa !5
  %194 = getelementptr inbounds %struct.TensorMergePara, ptr %193, i32 0, i32 1
  %195 = load ptr, ptr %194, align 8, !tbaa !17
  %196 = getelementptr inbounds %struct.MLayer, ptr %195, i32 0, i32 5
  %197 = load i32, ptr %196, align 8, !tbaa !24
  %198 = icmp eq i32 %197, 0
  br i1 %198, label %199, label %228

199:                                              ; preds = %192
  %200 = load ptr, ptr %7, align 8, !tbaa !5
  %201 = getelementptr inbounds %struct.MTensor, ptr %200, i32 0, i32 4
  %202 = load ptr, ptr %201, align 8, !tbaa !23
  %203 = load i32, ptr %10, align 4, !tbaa !9
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds ptr, ptr %202, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = load ptr, ptr %8, align 8, !tbaa !5
  %208 = getelementptr inbounds %struct.MTensor, ptr %207, i32 0, i32 4
  %209 = load ptr, ptr %208, align 8, !tbaa !23
  %210 = load i32, ptr %10, align 4, !tbaa !9
  %211 = sext i32 %210 to i64
  %212 = getelementptr inbounds ptr, ptr %209, i64 %211
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = load i32, ptr %9, align 4, !tbaa !9
  %215 = load ptr, ptr %6, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.MTensor, ptr %215, i32 0, i32 1
  %217 = load i32, ptr %216, align 4, !tbaa !25
  %218 = mul nsw i32 %214, %217
  %219 = sext i32 %218 to i64
  %220 = getelementptr inbounds float, ptr %213, i64 %219
  %221 = load ptr, ptr %7, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.MTensor, ptr %221, i32 0, i32 1
  %223 = load i32, ptr %222, align 4, !tbaa !25
  %224 = load i32, ptr %9, align 4, !tbaa !9
  %225 = mul nsw i32 %223, %224
  %226 = sext i32 %225 to i64
  %227 = mul i64 %226, 4
  call void @llvm.memcpy.p0.p0.i64(ptr align 4 %206, ptr align 4 %220, i64 %227, i1 false)
  br label %272

228:                                              ; preds = %192
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  store i32 0, ptr %13, align 4, !tbaa !9
  br label %229

229:                                              ; preds = %268, %228
  %230 = load i32, ptr %13, align 4, !tbaa !9
  %231 = load ptr, ptr %7, align 8, !tbaa !5
  %232 = getelementptr inbounds %struct.MTensor, ptr %231, i32 0, i32 1
  %233 = load i32, ptr %232, align 4, !tbaa !25
  %234 = load i32, ptr %9, align 4, !tbaa !9
  %235 = mul nsw i32 %233, %234
  %236 = icmp slt i32 %230, %235
  br i1 %236, label %238, label %237

237:                                              ; preds = %229
  store i32 12, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %271

238:                                              ; preds = %229
  %239 = load ptr, ptr %8, align 8, !tbaa !5
  %240 = getelementptr inbounds %struct.MTensor, ptr %239, i32 0, i32 4
  %241 = load ptr, ptr %240, align 8, !tbaa !23
  %242 = load i32, ptr %10, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds ptr, ptr %241, i64 %243
  %245 = load ptr, ptr %244, align 8, !tbaa !5
  %246 = load i32, ptr %9, align 4, !tbaa !9
  %247 = load ptr, ptr %6, align 8, !tbaa !5
  %248 = getelementptr inbounds %struct.MTensor, ptr %247, i32 0, i32 1
  %249 = load i32, ptr %248, align 4, !tbaa !25
  %250 = mul nsw i32 %246, %249
  %251 = load i32, ptr %13, align 4, !tbaa !9
  %252 = add nsw i32 %250, %251
  %253 = sext i32 %252 to i64
  %254 = getelementptr inbounds float, ptr %245, i64 %253
  %255 = load float, ptr %254, align 4, !tbaa !26
  %256 = load ptr, ptr %7, align 8, !tbaa !5
  %257 = getelementptr inbounds %struct.MTensor, ptr %256, i32 0, i32 4
  %258 = load ptr, ptr %257, align 8, !tbaa !23
  %259 = load i32, ptr %10, align 4, !tbaa !9
  %260 = sext i32 %259 to i64
  %261 = getelementptr inbounds ptr, ptr %258, i64 %260
  %262 = load ptr, ptr %261, align 8, !tbaa !5
  %263 = load i32, ptr %13, align 4, !tbaa !9
  %264 = sext i32 %263 to i64
  %265 = getelementptr inbounds float, ptr %262, i64 %264
  %266 = load float, ptr %265, align 4, !tbaa !26
  %267 = fadd float %266, %255
  store float %267, ptr %265, align 4, !tbaa !26
  br label %268

268:                                              ; preds = %238
  %269 = load i32, ptr %13, align 4, !tbaa !9
  %270 = add nsw i32 %269, 1
  store i32 %270, ptr %13, align 4, !tbaa !9
  br label %229, !llvm.loop !31

271:                                              ; preds = %237
  br label %272

272:                                              ; preds = %271, %199
  br label %273

273:                                              ; preds = %272, %169, %164
  br label %274

274:                                              ; preds = %273
  %275 = load i32, ptr %10, align 4, !tbaa !9
  %276 = add nsw i32 %275, 1
  store i32 %276, ptr %10, align 4, !tbaa !9
  br label %68, !llvm.loop !32

277:                                              ; preds = %74
  %278 = load ptr, ptr %5, align 8, !tbaa !5
  %279 = getelementptr inbounds %struct.TensorMergePara, ptr %278, i32 0, i32 2
  %280 = load i32, ptr %279, align 8, !tbaa !22
  %281 = icmp eq i32 %280, 1
  br i1 %281, label %282, label %287

282:                                              ; preds = %277
  %283 = load ptr, ptr %5, align 8, !tbaa !5
  %284 = getelementptr inbounds %struct.TensorMergePara, ptr %283, i32 0, i32 0
  %285 = load ptr, ptr %284, align 8, !tbaa !14
  %286 = getelementptr inbounds %struct.MLayer, ptr %285, i32 0, i32 5
  store i32 1, ptr %286, align 8, !tbaa !24
  br label %287

287:                                              ; preds = %282, %277
  %288 = load ptr, ptr %5, align 8, !tbaa !5
  %289 = getelementptr inbounds %struct.TensorMergePara, ptr %288, i32 0, i32 3
  %290 = load i32, ptr %289, align 4, !tbaa !30
  %291 = icmp eq i32 %290, 1
  br i1 %291, label %292, label %297

292:                                              ; preds = %287
  %293 = load ptr, ptr %5, align 8, !tbaa !5
  %294 = getelementptr inbounds %struct.TensorMergePara, ptr %293, i32 0, i32 1
  %295 = load ptr, ptr %294, align 8, !tbaa !17
  %296 = getelementptr inbounds %struct.MLayer, ptr %295, i32 0, i32 5
  store i32 1, ptr %296, align 8, !tbaa !24
  br label %297

297:                                              ; preds = %292, %287
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #5
  ret void
}

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 willreturn memory(read) "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: readwrite) }
attributes #4 = { 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 #5 = { nounwind }
attributes #6 = { nounwind willreturn memory(read) }

!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 32}
!12 = !{!"MLayer", !7, i64 0, !10, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !10, i64 64}
!13 = !{!12, !6, i64 56}
!14 = !{!15, !6, i64 0}
!15 = !{!"TensorMergePara", !6, i64 0, !6, i64 8, !10, i64 16, !10, i64 20}
!16 = !{!12, !6, i64 48}
!17 = !{!15, !6, i64 8}
!18 = !{!19, !10, i64 8}
!19 = !{!"MTensor", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !6, i64 16, !10, i64 24}
!20 = !{!19, !10, i64 12}
!21 = !{!19, !10, i64 0}
!22 = !{!15, !10, i64 16}
!23 = !{!19, !6, i64 16}
!24 = !{!12, !10, i64 64}
!25 = !{!19, !10, i64 4}
!26 = !{!27, !27, i64 0}
!27 = !{!"float", !7, i64 0}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!15, !10, i64 20}
!31 = distinct !{!31, !29}
!32 = distinct !{!32, !29}


; 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.TensorRegister = type { [32 x i8], ptr, ptr, ptr }

@.str.1 = external hidden unnamed_addr constant [95 x i8], align 1
@morn_tensor_register = external global [256 x %struct.TensorRegister], align 16
@.str.9 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [19 x i8], align 1
@__FUNCTION__.mTensorMergeBackward = external hidden unnamed_addr constant [21 x i8], align 1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strcmp(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #1

; Function Attrs: mustprogress 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) #2

; Function Attrs: nounwind uwtable
define dso_local void @mTensorMergeBackward(ptr noundef %0) local_unnamed_addr #3 {
  %magicptr = ptrtoint ptr %0 to i64
  switch i64 %magicptr, label %7 [
    i64 -1, label %2
    i64 0, label %2
  ]

2:                                                ; preds = %1, %1
  %3 = icmp eq ptr %0, null
  %4 = icmp eq ptr %0, inttoptr (i64 -1 to ptr)
  %5 = or i1 %3, %4
  %6 = zext i1 %5 to i32
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %6, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 104, ptr noundef nonnull @__FUNCTION__.mTensorMergeBackward, ptr noundef nonnull @.str.9) #4
  br label %7

7:                                                ; preds = %1, %2
  %8 = getelementptr inbounds i8, ptr %0, i64 32
  %9 = load i32, ptr %8, align 8, !tbaa !5
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds [256 x %struct.TensorRegister], ptr @morn_tensor_register, i64 0, i64 %10
  %12 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) @.str.10, ptr noundef nonnull dereferenceable(1) %11) #5
  %.not = icmp eq i32 %12, 0
  br i1 %.not, label %14, label %13

13:                                               ; preds = %7
  tail call void (i32, i32, ptr, i32, ptr, ptr, ...) @m_Exception(i32 noundef %12, i32 noundef -1, ptr noundef nonnull @.str.1, i32 noundef 105, ptr noundef nonnull @__FUNCTION__.mTensorMergeBackward, ptr noundef nonnull @.str.11) #4
  br label %14

14:                                               ; preds = %13, %7
  %15 = getelementptr inbounds i8, ptr %0, i64 56
  %16 = load ptr, ptr %15, align 8, !tbaa !11
  %17 = getelementptr inbounds i8, ptr %16, i64 8
  %18 = getelementptr inbounds i8, ptr %0, i64 48
  %19 = load ptr, ptr %18, align 8, !tbaa !12
  %20 = getelementptr inbounds i8, ptr %19, i64 8
  %21 = load i32, ptr %20, align 8, !tbaa !13
  %22 = getelementptr inbounds i8, ptr %19, i64 12
  %23 = load i32, ptr %22, align 4, !tbaa !15
  %24 = mul i32 %23, %21
  %25 = load i32, ptr %19, align 8, !tbaa !16
  %26 = icmp sgt i32 %25, 0
  br i1 %26, label %.lr.ph84, label %._crit_edge

.lr.ph84:                                         ; preds = %14
  %27 = load ptr, ptr %17, align 8, !tbaa !17
  %28 = getelementptr inbounds i8, ptr %27, i64 48
  %29 = load ptr, ptr %28, align 8, !tbaa !12
  %30 = load ptr, ptr %16, align 8, !tbaa !19
  %31 = getelementptr inbounds i8, ptr %30, i64 48
  %32 = load ptr, ptr %31, align 8, !tbaa !12
  %33 = getelementptr inbounds i8, ptr %16, i64 16
  %34 = getelementptr inbounds i8, ptr %32, i64 16
  %35 = getelementptr inbounds i8, ptr %19, i64 16
  %36 = getelementptr inbounds i8, ptr %32, i64 4
  %37 = getelementptr inbounds i8, ptr %16, i64 20
  %38 = getelementptr inbounds i8, ptr %29, i64 16
  %39 = getelementptr inbounds i8, ptr %29, i64 4
  br label %43

._crit_edge:                                      ; preds = %.loopexit, %14
  %40 = getelementptr inbounds i8, ptr %16, i64 16
  %41 = load i32, ptr %40, align 8, !tbaa !20
  %42 = icmp eq i32 %41, 1
  br i1 %42, label %158, label %161

43:                                               ; preds = %.lr.ph84, %.loopexit
  %indvars.iv91 = phi i64 [ 0, %.lr.ph84 ], [ %indvars.iv.next92, %.loopexit ]
  %44 = load i32, ptr %33, align 8, !tbaa !20
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %46, label %.loopexit79

46:                                               ; preds = %43
  %47 = load ptr, ptr %34, align 8, !tbaa !21
  %48 = getelementptr inbounds ptr, ptr %47, i64 %indvars.iv91
  %49 = load ptr, ptr %48, align 8, !tbaa !22
  %50 = load ptr, ptr %35, align 8, !tbaa !21
  %51 = getelementptr inbounds ptr, ptr %50, i64 %indvars.iv91
  %52 = load ptr, ptr %51, align 8, !tbaa !22
  %.not76 = icmp eq ptr %49, %52
  br i1 %.not76, label %.loopexit79, label %53

53:                                               ; preds = %46
  %54 = load ptr, ptr %16, align 8, !tbaa !19
  %55 = getelementptr inbounds i8, ptr %54, i64 64
  %56 = load i32, ptr %55, align 8, !tbaa !23
  %57 = icmp eq i32 %56, 0
  %58 = load i32, ptr %36, align 4, !tbaa !24
  %59 = mul i32 %58, %24
  br i1 %57, label %76, label %.preheader78

.preheader78:                                     ; preds = %53
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %.lr.ph.preheader, label %.loopexit79

.lr.ph.preheader:                                 ; preds = %.preheader78
  %wide.trip.count = zext nneg i32 %59 to i64
  %min.iters.check106 = icmp ult i32 %59, 8
  br i1 %min.iters.check106, label %.lr.ph.preheader120, label %vector.memcheck98

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

.lr.ph.prol:                                      ; preds = %.lr.ph.preheader120, %.lr.ph.prol
  %indvars.iv.prol = phi i64 [ %indvars.iv.next.prol, %.lr.ph.prol ], [ %indvars.iv.ph, %.lr.ph.preheader120 ]
  %prol.iter = phi i64 [ %prol.iter.next, %.lr.ph.prol ], [ 0, %.lr.ph.preheader120 ]
  %61 = getelementptr inbounds float, ptr %52, i64 %indvars.iv.prol
  %62 = load float, ptr %61, align 4, !tbaa !25
  %63 = getelementptr inbounds float, ptr %49, i64 %indvars.iv.prol
  %64 = load float, ptr %63, align 4, !tbaa !25
  %65 = fadd float %62, %64
  store float %65, ptr %63, align 4, !tbaa !25
  %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 %.lr.ph.prol.loopexit, label %.lr.ph.prol, !llvm.loop !27

.lr.ph.prol.loopexit:                             ; preds = %.lr.ph.prol, %.lr.ph.preheader120
  %indvars.iv.unr = phi i64 [ %indvars.iv.ph, %.lr.ph.preheader120 ], [ %indvars.iv.next.prol, %.lr.ph.prol ]
  %66 = sub nsw i64 %indvars.iv.ph, %wide.trip.count
  %67 = icmp ugt i64 %66, -4
  br i1 %67, label %.loopexit79, label %.lr.ph

vector.memcheck98:                                ; preds = %.lr.ph.preheader
  %68 = shl nuw nsw i64 %wide.trip.count, 2
  %scevgep99 = getelementptr i8, ptr %49, i64 %68
  %scevgep100 = getelementptr i8, ptr %52, i64 %68
  %bound0101 = icmp ult ptr %49, %scevgep100
  %bound1102 = icmp ult ptr %52, %scevgep99
  %found.conflict103 = and i1 %bound0101, %bound1102
  br i1 %found.conflict103, label %.lr.ph.preheader120, label %vector.ph107

vector.ph107:                                     ; preds = %vector.memcheck98
  %n.vec109 = and i64 %wide.trip.count, 2147483640
  br label %vector.body111

vector.body111:                                   ; preds = %vector.body111, %vector.ph107
  %index112 = phi i64 [ 0, %vector.ph107 ], [ %index.next117, %vector.body111 ]
  %69 = getelementptr inbounds float, ptr %52, i64 %index112
  %70 = getelementptr inbounds i8, ptr %69, i64 16
  %wide.load113 = load <4 x float>, ptr %69, align 4, !tbaa !25, !alias.scope !29
  %wide.load114 = load <4 x float>, ptr %70, align 4, !tbaa !25, !alias.scope !29
  %71 = getelementptr inbounds float, ptr %49, i64 %index112
  %72 = getelementptr inbounds i8, ptr %71, i64 16
  %wide.load115 = load <4 x float>, ptr %71, align 4, !tbaa !25, !alias.scope !32, !noalias !29
  %wide.load116 = load <4 x float>, ptr %72, align 4, !tbaa !25, !alias.scope !32, !noalias !29
  %73 = fadd <4 x float> %wide.load113, %wide.load115
  %74 = fadd <4 x float> %wide.load114, %wide.load116
  store <4 x float> %73, ptr %71, align 4, !tbaa !25, !alias.scope !32, !noalias !29
  store <4 x float> %74, ptr %72, align 4, !tbaa !25, !alias.scope !32, !noalias !29
  %index.next117 = add nuw i64 %index112, 8
  %75 = icmp eq i64 %index.next117, %n.vec109
  br i1 %75, label %middle.block104, label %vector.body111, !llvm.loop !34

middle.block104:                                  ; preds = %vector.body111
  %cmp.n118 = icmp eq i64 %n.vec109, %wide.trip.count
  br i1 %cmp.n118, label %.loopexit79, label %.lr.ph.preheader120

76:                                               ; preds = %53
  %77 = sext i32 %59 to i64
  %78 = shl nsw i64 %77, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %49, ptr align 4 %52, i64 %78, i1 false)
  br label %.loopexit79

.lr.ph:                                           ; preds = %.lr.ph.prol.loopexit, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next.3, %.lr.ph ], [ %indvars.iv.unr, %.lr.ph.prol.loopexit ]
  %79 = getelementptr inbounds float, ptr %52, i64 %indvars.iv
  %80 = load float, ptr %79, align 4, !tbaa !25
  %81 = getelementptr inbounds float, ptr %49, i64 %indvars.iv
  %82 = load float, ptr %81, align 4, !tbaa !25
  %83 = fadd float %80, %82
  store float %83, ptr %81, align 4, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %84 = getelementptr inbounds float, ptr %52, i64 %indvars.iv.next
  %85 = load float, ptr %84, align 4, !tbaa !25
  %86 = getelementptr inbounds float, ptr %49, i64 %indvars.iv.next
  %87 = load float, ptr %86, align 4, !tbaa !25
  %88 = fadd float %85, %87
  store float %88, ptr %86, align 4, !tbaa !25
  %indvars.iv.next.1 = add nuw nsw i64 %indvars.iv, 2
  %89 = getelementptr inbounds float, ptr %52, i64 %indvars.iv.next.1
  %90 = load float, ptr %89, align 4, !tbaa !25
  %91 = getelementptr inbounds float, ptr %49, i64 %indvars.iv.next.1
  %92 = load float, ptr %91, align 4, !tbaa !25
  %93 = fadd float %90, %92
  store float %93, ptr %91, align 4, !tbaa !25
  %indvars.iv.next.2 = add nuw nsw i64 %indvars.iv, 3
  %94 = getelementptr inbounds float, ptr %52, i64 %indvars.iv.next.2
  %95 = load float, ptr %94, align 4, !tbaa !25
  %96 = getelementptr inbounds float, ptr %49, i64 %indvars.iv.next.2
  %97 = load float, ptr %96, align 4, !tbaa !25
  %98 = fadd float %95, %97
  store float %98, ptr %96, align 4, !tbaa !25
  %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 %.loopexit79, label %.lr.ph, !llvm.loop !38

.loopexit79:                                      ; preds = %.lr.ph.prol.loopexit, %.lr.ph, %middle.block104, %.preheader78, %76, %46, %43
  %99 = load i32, ptr %37, align 4, !tbaa !39
  %100 = icmp eq i32 %99, 1
  br i1 %100, label %101, label %.loopexit

101:                                              ; preds = %.loopexit79
  %102 = load ptr, ptr %38, align 8, !tbaa !21
  %103 = getelementptr inbounds ptr, ptr %102, i64 %indvars.iv91
  %104 = load ptr, ptr %103, align 8, !tbaa !22
  %105 = load ptr, ptr %35, align 8, !tbaa !21
  %106 = getelementptr inbounds ptr, ptr %105, i64 %indvars.iv91
  %107 = load ptr, ptr %106, align 8, !tbaa !22
  %108 = load i32, ptr %36, align 4, !tbaa !24
  %109 = mul nsw i32 %108, %24
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds float, ptr %107, i64 %110
  %.not77 = icmp eq ptr %104, %111
  br i1 %.not77, label %.loopexit, label %112

112:                                              ; preds = %101
  %113 = load ptr, ptr %17, align 8, !tbaa !17
  %114 = getelementptr inbounds i8, ptr %113, i64 64
  %115 = load i32, ptr %114, align 8, !tbaa !23
  %116 = icmp eq i32 %115, 0
  %117 = load i32, ptr %39, align 4, !tbaa !24
  %118 = mul i32 %117, %24
  br i1 %116, label %136, label %.preheader

.preheader:                                       ; preds = %112
  %119 = icmp sgt i32 %118, 0
  br i1 %119, label %.lr.ph82.preheader, label %.loopexit

.lr.ph82.preheader:                               ; preds = %.preheader
  %wide.trip.count89 = zext nneg i32 %118 to i64
  %invariant.gep = getelementptr float, ptr %107, i64 %110
  %min.iters.check = icmp ult i32 %118, 8
  br i1 %min.iters.check, label %.lr.ph82.preheader119, label %vector.memcheck

.lr.ph82.preheader119:                            ; preds = %middle.block, %vector.memcheck, %.lr.ph82.preheader
  %indvars.iv86.ph = phi i64 [ 0, %vector.memcheck ], [ 0, %.lr.ph82.preheader ], [ %n.vec, %middle.block ]
  %xtraiter121 = and i64 %wide.trip.count89, 3
  %lcmp.mod122.not = icmp eq i64 %xtraiter121, 0
  br i1 %lcmp.mod122.not, label %.lr.ph82.prol.loopexit, label %.lr.ph82.prol

.lr.ph82.prol:                                    ; preds = %.lr.ph82.preheader119, %.lr.ph82.prol
  %indvars.iv86.prol = phi i64 [ %indvars.iv.next87.prol, %.lr.ph82.prol ], [ %indvars.iv86.ph, %.lr.ph82.preheader119 ]
  %prol.iter123 = phi i64 [ %prol.iter123.next, %.lr.ph82.prol ], [ 0, %.lr.ph82.preheader119 ]
  %gep.prol = getelementptr float, ptr %invariant.gep, i64 %indvars.iv86.prol
  %120 = load float, ptr %gep.prol, align 4, !tbaa !25
  %121 = getelementptr inbounds float, ptr %104, i64 %indvars.iv86.prol
  %122 = load float, ptr %121, align 4, !tbaa !25
  %123 = fadd float %120, %122
  store float %123, ptr %121, align 4, !tbaa !25
  %indvars.iv.next87.prol = add nuw nsw i64 %indvars.iv86.prol, 1
  %prol.iter123.next = add i64 %prol.iter123, 1
  %prol.iter123.cmp.not = icmp eq i64 %prol.iter123.next, %xtraiter121
  br i1 %prol.iter123.cmp.not, label %.lr.ph82.prol.loopexit, label %.lr.ph82.prol, !llvm.loop !40

.lr.ph82.prol.loopexit:                           ; preds = %.lr.ph82.prol, %.lr.ph82.preheader119
  %indvars.iv86.unr = phi i64 [ %indvars.iv86.ph, %.lr.ph82.preheader119 ], [ %indvars.iv.next87.prol, %.lr.ph82.prol ]
  %124 = sub nsw i64 %indvars.iv86.ph, %wide.trip.count89
  %125 = icmp ugt i64 %124, -4
  br i1 %125, label %.loopexit, label %.lr.ph82

vector.memcheck:                                  ; preds = %.lr.ph82.preheader
  %126 = shl nuw nsw i64 %wide.trip.count89, 2
  %scevgep = getelementptr i8, ptr %104, i64 %126
  %127 = add nsw i64 %110, %wide.trip.count89
  %128 = shl nsw i64 %127, 2
  %scevgep94 = getelementptr i8, ptr %107, i64 %128
  %bound0 = icmp ult ptr %104, %scevgep94
  %bound1 = icmp ult ptr %111, %scevgep
  %found.conflict = and i1 %bound0, %bound1
  br i1 %found.conflict, label %.lr.ph82.preheader119, label %vector.ph

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

vector.body:                                      ; preds = %vector.body, %vector.ph
  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ]
  %129 = getelementptr float, ptr %invariant.gep, i64 %index
  %130 = getelementptr i8, ptr %129, i64 16
  %wide.load = load <4 x float>, ptr %129, align 4, !tbaa !25, !alias.scope !41
  %wide.load95 = load <4 x float>, ptr %130, align 4, !tbaa !25, !alias.scope !41
  %131 = getelementptr inbounds float, ptr %104, i64 %index
  %132 = getelementptr inbounds i8, ptr %131, i64 16
  %wide.load96 = load <4 x float>, ptr %131, align 4, !tbaa !25, !alias.scope !44, !noalias !41
  %wide.load97 = load <4 x float>, ptr %132, align 4, !tbaa !25, !alias.scope !44, !noalias !41
  %133 = fadd <4 x float> %wide.load, %wide.load96
  %134 = fadd <4 x float> %wide.load95, %wide.load97
  store <4 x float> %133, ptr %131, align 4, !tbaa !25, !alias.scope !44, !noalias !41
  store <4 x float> %134, ptr %132, align 4, !tbaa !25, !alias.scope !44, !noalias !41
  %index.next = add nuw i64 %index, 8
  %135 = icmp eq i64 %index.next, %n.vec
  br i1 %135, label %middle.block, label %vector.body, !llvm.loop !46

middle.block:                                     ; preds = %vector.body
  %cmp.n = icmp eq i64 %n.vec, %wide.trip.count89
  br i1 %cmp.n, label %.loopexit, label %.lr.ph82.preheader119

136:                                              ; preds = %112
  %137 = sext i32 %118 to i64
  %138 = shl nsw i64 %137, 2
  tail call void @llvm.memcpy.p0.p0.i64(ptr align 4 %104, ptr align 4 %111, i64 %138, i1 false)
  br label %.loopexit

.lr.ph82:                                         ; preds = %.lr.ph82.prol.loopexit, %.lr.ph82
  %indvars.iv86 = phi i64 [ %indvars.iv.next87.3, %.lr.ph82 ], [ %indvars.iv86.unr, %.lr.ph82.prol.loopexit ]
  %gep = getelementptr float, ptr %invariant.gep, i64 %indvars.iv86
  %139 = load float, ptr %gep, align 4, !tbaa !25
  %140 = getelementptr inbounds float, ptr %104, i64 %indvars.iv86
  %141 = load float, ptr %140, align 4, !tbaa !25
  %142 = fadd float %139, %141
  store float %142, ptr %140, align 4, !tbaa !25
  %indvars.iv.next87 = add nuw nsw i64 %indvars.iv86, 1
  %gep.1 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next87
  %143 = load float, ptr %gep.1, align 4, !tbaa !25
  %144 = getelementptr inbounds float, ptr %104, i64 %indvars.iv.next87
  %145 = load float, ptr %144, align 4, !tbaa !25
  %146 = fadd float %143, %145
  store float %146, ptr %144, align 4, !tbaa !25
  %indvars.iv.next87.1 = add nuw nsw i64 %indvars.iv86, 2
  %gep.2 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next87.1
  %147 = load float, ptr %gep.2, align 4, !tbaa !25
  %148 = getelementptr inbounds float, ptr %104, i64 %indvars.iv.next87.1
  %149 = load float, ptr %148, align 4, !tbaa !25
  %150 = fadd float %147, %149
  store float %150, ptr %148, align 4, !tbaa !25
  %indvars.iv.next87.2 = add nuw nsw i64 %indvars.iv86, 3
  %gep.3 = getelementptr float, ptr %invariant.gep, i64 %indvars.iv.next87.2
  %151 = load float, ptr %gep.3, align 4, !tbaa !25
  %152 = getelementptr inbounds float, ptr %104, i64 %indvars.iv.next87.2
  %153 = load float, ptr %152, align 4, !tbaa !25
  %154 = fadd float %151, %153
  store float %154, ptr %152, align 4, !tbaa !25
  %indvars.iv.next87.3 = add nuw nsw i64 %indvars.iv86, 4
  %exitcond90.not.3 = icmp eq i64 %indvars.iv.next87.3, %wide.trip.count89
  br i1 %exitcond90.not.3, label %.loopexit, label %.lr.ph82, !llvm.loop !47

.loopexit:                                        ; preds = %.lr.ph82.prol.loopexit, %.lr.ph82, %middle.block, %.preheader, %.loopexit79, %101, %136
  %indvars.iv.next92 = add nuw nsw i64 %indvars.iv91, 1
  %155 = load i32, ptr %19, align 8, !tbaa !16
  %156 = sext i32 %155 to i64
  %157 = icmp slt i64 %indvars.iv.next92, %156
  br i1 %157, label %43, label %._crit_edge, !llvm.loop !48

158:                                              ; preds = %._crit_edge
  %159 = load ptr, ptr %16, align 8, !tbaa !19
  %160 = getelementptr inbounds i8, ptr %159, i64 64
  store i32 1, ptr %160, align 8, !tbaa !23
  br label %161

161:                                              ; preds = %158, %._crit_edge
  %162 = getelementptr inbounds i8, ptr %16, i64 20
  %163 = load i32, ptr %162, align 4, !tbaa !39
  %164 = icmp eq i32 %163, 1
  br i1 %164, label %165, label %168

165:                                              ; preds = %161
  %166 = load ptr, ptr %17, align 8, !tbaa !17
  %167 = getelementptr inbounds i8, ptr %166, i64 64
  store i32 1, ptr %167, align 8, !tbaa !23
  br label %168

168:                                              ; preds = %165, %161
  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 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 #4 = { nounwind }
attributes #5 = { nounwind willreturn memory(read) }

!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, !9, i64 32}
!6 = !{!"MLayer", !7, i64 0, !9, i64 32, !10, i64 40, !10, i64 48, !10, i64 56, !9, i64 64}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!"int", !7, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!6, !10, i64 56}
!12 = !{!6, !10, i64 48}
!13 = !{!14, !9, i64 8}
!14 = !{!"MTensor", !9, i64 0, !9, i64 4, !9, i64 8, !9, i64 12, !10, i64 16, !9, i64 24}
!15 = !{!14, !9, i64 12}
!16 = !{!14, !9, i64 0}
!17 = !{!18, !10, i64 8}
!18 = !{!"TensorMergePara", !10, i64 0, !10, i64 8, !9, i64 16, !9, i64 20}
!19 = !{!18, !10, i64 0}
!20 = !{!18, !9, i64 16}
!21 = !{!14, !10, i64 16}
!22 = !{!10, !10, i64 0}
!23 = !{!6, !9, i64 64}
!24 = !{!14, !9, i64 4}
!25 = !{!26, !26, i64 0}
!26 = !{!"float", !7, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.unroll.disable"}
!29 = !{!30}
!30 = distinct !{!30, !31}
!31 = distinct !{!31, !"LVerDomain"}
!32 = !{!33}
!33 = distinct !{!33, !31}
!34 = distinct !{!34, !35, !36, !37}
!35 = !{!"llvm.loop.mustprogress"}
!36 = !{!"llvm.loop.isvectorized", i32 1}
!37 = !{!"llvm.loop.unroll.runtime.disable"}
!38 = distinct !{!38, !35, !36}
!39 = !{!18, !9, i64 20}
!40 = distinct !{!40, !28}
!41 = !{!42}
!42 = distinct !{!42, !43}
!43 = distinct !{!43, !"LVerDomain"}
!44 = !{!45}
!45 = distinct !{!45, !43}
!46 = distinct !{!46, !35, !36, !37}
!47 = distinct !{!47, !35, !36}
!48 = distinct !{!48, !35}


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