blob: b0756ba19b496978338d8c8a3cf43301e8458d37 [file] [edit]
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 6
; RUN: opt -passes='loop-unroll<O3>' -mtriple=riscv64 -mattr=+v,+no-default-unroll -S %s | FileCheck %s --check-prefixes=CHECK,RV64
; RUN: opt -passes='loop-unroll<O3>' -mtriple=riscv32 -mattr=+v,+no-default-unroll -S %s | FileCheck %s --check-prefixes=CHECK,RV32
; RUN: opt -passes='loop-unroll<O3>' -mtriple=riscv64 -mattr=+v -S %s | FileCheck %s --check-prefixes=CHECK,DEFAULT64
; RUN: opt -passes='loop-unroll<O3>' -mtriple=riscv32 -mattr=+v -S %s | FileCheck %s --check-prefixes=CHECK,DEFAULT32
; Cover the O3 code-growth budget for RISC-V-specific unroll tuning and
; ensure the default policy is unaffected. Small loops and explicit full-unroll
; requests remain eligible. Keep inner loops intact to isolate outer unrolling.
define void @large_outer(ptr noalias %output, ptr %weights, ptr %bias, ptr %activation) {
; RV64-LABEL: define void @large_outer(
; RV64-SAME: ptr noalias [[OUTPUT:%.*]], ptr [[WEIGHTS:%.*]], ptr [[BIAS:%.*]], ptr [[ACTIVATION:%.*]]) #[[ATTR0:[0-9]+]] {
; RV64-NEXT: [[FOR_COND_CLEANUP3_5:.*]]:
; RV64-NEXT: br label %[[FOR_BODY4_6:.*]]
; RV64: [[FOR_BODY4_6]]:
; RV64-NEXT: [[INDVARS_IV29:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_5]] ], [ [[INDVARS_IV_NEXT30_7:%.*]], %[[FOR_COND_CLEANUP3_14:.*]] ]
; RV64-NEXT: [[ARRAYIDX_7:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV29]]
; RV64-NEXT: [[TMP19:%.*]] = load i32, ptr [[ARRAYIDX_7]], align 4
; RV64-NEXT: [[TMP1:%.*]] = shl nuw nsw i64 [[INDVARS_IV29]], 10
; RV64-NEXT: [[INVARIANT_GEP_15:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP1]]
; RV64-NEXT: br label %[[FOR_BODY4_7:.*]]
; RV64: [[FOR_COND_CLEANUP3_7:.*]]:
; RV64-NEXT: [[ADD11_LCSSA_7:%.*]] = phi i32 [ [[ADD11_15:%.*]], %[[FOR_BODY4_7]] ]
; RV64-NEXT: [[ARRAYIDX13_7:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV29]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_7]], ptr [[ARRAYIDX13_7]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 1
; RV64-NEXT: [[ARRAYIDX_8:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30]]
; RV64-NEXT: [[TMP22:%.*]] = load i32, ptr [[ARRAYIDX_8]], align 4
; RV64-NEXT: [[TMP3:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30]], 10
; RV64-NEXT: [[INVARIANT_GEP_8:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP3]]
; RV64-NEXT: br label %[[FOR_BODY4_8:.*]]
; RV64: [[FOR_BODY4_8]]:
; RV64-NEXT: [[INDVARS_IV_8:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_7]] ], [ [[INDVARS_IV_NEXT_8:%.*]], %[[FOR_BODY4_8]] ]
; RV64-NEXT: [[SUM_025_8:%.*]] = phi i32 [ [[TMP22]], %[[FOR_COND_CLEANUP3_7]] ], [ [[ADD11_8:%.*]], %[[FOR_BODY4_8]] ]
; RV64-NEXT: [[GEP_8:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_8]], i64 [[INDVARS_IV_8]]
; RV64-NEXT: [[TMP23:%.*]] = load i8, ptr [[GEP_8]], align 1
; RV64-NEXT: [[CONV_8:%.*]] = sext i8 [[TMP23]] to i32
; RV64-NEXT: [[ARRAYIDX8_8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_8]]
; RV64-NEXT: [[TMP24:%.*]] = load i8, ptr [[ARRAYIDX8_8]], align 1
; RV64-NEXT: [[CONV9_8:%.*]] = zext i8 [[TMP24]] to i32
; RV64-NEXT: [[MUL10_8:%.*]] = mul nsw i32 [[CONV9_8]], [[CONV_8]]
; RV64-NEXT: [[ADD11_8]] = add nsw i32 [[MUL10_8]], [[SUM_025_8]]
; RV64-NEXT: [[INDVARS_IV_NEXT_8]] = add nuw nsw i64 [[INDVARS_IV_8]], 1
; RV64-NEXT: [[EXITCOND_NOT_8:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_8]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_8]], label %[[FOR_COND_CLEANUP3_8:.*]], label %[[FOR_BODY4_8]], !llvm.loop [[LOOP0:![0-9]+]]
; RV64: [[FOR_COND_CLEANUP3_8]]:
; RV64-NEXT: [[ADD11_LCSSA_8:%.*]] = phi i32 [ [[ADD11_8]], %[[FOR_BODY4_8]] ]
; RV64-NEXT: [[ARRAYIDX13_8:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_8]], ptr [[ARRAYIDX13_8]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_1:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 2
; RV64-NEXT: [[ARRAYIDX_9:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_1]]
; RV64-NEXT: [[TMP25:%.*]] = load i32, ptr [[ARRAYIDX_9]], align 4
; RV64-NEXT: [[TMP7:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_1]], 10
; RV64-NEXT: [[INVARIANT_GEP_9:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP7]]
; RV64-NEXT: br label %[[FOR_BODY4_9:.*]]
; RV64: [[FOR_BODY4_9]]:
; RV64-NEXT: [[INDVARS_IV_9:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_8]] ], [ [[INDVARS_IV_NEXT_9:%.*]], %[[FOR_BODY4_9]] ]
; RV64-NEXT: [[SUM_025_9:%.*]] = phi i32 [ [[TMP25]], %[[FOR_COND_CLEANUP3_8]] ], [ [[ADD11_9:%.*]], %[[FOR_BODY4_9]] ]
; RV64-NEXT: [[GEP_9:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_9]], i64 [[INDVARS_IV_9]]
; RV64-NEXT: [[TMP26:%.*]] = load i8, ptr [[GEP_9]], align 1
; RV64-NEXT: [[CONV_9:%.*]] = sext i8 [[TMP26]] to i32
; RV64-NEXT: [[ARRAYIDX8_9:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_9]]
; RV64-NEXT: [[TMP27:%.*]] = load i8, ptr [[ARRAYIDX8_9]], align 1
; RV64-NEXT: [[CONV9_9:%.*]] = zext i8 [[TMP27]] to i32
; RV64-NEXT: [[MUL10_9:%.*]] = mul nsw i32 [[CONV9_9]], [[CONV_9]]
; RV64-NEXT: [[ADD11_9]] = add nsw i32 [[MUL10_9]], [[SUM_025_9]]
; RV64-NEXT: [[INDVARS_IV_NEXT_9]] = add nuw nsw i64 [[INDVARS_IV_9]], 1
; RV64-NEXT: [[EXITCOND_NOT_9:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_9]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_9]], label %[[FOR_COND_CLEANUP3_9:.*]], label %[[FOR_BODY4_9]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_9]]:
; RV64-NEXT: [[ADD11_LCSSA_9:%.*]] = phi i32 [ [[ADD11_9]], %[[FOR_BODY4_9]] ]
; RV64-NEXT: [[ARRAYIDX13_9:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_1]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_9]], ptr [[ARRAYIDX13_9]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_2:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 3
; RV64-NEXT: [[ARRAYIDX_10:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_2]]
; RV64-NEXT: [[TMP28:%.*]] = load i32, ptr [[ARRAYIDX_10]], align 4
; RV64-NEXT: [[TMP11:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_2]], 10
; RV64-NEXT: [[INVARIANT_GEP_10:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP11]]
; RV64-NEXT: br label %[[FOR_BODY4_10:.*]]
; RV64: [[FOR_BODY4_10]]:
; RV64-NEXT: [[INDVARS_IV_10:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_9]] ], [ [[INDVARS_IV_NEXT_10:%.*]], %[[FOR_BODY4_10]] ]
; RV64-NEXT: [[SUM_025_10:%.*]] = phi i32 [ [[TMP28]], %[[FOR_COND_CLEANUP3_9]] ], [ [[ADD11_10:%.*]], %[[FOR_BODY4_10]] ]
; RV64-NEXT: [[GEP_10:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_10]], i64 [[INDVARS_IV_10]]
; RV64-NEXT: [[TMP29:%.*]] = load i8, ptr [[GEP_10]], align 1
; RV64-NEXT: [[CONV_10:%.*]] = sext i8 [[TMP29]] to i32
; RV64-NEXT: [[ARRAYIDX8_10:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_10]]
; RV64-NEXT: [[TMP30:%.*]] = load i8, ptr [[ARRAYIDX8_10]], align 1
; RV64-NEXT: [[CONV9_10:%.*]] = zext i8 [[TMP30]] to i32
; RV64-NEXT: [[MUL10_10:%.*]] = mul nsw i32 [[CONV9_10]], [[CONV_10]]
; RV64-NEXT: [[ADD11_10]] = add nsw i32 [[MUL10_10]], [[SUM_025_10]]
; RV64-NEXT: [[INDVARS_IV_NEXT_10]] = add nuw nsw i64 [[INDVARS_IV_10]], 1
; RV64-NEXT: [[EXITCOND_NOT_10:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_10]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_10]], label %[[FOR_COND_CLEANUP3_10:.*]], label %[[FOR_BODY4_10]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_10]]:
; RV64-NEXT: [[ADD11_LCSSA_10:%.*]] = phi i32 [ [[ADD11_10]], %[[FOR_BODY4_10]] ]
; RV64-NEXT: [[ARRAYIDX13_10:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_2]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_10]], ptr [[ARRAYIDX13_10]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_3:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 4
; RV64-NEXT: [[ARRAYIDX_11:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_3]]
; RV64-NEXT: [[TMP31:%.*]] = load i32, ptr [[ARRAYIDX_11]], align 4
; RV64-NEXT: [[TMP15:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_3]], 10
; RV64-NEXT: [[INVARIANT_GEP_11:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP15]]
; RV64-NEXT: br label %[[FOR_BODY4_11:.*]]
; RV64: [[FOR_BODY4_11]]:
; RV64-NEXT: [[INDVARS_IV_11:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_10]] ], [ [[INDVARS_IV_NEXT_11:%.*]], %[[FOR_BODY4_11]] ]
; RV64-NEXT: [[SUM_025_11:%.*]] = phi i32 [ [[TMP31]], %[[FOR_COND_CLEANUP3_10]] ], [ [[ADD11_11:%.*]], %[[FOR_BODY4_11]] ]
; RV64-NEXT: [[GEP_11:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_11]], i64 [[INDVARS_IV_11]]
; RV64-NEXT: [[TMP32:%.*]] = load i8, ptr [[GEP_11]], align 1
; RV64-NEXT: [[CONV_11:%.*]] = sext i8 [[TMP32]] to i32
; RV64-NEXT: [[ARRAYIDX8_11:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_11]]
; RV64-NEXT: [[TMP33:%.*]] = load i8, ptr [[ARRAYIDX8_11]], align 1
; RV64-NEXT: [[CONV9_11:%.*]] = zext i8 [[TMP33]] to i32
; RV64-NEXT: [[MUL10_11:%.*]] = mul nsw i32 [[CONV9_11]], [[CONV_11]]
; RV64-NEXT: [[ADD11_11]] = add nsw i32 [[MUL10_11]], [[SUM_025_11]]
; RV64-NEXT: [[INDVARS_IV_NEXT_11]] = add nuw nsw i64 [[INDVARS_IV_11]], 1
; RV64-NEXT: [[EXITCOND_NOT_11:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_11]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_11]], label %[[FOR_COND_CLEANUP3_11:.*]], label %[[FOR_BODY4_11]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_11]]:
; RV64-NEXT: [[ADD11_LCSSA_11:%.*]] = phi i32 [ [[ADD11_11]], %[[FOR_BODY4_11]] ]
; RV64-NEXT: [[ARRAYIDX13_11:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_3]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_11]], ptr [[ARRAYIDX13_11]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_4:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 5
; RV64-NEXT: [[ARRAYIDX_12:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_4]]
; RV64-NEXT: [[TMP34:%.*]] = load i32, ptr [[ARRAYIDX_12]], align 4
; RV64-NEXT: [[TMP20:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_4]], 10
; RV64-NEXT: [[INVARIANT_GEP_12:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP20]]
; RV64-NEXT: br label %[[FOR_BODY4_12:.*]]
; RV64: [[FOR_BODY4_12]]:
; RV64-NEXT: [[INDVARS_IV_12:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_11]] ], [ [[INDVARS_IV_NEXT_12:%.*]], %[[FOR_BODY4_12]] ]
; RV64-NEXT: [[SUM_025_12:%.*]] = phi i32 [ [[TMP34]], %[[FOR_COND_CLEANUP3_11]] ], [ [[ADD11_12:%.*]], %[[FOR_BODY4_12]] ]
; RV64-NEXT: [[GEP_12:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_12]], i64 [[INDVARS_IV_12]]
; RV64-NEXT: [[TMP35:%.*]] = load i8, ptr [[GEP_12]], align 1
; RV64-NEXT: [[CONV_12:%.*]] = sext i8 [[TMP35]] to i32
; RV64-NEXT: [[ARRAYIDX8_12:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_12]]
; RV64-NEXT: [[TMP36:%.*]] = load i8, ptr [[ARRAYIDX8_12]], align 1
; RV64-NEXT: [[CONV9_12:%.*]] = zext i8 [[TMP36]] to i32
; RV64-NEXT: [[MUL10_12:%.*]] = mul nsw i32 [[CONV9_12]], [[CONV_12]]
; RV64-NEXT: [[ADD11_12]] = add nsw i32 [[MUL10_12]], [[SUM_025_12]]
; RV64-NEXT: [[INDVARS_IV_NEXT_12]] = add nuw nsw i64 [[INDVARS_IV_12]], 1
; RV64-NEXT: [[EXITCOND_NOT_12:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_12]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_12]], label %[[FOR_COND_CLEANUP3_12:.*]], label %[[FOR_BODY4_12]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_12]]:
; RV64-NEXT: [[ADD11_LCSSA_12:%.*]] = phi i32 [ [[ADD11_12]], %[[FOR_BODY4_12]] ]
; RV64-NEXT: [[ARRAYIDX13_12:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_4]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_12]], ptr [[ARRAYIDX13_12]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_5:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 6
; RV64-NEXT: [[ARRAYIDX_13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_5]]
; RV64-NEXT: [[TMP37:%.*]] = load i32, ptr [[ARRAYIDX_13]], align 4
; RV64-NEXT: [[TMP43:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_5]], 10
; RV64-NEXT: [[INVARIANT_GEP_13:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP43]]
; RV64-NEXT: br label %[[FOR_BODY4_13:.*]]
; RV64: [[FOR_BODY4_13]]:
; RV64-NEXT: [[INDVARS_IV_13:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_12]] ], [ [[INDVARS_IV_NEXT_13:%.*]], %[[FOR_BODY4_13]] ]
; RV64-NEXT: [[SUM_025_13:%.*]] = phi i32 [ [[TMP37]], %[[FOR_COND_CLEANUP3_12]] ], [ [[ADD11_13:%.*]], %[[FOR_BODY4_13]] ]
; RV64-NEXT: [[GEP_13:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_13]], i64 [[INDVARS_IV_13]]
; RV64-NEXT: [[TMP38:%.*]] = load i8, ptr [[GEP_13]], align 1
; RV64-NEXT: [[CONV_13:%.*]] = sext i8 [[TMP38]] to i32
; RV64-NEXT: [[ARRAYIDX8_13:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_13]]
; RV64-NEXT: [[TMP39:%.*]] = load i8, ptr [[ARRAYIDX8_13]], align 1
; RV64-NEXT: [[CONV9_13:%.*]] = zext i8 [[TMP39]] to i32
; RV64-NEXT: [[MUL10_13:%.*]] = mul nsw i32 [[CONV9_13]], [[CONV_13]]
; RV64-NEXT: [[ADD11_13]] = add nsw i32 [[MUL10_13]], [[SUM_025_13]]
; RV64-NEXT: [[INDVARS_IV_NEXT_13]] = add nuw nsw i64 [[INDVARS_IV_13]], 1
; RV64-NEXT: [[EXITCOND_NOT_13:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_13]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_13]], label %[[FOR_COND_CLEANUP3_13:.*]], label %[[FOR_BODY4_13]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_13]]:
; RV64-NEXT: [[ADD11_LCSSA_13:%.*]] = phi i32 [ [[ADD11_13]], %[[FOR_BODY4_13]] ]
; RV64-NEXT: [[ARRAYIDX13_13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_5]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_13]], ptr [[ARRAYIDX13_13]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_6:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 7
; RV64-NEXT: [[ARRAYIDX_14:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_6]]
; RV64-NEXT: [[TMP40:%.*]] = load i32, ptr [[ARRAYIDX_14]], align 4
; RV64-NEXT: [[TMP46:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_6]], 10
; RV64-NEXT: [[INVARIANT_GEP_14:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP46]]
; RV64-NEXT: br label %[[FOR_BODY4_14:.*]]
; RV64: [[FOR_BODY4_14]]:
; RV64-NEXT: [[INDVARS_IV_14:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_13]] ], [ [[INDVARS_IV_NEXT_14:%.*]], %[[FOR_BODY4_14]] ]
; RV64-NEXT: [[SUM_025_14:%.*]] = phi i32 [ [[TMP40]], %[[FOR_COND_CLEANUP3_13]] ], [ [[ADD11_14:%.*]], %[[FOR_BODY4_14]] ]
; RV64-NEXT: [[GEP_14:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_14]], i64 [[INDVARS_IV_14]]
; RV64-NEXT: [[TMP41:%.*]] = load i8, ptr [[GEP_14]], align 1
; RV64-NEXT: [[CONV_14:%.*]] = sext i8 [[TMP41]] to i32
; RV64-NEXT: [[ARRAYIDX8_14:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_14]]
; RV64-NEXT: [[TMP42:%.*]] = load i8, ptr [[ARRAYIDX8_14]], align 1
; RV64-NEXT: [[CONV9_14:%.*]] = zext i8 [[TMP42]] to i32
; RV64-NEXT: [[MUL10_14:%.*]] = mul nsw i32 [[CONV9_14]], [[CONV_14]]
; RV64-NEXT: [[ADD11_14]] = add nsw i32 [[MUL10_14]], [[SUM_025_14]]
; RV64-NEXT: [[INDVARS_IV_NEXT_14]] = add nuw nsw i64 [[INDVARS_IV_14]], 1
; RV64-NEXT: [[EXITCOND_NOT_14:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_14]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_14]], label %[[FOR_COND_CLEANUP3_14]], label %[[FOR_BODY4_14]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_14]]:
; RV64-NEXT: [[ADD11_LCSSA_14:%.*]] = phi i32 [ [[ADD11_14]], %[[FOR_BODY4_14]] ]
; RV64-NEXT: [[ARRAYIDX13_14:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_6]]
; RV64-NEXT: store i32 [[ADD11_LCSSA_14]], ptr [[ARRAYIDX13_14]], align 4
; RV64-NEXT: [[INDVARS_IV_NEXT30_7]] = add nuw nsw i64 [[INDVARS_IV29]], 8
; RV64-NEXT: [[EXITCOND32_NOT_7:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT30_7]], 16
; RV64-NEXT: br i1 [[EXITCOND32_NOT_7]], label %[[FOR_COND_CLEANUP3_15:.*]], label %[[FOR_BODY4_6]]
; RV64: [[FOR_BODY4_7]]:
; RV64-NEXT: [[INDVARS_IV_15:%.*]] = phi i64 [ 0, %[[FOR_BODY4_6]] ], [ [[INDVARS_IV_NEXT_15:%.*]], %[[FOR_BODY4_7]] ]
; RV64-NEXT: [[SUM_025_15:%.*]] = phi i32 [ [[TMP19]], %[[FOR_BODY4_6]] ], [ [[ADD11_15]], %[[FOR_BODY4_7]] ]
; RV64-NEXT: [[GEP_15:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_15]], i64 [[INDVARS_IV_15]]
; RV64-NEXT: [[TMP44:%.*]] = load i8, ptr [[GEP_15]], align 1
; RV64-NEXT: [[CONV_15:%.*]] = sext i8 [[TMP44]] to i32
; RV64-NEXT: [[ARRAYIDX8_15:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_15]]
; RV64-NEXT: [[TMP45:%.*]] = load i8, ptr [[ARRAYIDX8_15]], align 1
; RV64-NEXT: [[CONV9_15:%.*]] = zext i8 [[TMP45]] to i32
; RV64-NEXT: [[MUL10_15:%.*]] = mul nsw i32 [[CONV9_15]], [[CONV_15]]
; RV64-NEXT: [[ADD11_15]] = add nsw i32 [[MUL10_15]], [[SUM_025_15]]
; RV64-NEXT: [[INDVARS_IV_NEXT_15]] = add nuw nsw i64 [[INDVARS_IV_15]], 1
; RV64-NEXT: [[EXITCOND_NOT_15:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_15]], 1024
; RV64-NEXT: br i1 [[EXITCOND_NOT_15]], label %[[FOR_COND_CLEANUP3_7]], label %[[FOR_BODY4_7]], !llvm.loop [[LOOP0]]
; RV64: [[FOR_COND_CLEANUP3_15]]:
; RV64-NEXT: ret void
;
; RV32-LABEL: define void @large_outer(
; RV32-SAME: ptr noalias [[OUTPUT:%.*]], ptr [[WEIGHTS:%.*]], ptr [[BIAS:%.*]], ptr [[ACTIVATION:%.*]]) #[[ATTR0:[0-9]+]] {
; RV32-NEXT: [[ENTRY:.*]]:
; RV32-NEXT: br label %[[FOR_BODY:.*]]
; RV32: [[FOR_BODY]]:
; RV32-NEXT: [[INDVARS_IV29:%.*]] = phi i64 [ 0, %[[ENTRY]] ], [ [[INDVARS_IV_NEXT30_3:%.*]], %[[FOR_COND_CLEANUP3_3:.*]] ]
; RV32-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV29]]
; RV32-NEXT: [[TMP0:%.*]] = load i32, ptr [[ARRAYIDX]], align 4
; RV32-NEXT: [[TMP1:%.*]] = shl nuw nsw i64 [[INDVARS_IV29]], 10
; RV32-NEXT: [[INVARIANT_GEP:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP1]]
; RV32-NEXT: br label %[[FOR_BODY4:.*]]
; RV32: [[FOR_COND_CLEANUP3:.*]]:
; RV32-NEXT: [[ADD11_LCSSA:%.*]] = phi i32 [ [[ADD11:%.*]], %[[FOR_BODY4]] ]
; RV32-NEXT: [[ARRAYIDX13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV29]]
; RV32-NEXT: store i32 [[ADD11_LCSSA]], ptr [[ARRAYIDX13]], align 4
; RV32-NEXT: [[INDVARS_IV_NEXT30:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 1
; RV32-NEXT: [[ARRAYIDX_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30]]
; RV32-NEXT: [[TMP2:%.*]] = load i32, ptr [[ARRAYIDX_1]], align 4
; RV32-NEXT: [[TMP3:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30]], 10
; RV32-NEXT: [[INVARIANT_GEP_1:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP3]]
; RV32-NEXT: br label %[[FOR_BODY4_1:.*]]
; RV32: [[FOR_BODY4_1]]:
; RV32-NEXT: [[INDVARS_IV_1:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3]] ], [ [[INDVARS_IV_NEXT_1:%.*]], %[[FOR_BODY4_1]] ]
; RV32-NEXT: [[SUM_025_1:%.*]] = phi i32 [ [[TMP2]], %[[FOR_COND_CLEANUP3]] ], [ [[ADD11_1:%.*]], %[[FOR_BODY4_1]] ]
; RV32-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_1]], i64 [[INDVARS_IV_1]]
; RV32-NEXT: [[TMP4:%.*]] = load i8, ptr [[GEP_1]], align 1
; RV32-NEXT: [[CONV_1:%.*]] = sext i8 [[TMP4]] to i32
; RV32-NEXT: [[ARRAYIDX8_1:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_1]]
; RV32-NEXT: [[TMP5:%.*]] = load i8, ptr [[ARRAYIDX8_1]], align 1
; RV32-NEXT: [[CONV9_1:%.*]] = zext i8 [[TMP5]] to i32
; RV32-NEXT: [[MUL10_1:%.*]] = mul nsw i32 [[CONV9_1]], [[CONV_1]]
; RV32-NEXT: [[ADD11_1]] = add nsw i32 [[MUL10_1]], [[SUM_025_1]]
; RV32-NEXT: [[INDVARS_IV_NEXT_1]] = add nuw nsw i64 [[INDVARS_IV_1]], 1
; RV32-NEXT: [[EXITCOND_NOT_1:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_1]], 1024
; RV32-NEXT: br i1 [[EXITCOND_NOT_1]], label %[[FOR_COND_CLEANUP3_1:.*]], label %[[FOR_BODY4_1]], !llvm.loop [[LOOP0:![0-9]+]]
; RV32: [[FOR_COND_CLEANUP3_1]]:
; RV32-NEXT: [[ADD11_LCSSA_1:%.*]] = phi i32 [ [[ADD11_1]], %[[FOR_BODY4_1]] ]
; RV32-NEXT: [[ARRAYIDX13_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30]]
; RV32-NEXT: store i32 [[ADD11_LCSSA_1]], ptr [[ARRAYIDX13_1]], align 4
; RV32-NEXT: [[INDVARS_IV_NEXT30_1:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 2
; RV32-NEXT: [[ARRAYIDX_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_1]]
; RV32-NEXT: [[TMP6:%.*]] = load i32, ptr [[ARRAYIDX_2]], align 4
; RV32-NEXT: [[TMP7:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_1]], 10
; RV32-NEXT: [[INVARIANT_GEP_2:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP7]]
; RV32-NEXT: br label %[[FOR_BODY4_2:.*]]
; RV32: [[FOR_BODY4_2]]:
; RV32-NEXT: [[INDVARS_IV_2:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_1]] ], [ [[INDVARS_IV_NEXT_2:%.*]], %[[FOR_BODY4_2]] ]
; RV32-NEXT: [[SUM_025_2:%.*]] = phi i32 [ [[TMP6]], %[[FOR_COND_CLEANUP3_1]] ], [ [[ADD11_2:%.*]], %[[FOR_BODY4_2]] ]
; RV32-NEXT: [[GEP_2:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_2]], i64 [[INDVARS_IV_2]]
; RV32-NEXT: [[TMP8:%.*]] = load i8, ptr [[GEP_2]], align 1
; RV32-NEXT: [[CONV_2:%.*]] = sext i8 [[TMP8]] to i32
; RV32-NEXT: [[ARRAYIDX8_2:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_2]]
; RV32-NEXT: [[TMP9:%.*]] = load i8, ptr [[ARRAYIDX8_2]], align 1
; RV32-NEXT: [[CONV9_2:%.*]] = zext i8 [[TMP9]] to i32
; RV32-NEXT: [[MUL10_2:%.*]] = mul nsw i32 [[CONV9_2]], [[CONV_2]]
; RV32-NEXT: [[ADD11_2]] = add nsw i32 [[MUL10_2]], [[SUM_025_2]]
; RV32-NEXT: [[INDVARS_IV_NEXT_2]] = add nuw nsw i64 [[INDVARS_IV_2]], 1
; RV32-NEXT: [[EXITCOND_NOT_2:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_2]], 1024
; RV32-NEXT: br i1 [[EXITCOND_NOT_2]], label %[[FOR_COND_CLEANUP3_2:.*]], label %[[FOR_BODY4_2]], !llvm.loop [[LOOP0]]
; RV32: [[FOR_COND_CLEANUP3_2]]:
; RV32-NEXT: [[ADD11_LCSSA_2:%.*]] = phi i32 [ [[ADD11_2]], %[[FOR_BODY4_2]] ]
; RV32-NEXT: [[ARRAYIDX13_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_1]]
; RV32-NEXT: store i32 [[ADD11_LCSSA_2]], ptr [[ARRAYIDX13_2]], align 4
; RV32-NEXT: [[INDVARS_IV_NEXT30_2:%.*]] = add nuw nsw i64 [[INDVARS_IV29]], 3
; RV32-NEXT: [[ARRAYIDX_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV_NEXT30_2]]
; RV32-NEXT: [[TMP10:%.*]] = load i32, ptr [[ARRAYIDX_3]], align 4
; RV32-NEXT: [[TMP11:%.*]] = shl nuw nsw i64 [[INDVARS_IV_NEXT30_2]], 10
; RV32-NEXT: [[INVARIANT_GEP_3:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP11]]
; RV32-NEXT: br label %[[FOR_BODY4_3:.*]]
; RV32: [[FOR_BODY4_3]]:
; RV32-NEXT: [[INDVARS_IV_3:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_2]] ], [ [[INDVARS_IV_NEXT_3:%.*]], %[[FOR_BODY4_3]] ]
; RV32-NEXT: [[SUM_025_3:%.*]] = phi i32 [ [[TMP10]], %[[FOR_COND_CLEANUP3_2]] ], [ [[ADD11_3:%.*]], %[[FOR_BODY4_3]] ]
; RV32-NEXT: [[GEP_3:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_3]], i64 [[INDVARS_IV_3]]
; RV32-NEXT: [[TMP12:%.*]] = load i8, ptr [[GEP_3]], align 1
; RV32-NEXT: [[CONV_3:%.*]] = sext i8 [[TMP12]] to i32
; RV32-NEXT: [[ARRAYIDX8_3:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_3]]
; RV32-NEXT: [[TMP13:%.*]] = load i8, ptr [[ARRAYIDX8_3]], align 1
; RV32-NEXT: [[CONV9_3:%.*]] = zext i8 [[TMP13]] to i32
; RV32-NEXT: [[MUL10_3:%.*]] = mul nsw i32 [[CONV9_3]], [[CONV_3]]
; RV32-NEXT: [[ADD11_3]] = add nsw i32 [[MUL10_3]], [[SUM_025_3]]
; RV32-NEXT: [[INDVARS_IV_NEXT_3]] = add nuw nsw i64 [[INDVARS_IV_3]], 1
; RV32-NEXT: [[EXITCOND_NOT_3:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_3]], 1024
; RV32-NEXT: br i1 [[EXITCOND_NOT_3]], label %[[FOR_COND_CLEANUP3_3]], label %[[FOR_BODY4_3]], !llvm.loop [[LOOP0]]
; RV32: [[FOR_COND_CLEANUP3_3]]:
; RV32-NEXT: [[ADD11_LCSSA_3:%.*]] = phi i32 [ [[ADD11_3]], %[[FOR_BODY4_3]] ]
; RV32-NEXT: [[ARRAYIDX13_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV_NEXT30_2]]
; RV32-NEXT: store i32 [[ADD11_LCSSA_3]], ptr [[ARRAYIDX13_3]], align 4
; RV32-NEXT: [[INDVARS_IV_NEXT30_3]] = add nuw nsw i64 [[INDVARS_IV29]], 4
; RV32-NEXT: [[EXITCOND32_NOT_3:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT30_3]], 16
; RV32-NEXT: br i1 [[EXITCOND32_NOT_3]], label %[[FOR_COND_CLEANUP:.*]], label %[[FOR_BODY]]
; RV32: [[FOR_BODY4]]:
; RV32-NEXT: [[INDVARS_IV:%.*]] = phi i64 [ 0, %[[FOR_BODY]] ], [ [[INDVARS_IV_NEXT:%.*]], %[[FOR_BODY4]] ]
; RV32-NEXT: [[SUM_025:%.*]] = phi i32 [ [[TMP0]], %[[FOR_BODY]] ], [ [[ADD11]], %[[FOR_BODY4]] ]
; RV32-NEXT: [[GEP:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP]], i64 [[INDVARS_IV]]
; RV32-NEXT: [[TMP14:%.*]] = load i8, ptr [[GEP]], align 1
; RV32-NEXT: [[CONV:%.*]] = sext i8 [[TMP14]] to i32
; RV32-NEXT: [[ARRAYIDX8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV]]
; RV32-NEXT: [[TMP15:%.*]] = load i8, ptr [[ARRAYIDX8]], align 1
; RV32-NEXT: [[CONV9:%.*]] = zext i8 [[TMP15]] to i32
; RV32-NEXT: [[MUL10:%.*]] = mul nsw i32 [[CONV9]], [[CONV]]
; RV32-NEXT: [[ADD11]] = add nsw i32 [[MUL10]], [[SUM_025]]
; RV32-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
; RV32-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 1024
; RV32-NEXT: br i1 [[EXITCOND_NOT]], label %[[FOR_COND_CLEANUP3]], label %[[FOR_BODY4]], !llvm.loop [[LOOP0]]
; RV32: [[FOR_COND_CLEANUP]]:
; RV32-NEXT: ret void
;
; DEFAULT64-LABEL: define void @large_outer(
; DEFAULT64-SAME: ptr noalias [[OUTPUT:%.*]], ptr [[WEIGHTS:%.*]], ptr [[BIAS:%.*]], ptr [[ACTIVATION:%.*]]) #[[ATTR0:[0-9]+]] {
; DEFAULT64-NEXT: [[ENTRY:.*:]]
; DEFAULT64-NEXT: br label %[[FOR_BODY:.*]]
; DEFAULT64: [[FOR_BODY]]:
; DEFAULT64-NEXT: [[TMP0:%.*]] = load i32, ptr [[BIAS]], align 4
; DEFAULT64-NEXT: br label %[[FOR_BODY4:.*]]
; DEFAULT64: [[FOR_COND_CLEANUP3:.*]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA:%.*]] = phi i32 [ [[ADD11:%.*]], %[[FOR_BODY4]] ]
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA]], ptr [[OUTPUT]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 1
; DEFAULT64-NEXT: [[TMP1:%.*]] = load i32, ptr [[ARRAYIDX_1]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_1:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 1024
; DEFAULT64-NEXT: br label %[[FOR_BODY4_1:.*]]
; DEFAULT64: [[FOR_BODY4_1]]:
; DEFAULT64-NEXT: [[INDVARS_IV_1:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3]] ], [ [[INDVARS_IV_NEXT_1:%.*]], %[[FOR_BODY4_1]] ]
; DEFAULT64-NEXT: [[SUM_025_1:%.*]] = phi i32 [ [[TMP1]], %[[FOR_COND_CLEANUP3]] ], [ [[ADD11_1:%.*]], %[[FOR_BODY4_1]] ]
; DEFAULT64-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_1]], i64 [[INDVARS_IV_1]]
; DEFAULT64-NEXT: [[TMP2:%.*]] = load i8, ptr [[GEP_1]], align 1
; DEFAULT64-NEXT: [[CONV_1:%.*]] = sext i8 [[TMP2]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_1:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_1]]
; DEFAULT64-NEXT: [[TMP3:%.*]] = load i8, ptr [[ARRAYIDX8_1]], align 1
; DEFAULT64-NEXT: [[CONV9_1:%.*]] = zext i8 [[TMP3]] to i32
; DEFAULT64-NEXT: [[MUL10_1:%.*]] = mul nsw i32 [[CONV9_1]], [[CONV_1]]
; DEFAULT64-NEXT: [[ADD11_1]] = add nsw i32 [[MUL10_1]], [[SUM_025_1]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_1]] = add nuw nsw i64 [[INDVARS_IV_1]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_1:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_1]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_1]], label %[[FOR_COND_CLEANUP3_1:.*]], label %[[FOR_BODY4_1]], !llvm.loop [[LOOP0:![0-9]+]]
; DEFAULT64: [[FOR_COND_CLEANUP3_1]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_1:%.*]] = phi i32 [ [[ADD11_1]], %[[FOR_BODY4_1]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 1
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_1]], ptr [[ARRAYIDX13_1]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 2
; DEFAULT64-NEXT: [[TMP4:%.*]] = load i32, ptr [[ARRAYIDX_2]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_2:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 2048
; DEFAULT64-NEXT: br label %[[FOR_BODY4_2:.*]]
; DEFAULT64: [[FOR_BODY4_2]]:
; DEFAULT64-NEXT: [[INDVARS_IV_2:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_1]] ], [ [[INDVARS_IV_NEXT_2:%.*]], %[[FOR_BODY4_2]] ]
; DEFAULT64-NEXT: [[SUM_025_2:%.*]] = phi i32 [ [[TMP4]], %[[FOR_COND_CLEANUP3_1]] ], [ [[ADD11_2:%.*]], %[[FOR_BODY4_2]] ]
; DEFAULT64-NEXT: [[GEP_2:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_2]], i64 [[INDVARS_IV_2]]
; DEFAULT64-NEXT: [[TMP5:%.*]] = load i8, ptr [[GEP_2]], align 1
; DEFAULT64-NEXT: [[CONV_2:%.*]] = sext i8 [[TMP5]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_2:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_2]]
; DEFAULT64-NEXT: [[TMP6:%.*]] = load i8, ptr [[ARRAYIDX8_2]], align 1
; DEFAULT64-NEXT: [[CONV9_2:%.*]] = zext i8 [[TMP6]] to i32
; DEFAULT64-NEXT: [[MUL10_2:%.*]] = mul nsw i32 [[CONV9_2]], [[CONV_2]]
; DEFAULT64-NEXT: [[ADD11_2]] = add nsw i32 [[MUL10_2]], [[SUM_025_2]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_2]] = add nuw nsw i64 [[INDVARS_IV_2]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_2:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_2]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_2]], label %[[FOR_COND_CLEANUP3_2:.*]], label %[[FOR_BODY4_2]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_2]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_2:%.*]] = phi i32 [ [[ADD11_2]], %[[FOR_BODY4_2]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 2
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_2]], ptr [[ARRAYIDX13_2]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 3
; DEFAULT64-NEXT: [[TMP7:%.*]] = load i32, ptr [[ARRAYIDX_3]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_3:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 3072
; DEFAULT64-NEXT: br label %[[FOR_BODY4_3:.*]]
; DEFAULT64: [[FOR_BODY4_3]]:
; DEFAULT64-NEXT: [[INDVARS_IV_3:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_2]] ], [ [[INDVARS_IV_NEXT_3:%.*]], %[[FOR_BODY4_3]] ]
; DEFAULT64-NEXT: [[SUM_025_3:%.*]] = phi i32 [ [[TMP7]], %[[FOR_COND_CLEANUP3_2]] ], [ [[ADD11_3:%.*]], %[[FOR_BODY4_3]] ]
; DEFAULT64-NEXT: [[GEP_3:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_3]], i64 [[INDVARS_IV_3]]
; DEFAULT64-NEXT: [[TMP8:%.*]] = load i8, ptr [[GEP_3]], align 1
; DEFAULT64-NEXT: [[CONV_3:%.*]] = sext i8 [[TMP8]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_3:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_3]]
; DEFAULT64-NEXT: [[TMP9:%.*]] = load i8, ptr [[ARRAYIDX8_3]], align 1
; DEFAULT64-NEXT: [[CONV9_3:%.*]] = zext i8 [[TMP9]] to i32
; DEFAULT64-NEXT: [[MUL10_3:%.*]] = mul nsw i32 [[CONV9_3]], [[CONV_3]]
; DEFAULT64-NEXT: [[ADD11_3]] = add nsw i32 [[MUL10_3]], [[SUM_025_3]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_3]] = add nuw nsw i64 [[INDVARS_IV_3]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_3:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_3]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_3]], label %[[FOR_COND_CLEANUP3_3:.*]], label %[[FOR_BODY4_3]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_3]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_3:%.*]] = phi i32 [ [[ADD11_3]], %[[FOR_BODY4_3]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 3
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_3]], ptr [[ARRAYIDX13_3]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_4:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 4
; DEFAULT64-NEXT: [[TMP10:%.*]] = load i32, ptr [[ARRAYIDX_4]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_4:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 4096
; DEFAULT64-NEXT: br label %[[FOR_BODY4_4:.*]]
; DEFAULT64: [[FOR_BODY4_4]]:
; DEFAULT64-NEXT: [[INDVARS_IV_4:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_3]] ], [ [[INDVARS_IV_NEXT_4:%.*]], %[[FOR_BODY4_4]] ]
; DEFAULT64-NEXT: [[SUM_025_4:%.*]] = phi i32 [ [[TMP10]], %[[FOR_COND_CLEANUP3_3]] ], [ [[ADD11_4:%.*]], %[[FOR_BODY4_4]] ]
; DEFAULT64-NEXT: [[GEP_4:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_4]], i64 [[INDVARS_IV_4]]
; DEFAULT64-NEXT: [[TMP11:%.*]] = load i8, ptr [[GEP_4]], align 1
; DEFAULT64-NEXT: [[CONV_4:%.*]] = sext i8 [[TMP11]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_4:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_4]]
; DEFAULT64-NEXT: [[TMP12:%.*]] = load i8, ptr [[ARRAYIDX8_4]], align 1
; DEFAULT64-NEXT: [[CONV9_4:%.*]] = zext i8 [[TMP12]] to i32
; DEFAULT64-NEXT: [[MUL10_4:%.*]] = mul nsw i32 [[CONV9_4]], [[CONV_4]]
; DEFAULT64-NEXT: [[ADD11_4]] = add nsw i32 [[MUL10_4]], [[SUM_025_4]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_4]] = add nuw nsw i64 [[INDVARS_IV_4]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_4:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_4]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_4]], label %[[FOR_COND_CLEANUP3_4:.*]], label %[[FOR_BODY4_4]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_4]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_4:%.*]] = phi i32 [ [[ADD11_4]], %[[FOR_BODY4_4]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_4:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 4
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_4]], ptr [[ARRAYIDX13_4]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_5:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 5
; DEFAULT64-NEXT: [[TMP13:%.*]] = load i32, ptr [[ARRAYIDX_5]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_5:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 5120
; DEFAULT64-NEXT: br label %[[FOR_BODY4_5:.*]]
; DEFAULT64: [[FOR_BODY4_5]]:
; DEFAULT64-NEXT: [[INDVARS_IV_5:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_4]] ], [ [[INDVARS_IV_NEXT_5:%.*]], %[[FOR_BODY4_5]] ]
; DEFAULT64-NEXT: [[SUM_025_5:%.*]] = phi i32 [ [[TMP13]], %[[FOR_COND_CLEANUP3_4]] ], [ [[ADD11_5:%.*]], %[[FOR_BODY4_5]] ]
; DEFAULT64-NEXT: [[GEP_5:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_5]], i64 [[INDVARS_IV_5]]
; DEFAULT64-NEXT: [[TMP14:%.*]] = load i8, ptr [[GEP_5]], align 1
; DEFAULT64-NEXT: [[CONV_5:%.*]] = sext i8 [[TMP14]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_5:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_5]]
; DEFAULT64-NEXT: [[TMP15:%.*]] = load i8, ptr [[ARRAYIDX8_5]], align 1
; DEFAULT64-NEXT: [[CONV9_5:%.*]] = zext i8 [[TMP15]] to i32
; DEFAULT64-NEXT: [[MUL10_5:%.*]] = mul nsw i32 [[CONV9_5]], [[CONV_5]]
; DEFAULT64-NEXT: [[ADD11_5]] = add nsw i32 [[MUL10_5]], [[SUM_025_5]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_5]] = add nuw nsw i64 [[INDVARS_IV_5]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_5:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_5]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_5]], label %[[FOR_COND_CLEANUP3_5:.*]], label %[[FOR_BODY4_5]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_5]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_5:%.*]] = phi i32 [ [[ADD11_5]], %[[FOR_BODY4_5]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_5:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 5
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_5]], ptr [[ARRAYIDX13_5]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_6:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 6
; DEFAULT64-NEXT: [[TMP16:%.*]] = load i32, ptr [[ARRAYIDX_6]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_6:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 6144
; DEFAULT64-NEXT: br label %[[FOR_BODY4_6:.*]]
; DEFAULT64: [[FOR_BODY4_6]]:
; DEFAULT64-NEXT: [[INDVARS_IV_6:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_5]] ], [ [[INDVARS_IV_NEXT_6:%.*]], %[[FOR_BODY4_6]] ]
; DEFAULT64-NEXT: [[SUM_025_6:%.*]] = phi i32 [ [[TMP16]], %[[FOR_COND_CLEANUP3_5]] ], [ [[ADD11_6:%.*]], %[[FOR_BODY4_6]] ]
; DEFAULT64-NEXT: [[GEP_6:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_6]], i64 [[INDVARS_IV_6]]
; DEFAULT64-NEXT: [[TMP17:%.*]] = load i8, ptr [[GEP_6]], align 1
; DEFAULT64-NEXT: [[CONV_6:%.*]] = sext i8 [[TMP17]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_6:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_6]]
; DEFAULT64-NEXT: [[TMP18:%.*]] = load i8, ptr [[ARRAYIDX8_6]], align 1
; DEFAULT64-NEXT: [[CONV9_6:%.*]] = zext i8 [[TMP18]] to i32
; DEFAULT64-NEXT: [[MUL10_6:%.*]] = mul nsw i32 [[CONV9_6]], [[CONV_6]]
; DEFAULT64-NEXT: [[ADD11_6]] = add nsw i32 [[MUL10_6]], [[SUM_025_6]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_6]] = add nuw nsw i64 [[INDVARS_IV_6]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_6:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_6]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_6]], label %[[FOR_COND_CLEANUP3_6:.*]], label %[[FOR_BODY4_6]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_6]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_6:%.*]] = phi i32 [ [[ADD11_6]], %[[FOR_BODY4_6]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_6:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 6
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_6]], ptr [[ARRAYIDX13_6]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_7:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 7
; DEFAULT64-NEXT: [[TMP19:%.*]] = load i32, ptr [[ARRAYIDX_7]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_7:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 7168
; DEFAULT64-NEXT: br label %[[FOR_BODY4_7:.*]]
; DEFAULT64: [[FOR_BODY4_7]]:
; DEFAULT64-NEXT: [[INDVARS_IV_7:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_6]] ], [ [[INDVARS_IV_NEXT_7:%.*]], %[[FOR_BODY4_7]] ]
; DEFAULT64-NEXT: [[SUM_025_7:%.*]] = phi i32 [ [[TMP19]], %[[FOR_COND_CLEANUP3_6]] ], [ [[ADD11_7:%.*]], %[[FOR_BODY4_7]] ]
; DEFAULT64-NEXT: [[GEP_7:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_7]], i64 [[INDVARS_IV_7]]
; DEFAULT64-NEXT: [[TMP20:%.*]] = load i8, ptr [[GEP_7]], align 1
; DEFAULT64-NEXT: [[CONV_7:%.*]] = sext i8 [[TMP20]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_7:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_7]]
; DEFAULT64-NEXT: [[TMP21:%.*]] = load i8, ptr [[ARRAYIDX8_7]], align 1
; DEFAULT64-NEXT: [[CONV9_7:%.*]] = zext i8 [[TMP21]] to i32
; DEFAULT64-NEXT: [[MUL10_7:%.*]] = mul nsw i32 [[CONV9_7]], [[CONV_7]]
; DEFAULT64-NEXT: [[ADD11_7]] = add nsw i32 [[MUL10_7]], [[SUM_025_7]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_7]] = add nuw nsw i64 [[INDVARS_IV_7]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_7:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_7]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_7]], label %[[FOR_COND_CLEANUP3_7:.*]], label %[[FOR_BODY4_7]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_7]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_7:%.*]] = phi i32 [ [[ADD11_7]], %[[FOR_BODY4_7]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_7:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 7
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_7]], ptr [[ARRAYIDX13_7]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_8:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 8
; DEFAULT64-NEXT: [[TMP22:%.*]] = load i32, ptr [[ARRAYIDX_8]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_8:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 8192
; DEFAULT64-NEXT: br label %[[FOR_BODY4_8:.*]]
; DEFAULT64: [[FOR_BODY4_8]]:
; DEFAULT64-NEXT: [[INDVARS_IV_8:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_7]] ], [ [[INDVARS_IV_NEXT_8:%.*]], %[[FOR_BODY4_8]] ]
; DEFAULT64-NEXT: [[SUM_025_8:%.*]] = phi i32 [ [[TMP22]], %[[FOR_COND_CLEANUP3_7]] ], [ [[ADD11_8:%.*]], %[[FOR_BODY4_8]] ]
; DEFAULT64-NEXT: [[GEP_8:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_8]], i64 [[INDVARS_IV_8]]
; DEFAULT64-NEXT: [[TMP23:%.*]] = load i8, ptr [[GEP_8]], align 1
; DEFAULT64-NEXT: [[CONV_8:%.*]] = sext i8 [[TMP23]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_8]]
; DEFAULT64-NEXT: [[TMP24:%.*]] = load i8, ptr [[ARRAYIDX8_8]], align 1
; DEFAULT64-NEXT: [[CONV9_8:%.*]] = zext i8 [[TMP24]] to i32
; DEFAULT64-NEXT: [[MUL10_8:%.*]] = mul nsw i32 [[CONV9_8]], [[CONV_8]]
; DEFAULT64-NEXT: [[ADD11_8]] = add nsw i32 [[MUL10_8]], [[SUM_025_8]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_8]] = add nuw nsw i64 [[INDVARS_IV_8]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_8:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_8]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_8]], label %[[FOR_COND_CLEANUP3_8:.*]], label %[[FOR_BODY4_8]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_8]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_8:%.*]] = phi i32 [ [[ADD11_8]], %[[FOR_BODY4_8]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_8:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 8
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_8]], ptr [[ARRAYIDX13_8]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_9:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 9
; DEFAULT64-NEXT: [[TMP25:%.*]] = load i32, ptr [[ARRAYIDX_9]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_9:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 9216
; DEFAULT64-NEXT: br label %[[FOR_BODY4_9:.*]]
; DEFAULT64: [[FOR_BODY4_9]]:
; DEFAULT64-NEXT: [[INDVARS_IV_9:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_8]] ], [ [[INDVARS_IV_NEXT_9:%.*]], %[[FOR_BODY4_9]] ]
; DEFAULT64-NEXT: [[SUM_025_9:%.*]] = phi i32 [ [[TMP25]], %[[FOR_COND_CLEANUP3_8]] ], [ [[ADD11_9:%.*]], %[[FOR_BODY4_9]] ]
; DEFAULT64-NEXT: [[GEP_9:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_9]], i64 [[INDVARS_IV_9]]
; DEFAULT64-NEXT: [[TMP26:%.*]] = load i8, ptr [[GEP_9]], align 1
; DEFAULT64-NEXT: [[CONV_9:%.*]] = sext i8 [[TMP26]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_9:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_9]]
; DEFAULT64-NEXT: [[TMP27:%.*]] = load i8, ptr [[ARRAYIDX8_9]], align 1
; DEFAULT64-NEXT: [[CONV9_9:%.*]] = zext i8 [[TMP27]] to i32
; DEFAULT64-NEXT: [[MUL10_9:%.*]] = mul nsw i32 [[CONV9_9]], [[CONV_9]]
; DEFAULT64-NEXT: [[ADD11_9]] = add nsw i32 [[MUL10_9]], [[SUM_025_9]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_9]] = add nuw nsw i64 [[INDVARS_IV_9]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_9:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_9]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_9]], label %[[FOR_COND_CLEANUP3_9:.*]], label %[[FOR_BODY4_9]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_9]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_9:%.*]] = phi i32 [ [[ADD11_9]], %[[FOR_BODY4_9]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_9:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 9
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_9]], ptr [[ARRAYIDX13_9]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_10:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 10
; DEFAULT64-NEXT: [[TMP28:%.*]] = load i32, ptr [[ARRAYIDX_10]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_10:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 10240
; DEFAULT64-NEXT: br label %[[FOR_BODY4_10:.*]]
; DEFAULT64: [[FOR_BODY4_10]]:
; DEFAULT64-NEXT: [[INDVARS_IV_10:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_9]] ], [ [[INDVARS_IV_NEXT_10:%.*]], %[[FOR_BODY4_10]] ]
; DEFAULT64-NEXT: [[SUM_025_10:%.*]] = phi i32 [ [[TMP28]], %[[FOR_COND_CLEANUP3_9]] ], [ [[ADD11_10:%.*]], %[[FOR_BODY4_10]] ]
; DEFAULT64-NEXT: [[GEP_10:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_10]], i64 [[INDVARS_IV_10]]
; DEFAULT64-NEXT: [[TMP29:%.*]] = load i8, ptr [[GEP_10]], align 1
; DEFAULT64-NEXT: [[CONV_10:%.*]] = sext i8 [[TMP29]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_10:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_10]]
; DEFAULT64-NEXT: [[TMP30:%.*]] = load i8, ptr [[ARRAYIDX8_10]], align 1
; DEFAULT64-NEXT: [[CONV9_10:%.*]] = zext i8 [[TMP30]] to i32
; DEFAULT64-NEXT: [[MUL10_10:%.*]] = mul nsw i32 [[CONV9_10]], [[CONV_10]]
; DEFAULT64-NEXT: [[ADD11_10]] = add nsw i32 [[MUL10_10]], [[SUM_025_10]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_10]] = add nuw nsw i64 [[INDVARS_IV_10]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_10:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_10]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_10]], label %[[FOR_COND_CLEANUP3_10:.*]], label %[[FOR_BODY4_10]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_10]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_10:%.*]] = phi i32 [ [[ADD11_10]], %[[FOR_BODY4_10]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_10:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 10
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_10]], ptr [[ARRAYIDX13_10]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_11:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 11
; DEFAULT64-NEXT: [[TMP31:%.*]] = load i32, ptr [[ARRAYIDX_11]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_11:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 11264
; DEFAULT64-NEXT: br label %[[FOR_BODY4_11:.*]]
; DEFAULT64: [[FOR_BODY4_11]]:
; DEFAULT64-NEXT: [[INDVARS_IV_11:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_10]] ], [ [[INDVARS_IV_NEXT_11:%.*]], %[[FOR_BODY4_11]] ]
; DEFAULT64-NEXT: [[SUM_025_11:%.*]] = phi i32 [ [[TMP31]], %[[FOR_COND_CLEANUP3_10]] ], [ [[ADD11_11:%.*]], %[[FOR_BODY4_11]] ]
; DEFAULT64-NEXT: [[GEP_11:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_11]], i64 [[INDVARS_IV_11]]
; DEFAULT64-NEXT: [[TMP32:%.*]] = load i8, ptr [[GEP_11]], align 1
; DEFAULT64-NEXT: [[CONV_11:%.*]] = sext i8 [[TMP32]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_11:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_11]]
; DEFAULT64-NEXT: [[TMP33:%.*]] = load i8, ptr [[ARRAYIDX8_11]], align 1
; DEFAULT64-NEXT: [[CONV9_11:%.*]] = zext i8 [[TMP33]] to i32
; DEFAULT64-NEXT: [[MUL10_11:%.*]] = mul nsw i32 [[CONV9_11]], [[CONV_11]]
; DEFAULT64-NEXT: [[ADD11_11]] = add nsw i32 [[MUL10_11]], [[SUM_025_11]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_11]] = add nuw nsw i64 [[INDVARS_IV_11]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_11:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_11]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_11]], label %[[FOR_COND_CLEANUP3_11:.*]], label %[[FOR_BODY4_11]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_11]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_11:%.*]] = phi i32 [ [[ADD11_11]], %[[FOR_BODY4_11]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_11:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 11
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_11]], ptr [[ARRAYIDX13_11]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_12:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 12
; DEFAULT64-NEXT: [[TMP34:%.*]] = load i32, ptr [[ARRAYIDX_12]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_12:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 12288
; DEFAULT64-NEXT: br label %[[FOR_BODY4_12:.*]]
; DEFAULT64: [[FOR_BODY4_12]]:
; DEFAULT64-NEXT: [[INDVARS_IV_12:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_11]] ], [ [[INDVARS_IV_NEXT_12:%.*]], %[[FOR_BODY4_12]] ]
; DEFAULT64-NEXT: [[SUM_025_12:%.*]] = phi i32 [ [[TMP34]], %[[FOR_COND_CLEANUP3_11]] ], [ [[ADD11_12:%.*]], %[[FOR_BODY4_12]] ]
; DEFAULT64-NEXT: [[GEP_12:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_12]], i64 [[INDVARS_IV_12]]
; DEFAULT64-NEXT: [[TMP35:%.*]] = load i8, ptr [[GEP_12]], align 1
; DEFAULT64-NEXT: [[CONV_12:%.*]] = sext i8 [[TMP35]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_12:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_12]]
; DEFAULT64-NEXT: [[TMP36:%.*]] = load i8, ptr [[ARRAYIDX8_12]], align 1
; DEFAULT64-NEXT: [[CONV9_12:%.*]] = zext i8 [[TMP36]] to i32
; DEFAULT64-NEXT: [[MUL10_12:%.*]] = mul nsw i32 [[CONV9_12]], [[CONV_12]]
; DEFAULT64-NEXT: [[ADD11_12]] = add nsw i32 [[MUL10_12]], [[SUM_025_12]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_12]] = add nuw nsw i64 [[INDVARS_IV_12]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_12:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_12]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_12]], label %[[FOR_COND_CLEANUP3_12:.*]], label %[[FOR_BODY4_12]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_12]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_12:%.*]] = phi i32 [ [[ADD11_12]], %[[FOR_BODY4_12]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_12:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 12
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_12]], ptr [[ARRAYIDX13_12]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 13
; DEFAULT64-NEXT: [[TMP37:%.*]] = load i32, ptr [[ARRAYIDX_13]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_13:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 13312
; DEFAULT64-NEXT: br label %[[FOR_BODY4_13:.*]]
; DEFAULT64: [[FOR_BODY4_13]]:
; DEFAULT64-NEXT: [[INDVARS_IV_13:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_12]] ], [ [[INDVARS_IV_NEXT_13:%.*]], %[[FOR_BODY4_13]] ]
; DEFAULT64-NEXT: [[SUM_025_13:%.*]] = phi i32 [ [[TMP37]], %[[FOR_COND_CLEANUP3_12]] ], [ [[ADD11_13:%.*]], %[[FOR_BODY4_13]] ]
; DEFAULT64-NEXT: [[GEP_13:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_13]], i64 [[INDVARS_IV_13]]
; DEFAULT64-NEXT: [[TMP38:%.*]] = load i8, ptr [[GEP_13]], align 1
; DEFAULT64-NEXT: [[CONV_13:%.*]] = sext i8 [[TMP38]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_13:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_13]]
; DEFAULT64-NEXT: [[TMP39:%.*]] = load i8, ptr [[ARRAYIDX8_13]], align 1
; DEFAULT64-NEXT: [[CONV9_13:%.*]] = zext i8 [[TMP39]] to i32
; DEFAULT64-NEXT: [[MUL10_13:%.*]] = mul nsw i32 [[CONV9_13]], [[CONV_13]]
; DEFAULT64-NEXT: [[ADD11_13]] = add nsw i32 [[MUL10_13]], [[SUM_025_13]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_13]] = add nuw nsw i64 [[INDVARS_IV_13]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_13:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_13]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_13]], label %[[FOR_COND_CLEANUP3_13:.*]], label %[[FOR_BODY4_13]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_13]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_13:%.*]] = phi i32 [ [[ADD11_13]], %[[FOR_BODY4_13]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 13
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_13]], ptr [[ARRAYIDX13_13]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_14:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 14
; DEFAULT64-NEXT: [[TMP40:%.*]] = load i32, ptr [[ARRAYIDX_14]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_14:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 14336
; DEFAULT64-NEXT: br label %[[FOR_BODY4_14:.*]]
; DEFAULT64: [[FOR_BODY4_14]]:
; DEFAULT64-NEXT: [[INDVARS_IV_14:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_13]] ], [ [[INDVARS_IV_NEXT_14:%.*]], %[[FOR_BODY4_14]] ]
; DEFAULT64-NEXT: [[SUM_025_14:%.*]] = phi i32 [ [[TMP40]], %[[FOR_COND_CLEANUP3_13]] ], [ [[ADD11_14:%.*]], %[[FOR_BODY4_14]] ]
; DEFAULT64-NEXT: [[GEP_14:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_14]], i64 [[INDVARS_IV_14]]
; DEFAULT64-NEXT: [[TMP41:%.*]] = load i8, ptr [[GEP_14]], align 1
; DEFAULT64-NEXT: [[CONV_14:%.*]] = sext i8 [[TMP41]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_14:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_14]]
; DEFAULT64-NEXT: [[TMP42:%.*]] = load i8, ptr [[ARRAYIDX8_14]], align 1
; DEFAULT64-NEXT: [[CONV9_14:%.*]] = zext i8 [[TMP42]] to i32
; DEFAULT64-NEXT: [[MUL10_14:%.*]] = mul nsw i32 [[CONV9_14]], [[CONV_14]]
; DEFAULT64-NEXT: [[ADD11_14]] = add nsw i32 [[MUL10_14]], [[SUM_025_14]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_14]] = add nuw nsw i64 [[INDVARS_IV_14]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_14:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_14]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_14]], label %[[FOR_COND_CLEANUP3_14:.*]], label %[[FOR_BODY4_14]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_14]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_14:%.*]] = phi i32 [ [[ADD11_14]], %[[FOR_BODY4_14]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_14:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 14
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_14]], ptr [[ARRAYIDX13_14]], align 4
; DEFAULT64-NEXT: [[ARRAYIDX_15:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 15
; DEFAULT64-NEXT: [[TMP43:%.*]] = load i32, ptr [[ARRAYIDX_15]], align 4
; DEFAULT64-NEXT: [[INVARIANT_GEP_15:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 15360
; DEFAULT64-NEXT: br label %[[FOR_BODY4_15:.*]]
; DEFAULT64: [[FOR_BODY4_15]]:
; DEFAULT64-NEXT: [[INDVARS_IV_15:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_14]] ], [ [[INDVARS_IV_NEXT_15:%.*]], %[[FOR_BODY4_15]] ]
; DEFAULT64-NEXT: [[SUM_025_15:%.*]] = phi i32 [ [[TMP43]], %[[FOR_COND_CLEANUP3_14]] ], [ [[ADD11_15:%.*]], %[[FOR_BODY4_15]] ]
; DEFAULT64-NEXT: [[GEP_15:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_15]], i64 [[INDVARS_IV_15]]
; DEFAULT64-NEXT: [[TMP44:%.*]] = load i8, ptr [[GEP_15]], align 1
; DEFAULT64-NEXT: [[CONV_15:%.*]] = sext i8 [[TMP44]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8_15:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_15]]
; DEFAULT64-NEXT: [[TMP45:%.*]] = load i8, ptr [[ARRAYIDX8_15]], align 1
; DEFAULT64-NEXT: [[CONV9_15:%.*]] = zext i8 [[TMP45]] to i32
; DEFAULT64-NEXT: [[MUL10_15:%.*]] = mul nsw i32 [[CONV9_15]], [[CONV_15]]
; DEFAULT64-NEXT: [[ADD11_15]] = add nsw i32 [[MUL10_15]], [[SUM_025_15]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT_15]] = add nuw nsw i64 [[INDVARS_IV_15]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT_15:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_15]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT_15]], label %[[FOR_COND_CLEANUP3_15:.*]], label %[[FOR_BODY4_15]], !llvm.loop [[LOOP0]]
; DEFAULT64: [[FOR_COND_CLEANUP3_15]]:
; DEFAULT64-NEXT: [[ADD11_LCSSA_15:%.*]] = phi i32 [ [[ADD11_15]], %[[FOR_BODY4_15]] ]
; DEFAULT64-NEXT: [[ARRAYIDX13_15:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 15
; DEFAULT64-NEXT: store i32 [[ADD11_LCSSA_15]], ptr [[ARRAYIDX13_15]], align 4
; DEFAULT64-NEXT: ret void
; DEFAULT64: [[FOR_BODY4]]:
; DEFAULT64-NEXT: [[INDVARS_IV:%.*]] = phi i64 [ 0, %[[FOR_BODY]] ], [ [[INDVARS_IV_NEXT:%.*]], %[[FOR_BODY4]] ]
; DEFAULT64-NEXT: [[SUM_025:%.*]] = phi i32 [ [[TMP0]], %[[FOR_BODY]] ], [ [[ADD11]], %[[FOR_BODY4]] ]
; DEFAULT64-NEXT: [[GEP:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[INDVARS_IV]]
; DEFAULT64-NEXT: [[TMP46:%.*]] = load i8, ptr [[GEP]], align 1
; DEFAULT64-NEXT: [[CONV:%.*]] = sext i8 [[TMP46]] to i32
; DEFAULT64-NEXT: [[ARRAYIDX8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV]]
; DEFAULT64-NEXT: [[TMP47:%.*]] = load i8, ptr [[ARRAYIDX8]], align 1
; DEFAULT64-NEXT: [[CONV9:%.*]] = zext i8 [[TMP47]] to i32
; DEFAULT64-NEXT: [[MUL10:%.*]] = mul nsw i32 [[CONV9]], [[CONV]]
; DEFAULT64-NEXT: [[ADD11]] = add nsw i32 [[MUL10]], [[SUM_025]]
; DEFAULT64-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
; DEFAULT64-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 1024
; DEFAULT64-NEXT: br i1 [[EXITCOND_NOT]], label %[[FOR_COND_CLEANUP3]], label %[[FOR_BODY4]], !llvm.loop [[LOOP0]]
;
; DEFAULT32-LABEL: define void @large_outer(
; DEFAULT32-SAME: ptr noalias [[OUTPUT:%.*]], ptr [[WEIGHTS:%.*]], ptr [[BIAS:%.*]], ptr [[ACTIVATION:%.*]]) #[[ATTR0:[0-9]+]] {
; DEFAULT32-NEXT: [[ENTRY:.*]]:
; DEFAULT32-NEXT: br label %[[FOR_BODY:.*]]
; DEFAULT32: [[FOR_BODY]]:
; DEFAULT32-NEXT: [[INDVARS_IV29:%.*]] = phi i64 [ 0, %[[ENTRY]] ], [ [[INDVARS_IV_NEXT30:%.*]], %[[FOR_COND_CLEANUP3:.*]] ]
; DEFAULT32-NEXT: [[ARRAYIDX:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 [[INDVARS_IV29]]
; DEFAULT32-NEXT: [[TMP0:%.*]] = load i32, ptr [[ARRAYIDX]], align 4
; DEFAULT32-NEXT: [[TMP1:%.*]] = shl nuw nsw i64 [[INDVARS_IV29]], 10
; DEFAULT32-NEXT: [[INVARIANT_GEP:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[TMP1]]
; DEFAULT32-NEXT: br label %[[FOR_BODY4:.*]]
; DEFAULT32: [[FOR_COND_CLEANUP3]]:
; DEFAULT32-NEXT: [[ADD11_LCSSA:%.*]] = phi i32 [ [[ADD11:%.*]], %[[FOR_BODY4]] ]
; DEFAULT32-NEXT: [[ARRAYIDX13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 [[INDVARS_IV29]]
; DEFAULT32-NEXT: store i32 [[ADD11_LCSSA]], ptr [[ARRAYIDX13]], align 4
; DEFAULT32-NEXT: [[INDVARS_IV_NEXT30]] = add nuw nsw i64 [[INDVARS_IV29]], 1
; DEFAULT32-NEXT: [[EXITCOND32_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT30]], 16
; DEFAULT32-NEXT: br i1 [[EXITCOND32_NOT]], label %[[FOR_COND_CLEANUP:.*]], label %[[FOR_BODY]]
; DEFAULT32: [[FOR_BODY4]]:
; DEFAULT32-NEXT: [[INDVARS_IV:%.*]] = phi i64 [ 0, %[[FOR_BODY]] ], [ [[INDVARS_IV_NEXT:%.*]], %[[FOR_BODY4]] ]
; DEFAULT32-NEXT: [[SUM_025:%.*]] = phi i32 [ [[TMP0]], %[[FOR_BODY]] ], [ [[ADD11]], %[[FOR_BODY4]] ]
; DEFAULT32-NEXT: [[GEP:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP]], i64 [[INDVARS_IV]]
; DEFAULT32-NEXT: [[TMP2:%.*]] = load i8, ptr [[GEP]], align 1
; DEFAULT32-NEXT: [[CONV:%.*]] = sext i8 [[TMP2]] to i32
; DEFAULT32-NEXT: [[ARRAYIDX8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV]]
; DEFAULT32-NEXT: [[TMP3:%.*]] = load i8, ptr [[ARRAYIDX8]], align 1
; DEFAULT32-NEXT: [[CONV9:%.*]] = zext i8 [[TMP3]] to i32
; DEFAULT32-NEXT: [[MUL10:%.*]] = mul nsw i32 [[CONV9]], [[CONV]]
; DEFAULT32-NEXT: [[ADD11]] = add nsw i32 [[MUL10]], [[SUM_025]]
; DEFAULT32-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
; DEFAULT32-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 1024
; DEFAULT32-NEXT: br i1 [[EXITCOND_NOT]], label %[[FOR_COND_CLEANUP3]], label %[[FOR_BODY4]], !llvm.loop [[LOOP0:![0-9]+]]
; DEFAULT32: [[FOR_COND_CLEANUP]]:
; DEFAULT32-NEXT: ret void
;
entry:
br label %for.body
for.body:
%indvars.iv29 = phi i64 [ 0, %entry ], [ %indvars.iv.next30, %for.cond.cleanup3 ]
%arrayidx = getelementptr inbounds nuw [4 x i8], ptr %bias, i64 %indvars.iv29
%0 = load i32, ptr %arrayidx, align 4
%1 = shl nuw nsw i64 %indvars.iv29, 10
%invariant.gep = getelementptr inbounds i8, ptr %weights, i64 %1
br label %for.body4
for.cond.cleanup3:
%arrayidx13 = getelementptr inbounds nuw [4 x i8], ptr %output, i64 %indvars.iv29
store i32 %add11, ptr %arrayidx13, align 4
%indvars.iv.next30 = add nuw nsw i64 %indvars.iv29, 1
%exitcond32.not = icmp eq i64 %indvars.iv.next30, 16
br i1 %exitcond32.not, label %for.cond.cleanup, label %for.body
for.body4:
%indvars.iv = phi i64 [ 0, %for.body ], [ %indvars.iv.next, %for.body4 ]
%sum.025 = phi i32 [ %0, %for.body ], [ %add11, %for.body4 ]
%gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
%2 = load i8, ptr %gep, align 1
%conv = sext i8 %2 to i32
%arrayidx8 = getelementptr inbounds nuw i8, ptr %activation, i64 %indvars.iv
%3 = load i8, ptr %arrayidx8, align 1
%conv9 = zext i8 %3 to i32
%mul10 = mul nsw i32 %conv9, %conv
%add11 = add nsw i32 %mul10, %sum.025
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, 1024
br i1 %exitcond.not, label %for.cond.cleanup3, label %for.body4, !llvm.loop !2
for.cond.cleanup:
ret void
}
define void @small_outer(ptr noalias %output, ptr %weights, ptr %bias, ptr %activation) {
; CHECK-LABEL: define void @small_outer(
; CHECK-SAME: ptr noalias [[OUTPUT:%.*]], ptr [[WEIGHTS:%.*]], ptr [[BIAS:%.*]], ptr [[ACTIVATION:%.*]]) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT: [[ENTRY:.*:]]
; CHECK-NEXT: br label %[[FOR_BODY:.*]]
; CHECK: [[FOR_BODY]]:
; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[BIAS]], align 4
; CHECK-NEXT: br label %[[FOR_BODY4:.*]]
; CHECK: [[FOR_COND_CLEANUP3:.*]]:
; CHECK-NEXT: [[ADD11_LCSSA:%.*]] = phi i32 [ [[ADD11:%.*]], %[[FOR_BODY4]] ]
; CHECK-NEXT: store i32 [[ADD11_LCSSA]], ptr [[OUTPUT]], align 4
; CHECK-NEXT: [[ARRAYIDX_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 1
; CHECK-NEXT: [[TMP1:%.*]] = load i32, ptr [[ARRAYIDX_1]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_1:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 1024
; CHECK-NEXT: br label %[[FOR_BODY4_1:.*]]
; CHECK: [[FOR_BODY4_1]]:
; CHECK-NEXT: [[INDVARS_IV_1:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3]] ], [ [[INDVARS_IV_NEXT_1:%.*]], %[[FOR_BODY4_1]] ]
; CHECK-NEXT: [[SUM_025_1:%.*]] = phi i32 [ [[TMP1]], %[[FOR_COND_CLEANUP3]] ], [ [[ADD11_1:%.*]], %[[FOR_BODY4_1]] ]
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_1]], i64 [[INDVARS_IV_1]]
; CHECK-NEXT: [[TMP2:%.*]] = load i8, ptr [[GEP_1]], align 1
; CHECK-NEXT: [[CONV_1:%.*]] = sext i8 [[TMP2]] to i32
; CHECK-NEXT: [[ARRAYIDX8_1:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_1]]
; CHECK-NEXT: [[TMP3:%.*]] = load i8, ptr [[ARRAYIDX8_1]], align 1
; CHECK-NEXT: [[CONV9_1:%.*]] = zext i8 [[TMP3]] to i32
; CHECK-NEXT: [[MUL10_1:%.*]] = mul nsw i32 [[CONV9_1]], [[CONV_1]]
; CHECK-NEXT: [[ADD11_1]] = add nsw i32 [[MUL10_1]], [[SUM_025_1]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_1]] = add nuw nsw i64 [[INDVARS_IV_1]], 1
; CHECK-NEXT: [[EXITCOND_NOT_1:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_1]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_1]], label %[[FOR_COND_CLEANUP3_1:.*]], label %[[FOR_BODY4_1]], !llvm.loop [[LOOP0:![0-9]+]]
; CHECK: [[FOR_COND_CLEANUP3_1]]:
; CHECK-NEXT: [[ADD11_LCSSA_1:%.*]] = phi i32 [ [[ADD11_1]], %[[FOR_BODY4_1]] ]
; CHECK-NEXT: [[ARRAYIDX13_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 1
; CHECK-NEXT: store i32 [[ADD11_LCSSA_1]], ptr [[ARRAYIDX13_1]], align 4
; CHECK-NEXT: [[ARRAYIDX_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 2
; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[ARRAYIDX_2]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_2:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 2048
; CHECK-NEXT: br label %[[FOR_BODY4_2:.*]]
; CHECK: [[FOR_BODY4_2]]:
; CHECK-NEXT: [[INDVARS_IV_2:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_1]] ], [ [[INDVARS_IV_NEXT_2:%.*]], %[[FOR_BODY4_2]] ]
; CHECK-NEXT: [[SUM_025_2:%.*]] = phi i32 [ [[TMP4]], %[[FOR_COND_CLEANUP3_1]] ], [ [[ADD11_2:%.*]], %[[FOR_BODY4_2]] ]
; CHECK-NEXT: [[GEP_2:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_2]], i64 [[INDVARS_IV_2]]
; CHECK-NEXT: [[TMP5:%.*]] = load i8, ptr [[GEP_2]], align 1
; CHECK-NEXT: [[CONV_2:%.*]] = sext i8 [[TMP5]] to i32
; CHECK-NEXT: [[ARRAYIDX8_2:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_2]]
; CHECK-NEXT: [[TMP6:%.*]] = load i8, ptr [[ARRAYIDX8_2]], align 1
; CHECK-NEXT: [[CONV9_2:%.*]] = zext i8 [[TMP6]] to i32
; CHECK-NEXT: [[MUL10_2:%.*]] = mul nsw i32 [[CONV9_2]], [[CONV_2]]
; CHECK-NEXT: [[ADD11_2]] = add nsw i32 [[MUL10_2]], [[SUM_025_2]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_2]] = add nuw nsw i64 [[INDVARS_IV_2]], 1
; CHECK-NEXT: [[EXITCOND_NOT_2:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_2]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_2]], label %[[FOR_COND_CLEANUP3_2:.*]], label %[[FOR_BODY4_2]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_2]]:
; CHECK-NEXT: [[ADD11_LCSSA_2:%.*]] = phi i32 [ [[ADD11_2]], %[[FOR_BODY4_2]] ]
; CHECK-NEXT: [[ARRAYIDX13_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 2
; CHECK-NEXT: store i32 [[ADD11_LCSSA_2]], ptr [[ARRAYIDX13_2]], align 4
; CHECK-NEXT: [[ARRAYIDX_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 3
; CHECK-NEXT: [[TMP7:%.*]] = load i32, ptr [[ARRAYIDX_3]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_3:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 3072
; CHECK-NEXT: br label %[[FOR_BODY4_3:.*]]
; CHECK: [[FOR_BODY4_3]]:
; CHECK-NEXT: [[INDVARS_IV_3:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_2]] ], [ [[INDVARS_IV_NEXT_3:%.*]], %[[FOR_BODY4_3]] ]
; CHECK-NEXT: [[SUM_025_3:%.*]] = phi i32 [ [[TMP7]], %[[FOR_COND_CLEANUP3_2]] ], [ [[ADD11_3:%.*]], %[[FOR_BODY4_3]] ]
; CHECK-NEXT: [[GEP_3:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_3]], i64 [[INDVARS_IV_3]]
; CHECK-NEXT: [[TMP8:%.*]] = load i8, ptr [[GEP_3]], align 1
; CHECK-NEXT: [[CONV_3:%.*]] = sext i8 [[TMP8]] to i32
; CHECK-NEXT: [[ARRAYIDX8_3:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_3]]
; CHECK-NEXT: [[TMP9:%.*]] = load i8, ptr [[ARRAYIDX8_3]], align 1
; CHECK-NEXT: [[CONV9_3:%.*]] = zext i8 [[TMP9]] to i32
; CHECK-NEXT: [[MUL10_3:%.*]] = mul nsw i32 [[CONV9_3]], [[CONV_3]]
; CHECK-NEXT: [[ADD11_3]] = add nsw i32 [[MUL10_3]], [[SUM_025_3]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_3]] = add nuw nsw i64 [[INDVARS_IV_3]], 1
; CHECK-NEXT: [[EXITCOND_NOT_3:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_3]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_3]], label %[[FOR_COND_CLEANUP3_3:.*]], label %[[FOR_BODY4_3]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_3]]:
; CHECK-NEXT: [[ADD11_LCSSA_3:%.*]] = phi i32 [ [[ADD11_3]], %[[FOR_BODY4_3]] ]
; CHECK-NEXT: [[ARRAYIDX13_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 3
; CHECK-NEXT: store i32 [[ADD11_LCSSA_3]], ptr [[ARRAYIDX13_3]], align 4
; CHECK-NEXT: ret void
; CHECK: [[FOR_BODY4]]:
; CHECK-NEXT: [[INDVARS_IV:%.*]] = phi i64 [ 0, %[[FOR_BODY]] ], [ [[INDVARS_IV_NEXT:%.*]], %[[FOR_BODY4]] ]
; CHECK-NEXT: [[SUM_025:%.*]] = phi i32 [ [[TMP0]], %[[FOR_BODY]] ], [ [[ADD11]], %[[FOR_BODY4]] ]
; CHECK-NEXT: [[GEP:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[INDVARS_IV]]
; CHECK-NEXT: [[TMP10:%.*]] = load i8, ptr [[GEP]], align 1
; CHECK-NEXT: [[CONV:%.*]] = sext i8 [[TMP10]] to i32
; CHECK-NEXT: [[ARRAYIDX8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV]]
; CHECK-NEXT: [[TMP11:%.*]] = load i8, ptr [[ARRAYIDX8]], align 1
; CHECK-NEXT: [[CONV9:%.*]] = zext i8 [[TMP11]] to i32
; CHECK-NEXT: [[MUL10:%.*]] = mul nsw i32 [[CONV9]], [[CONV]]
; CHECK-NEXT: [[ADD11]] = add nsw i32 [[MUL10]], [[SUM_025]]
; CHECK-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
; CHECK-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT]], label %[[FOR_COND_CLEANUP3]], label %[[FOR_BODY4]], !llvm.loop [[LOOP0]]
;
entry:
br label %for.body
for.body:
%indvars.iv29 = phi i64 [ 0, %entry ], [ %indvars.iv.next30, %for.cond.cleanup3 ]
%arrayidx = getelementptr inbounds nuw [4 x i8], ptr %bias, i64 %indvars.iv29
%0 = load i32, ptr %arrayidx, align 4
%1 = shl nuw nsw i64 %indvars.iv29, 10
%invariant.gep = getelementptr inbounds i8, ptr %weights, i64 %1
br label %for.body4
for.cond.cleanup3:
%arrayidx13 = getelementptr inbounds nuw [4 x i8], ptr %output, i64 %indvars.iv29
store i32 %add11, ptr %arrayidx13, align 4
%indvars.iv.next30 = add nuw nsw i64 %indvars.iv29, 1
%exitcond32.not = icmp eq i64 %indvars.iv.next30, 4
br i1 %exitcond32.not, label %for.cond.cleanup, label %for.body
for.body4:
%indvars.iv = phi i64 [ 0, %for.body ], [ %indvars.iv.next, %for.body4 ]
%sum.025 = phi i32 [ %0, %for.body ], [ %add11, %for.body4 ]
%gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
%2 = load i8, ptr %gep, align 1
%conv = sext i8 %2 to i32
%arrayidx8 = getelementptr inbounds nuw i8, ptr %activation, i64 %indvars.iv
%3 = load i8, ptr %arrayidx8, align 1
%conv9 = zext i8 %3 to i32
%mul10 = mul nsw i32 %conv9, %conv
%add11 = add nsw i32 %mul10, %sum.025
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, 1024
br i1 %exitcond.not, label %for.cond.cleanup3, label %for.body4, !llvm.loop !2
for.cond.cleanup:
ret void
}
define void @small_inner(ptr %p) {
; CHECK-LABEL: define void @small_inner(
; CHECK-SAME: ptr [[P:%.*]]) #[[ATTR0]] {
; CHECK-NEXT: [[ENTRY:.*:]]
; CHECK-NEXT: br label %[[LOOP:.*]]
; CHECK: [[LOOP]]:
; CHECK-NEXT: store i32 1, ptr [[P]], align 4
; CHECK-NEXT: [[ADDR_1:%.*]] = getelementptr i32, ptr [[P]], i64 1
; CHECK-NEXT: store i32 2, ptr [[ADDR_1]], align 4
; CHECK-NEXT: [[ADDR_2:%.*]] = getelementptr i32, ptr [[P]], i64 2
; CHECK-NEXT: store i32 3, ptr [[ADDR_2]], align 4
; CHECK-NEXT: [[ADDR_3:%.*]] = getelementptr i32, ptr [[P]], i64 3
; CHECK-NEXT: store i32 4, ptr [[ADDR_3]], align 4
; CHECK-NEXT: [[ADDR_4:%.*]] = getelementptr i32, ptr [[P]], i64 4
; CHECK-NEXT: store i32 5, ptr [[ADDR_4]], align 4
; CHECK-NEXT: [[ADDR_5:%.*]] = getelementptr i32, ptr [[P]], i64 5
; CHECK-NEXT: store i32 6, ptr [[ADDR_5]], align 4
; CHECK-NEXT: [[ADDR_6:%.*]] = getelementptr i32, ptr [[P]], i64 6
; CHECK-NEXT: store i32 7, ptr [[ADDR_6]], align 4
; CHECK-NEXT: [[ADDR_7:%.*]] = getelementptr i32, ptr [[P]], i64 7
; CHECK-NEXT: store i32 8, ptr [[ADDR_7]], align 4
; CHECK-NEXT: [[ADDR_8:%.*]] = getelementptr i32, ptr [[P]], i64 8
; CHECK-NEXT: store i32 9, ptr [[ADDR_8]], align 4
; CHECK-NEXT: [[ADDR_9:%.*]] = getelementptr i32, ptr [[P]], i64 9
; CHECK-NEXT: store i32 10, ptr [[ADDR_9]], align 4
; CHECK-NEXT: [[ADDR_10:%.*]] = getelementptr i32, ptr [[P]], i64 10
; CHECK-NEXT: store i32 11, ptr [[ADDR_10]], align 4
; CHECK-NEXT: [[ADDR_11:%.*]] = getelementptr i32, ptr [[P]], i64 11
; CHECK-NEXT: store i32 12, ptr [[ADDR_11]], align 4
; CHECK-NEXT: [[ADDR_12:%.*]] = getelementptr i32, ptr [[P]], i64 12
; CHECK-NEXT: store i32 13, ptr [[ADDR_12]], align 4
; CHECK-NEXT: [[ADDR_13:%.*]] = getelementptr i32, ptr [[P]], i64 13
; CHECK-NEXT: store i32 14, ptr [[ADDR_13]], align 4
; CHECK-NEXT: [[ADDR_14:%.*]] = getelementptr i32, ptr [[P]], i64 14
; CHECK-NEXT: store i32 15, ptr [[ADDR_14]], align 4
; CHECK-NEXT: [[ADDR_15:%.*]] = getelementptr i32, ptr [[P]], i64 15
; CHECK-NEXT: store i32 16, ptr [[ADDR_15]], align 4
; CHECK-NEXT: ret void
;
entry:
br label %loop
loop:
%i = phi i64 [ 0, %entry ], [ %next, %loop ]
%next = add nuw nsw i64 %i, 1
%v = trunc i64 %next to i32
%addr = getelementptr i32, ptr %p, i64 %i
store i32 %v, ptr %addr, align 4
%done = icmp eq i64 %next, 16
br i1 %done, label %exit, label %loop
exit:
ret void
}
define void @pragma_outer(ptr noalias %output, ptr %weights, ptr %bias, ptr %activation) {
; CHECK-LABEL: define void @pragma_outer(
; CHECK-SAME: ptr noalias [[OUTPUT:%.*]], ptr [[WEIGHTS:%.*]], ptr [[BIAS:%.*]], ptr [[ACTIVATION:%.*]]) #[[ATTR0]] {
; CHECK-NEXT: [[ENTRY:.*:]]
; CHECK-NEXT: br label %[[FOR_BODY:.*]]
; CHECK: [[FOR_BODY]]:
; CHECK-NEXT: [[TMP0:%.*]] = load i32, ptr [[BIAS]], align 4
; CHECK-NEXT: br label %[[FOR_BODY4:.*]]
; CHECK: [[FOR_COND_CLEANUP3:.*]]:
; CHECK-NEXT: [[ADD11_LCSSA:%.*]] = phi i32 [ [[ADD11:%.*]], %[[FOR_BODY4]] ]
; CHECK-NEXT: store i32 [[ADD11_LCSSA]], ptr [[OUTPUT]], align 4
; CHECK-NEXT: [[ARRAYIDX_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 1
; CHECK-NEXT: [[TMP1:%.*]] = load i32, ptr [[ARRAYIDX_1]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_1:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 1024
; CHECK-NEXT: br label %[[FOR_BODY4_1:.*]]
; CHECK: [[FOR_BODY4_1]]:
; CHECK-NEXT: [[INDVARS_IV_1:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3]] ], [ [[INDVARS_IV_NEXT_1:%.*]], %[[FOR_BODY4_1]] ]
; CHECK-NEXT: [[SUM_025_1:%.*]] = phi i32 [ [[TMP1]], %[[FOR_COND_CLEANUP3]] ], [ [[ADD11_1:%.*]], %[[FOR_BODY4_1]] ]
; CHECK-NEXT: [[GEP_1:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_1]], i64 [[INDVARS_IV_1]]
; CHECK-NEXT: [[TMP2:%.*]] = load i8, ptr [[GEP_1]], align 1
; CHECK-NEXT: [[CONV_1:%.*]] = sext i8 [[TMP2]] to i32
; CHECK-NEXT: [[ARRAYIDX8_1:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_1]]
; CHECK-NEXT: [[TMP3:%.*]] = load i8, ptr [[ARRAYIDX8_1]], align 1
; CHECK-NEXT: [[CONV9_1:%.*]] = zext i8 [[TMP3]] to i32
; CHECK-NEXT: [[MUL10_1:%.*]] = mul nsw i32 [[CONV9_1]], [[CONV_1]]
; CHECK-NEXT: [[ADD11_1]] = add nsw i32 [[MUL10_1]], [[SUM_025_1]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_1]] = add nuw nsw i64 [[INDVARS_IV_1]], 1
; CHECK-NEXT: [[EXITCOND_NOT_1:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_1]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_1]], label %[[FOR_COND_CLEANUP3_1:.*]], label %[[FOR_BODY4_1]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_1]]:
; CHECK-NEXT: [[ADD11_LCSSA_1:%.*]] = phi i32 [ [[ADD11_1]], %[[FOR_BODY4_1]] ]
; CHECK-NEXT: [[ARRAYIDX13_1:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 1
; CHECK-NEXT: store i32 [[ADD11_LCSSA_1]], ptr [[ARRAYIDX13_1]], align 4
; CHECK-NEXT: [[ARRAYIDX_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 2
; CHECK-NEXT: [[TMP4:%.*]] = load i32, ptr [[ARRAYIDX_2]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_2:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 2048
; CHECK-NEXT: br label %[[FOR_BODY4_2:.*]]
; CHECK: [[FOR_BODY4_2]]:
; CHECK-NEXT: [[INDVARS_IV_2:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_1]] ], [ [[INDVARS_IV_NEXT_2:%.*]], %[[FOR_BODY4_2]] ]
; CHECK-NEXT: [[SUM_025_2:%.*]] = phi i32 [ [[TMP4]], %[[FOR_COND_CLEANUP3_1]] ], [ [[ADD11_2:%.*]], %[[FOR_BODY4_2]] ]
; CHECK-NEXT: [[GEP_2:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_2]], i64 [[INDVARS_IV_2]]
; CHECK-NEXT: [[TMP5:%.*]] = load i8, ptr [[GEP_2]], align 1
; CHECK-NEXT: [[CONV_2:%.*]] = sext i8 [[TMP5]] to i32
; CHECK-NEXT: [[ARRAYIDX8_2:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_2]]
; CHECK-NEXT: [[TMP6:%.*]] = load i8, ptr [[ARRAYIDX8_2]], align 1
; CHECK-NEXT: [[CONV9_2:%.*]] = zext i8 [[TMP6]] to i32
; CHECK-NEXT: [[MUL10_2:%.*]] = mul nsw i32 [[CONV9_2]], [[CONV_2]]
; CHECK-NEXT: [[ADD11_2]] = add nsw i32 [[MUL10_2]], [[SUM_025_2]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_2]] = add nuw nsw i64 [[INDVARS_IV_2]], 1
; CHECK-NEXT: [[EXITCOND_NOT_2:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_2]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_2]], label %[[FOR_COND_CLEANUP3_2:.*]], label %[[FOR_BODY4_2]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_2]]:
; CHECK-NEXT: [[ADD11_LCSSA_2:%.*]] = phi i32 [ [[ADD11_2]], %[[FOR_BODY4_2]] ]
; CHECK-NEXT: [[ARRAYIDX13_2:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 2
; CHECK-NEXT: store i32 [[ADD11_LCSSA_2]], ptr [[ARRAYIDX13_2]], align 4
; CHECK-NEXT: [[ARRAYIDX_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 3
; CHECK-NEXT: [[TMP7:%.*]] = load i32, ptr [[ARRAYIDX_3]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_3:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 3072
; CHECK-NEXT: br label %[[FOR_BODY4_3:.*]]
; CHECK: [[FOR_BODY4_3]]:
; CHECK-NEXT: [[INDVARS_IV_3:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_2]] ], [ [[INDVARS_IV_NEXT_3:%.*]], %[[FOR_BODY4_3]] ]
; CHECK-NEXT: [[SUM_025_3:%.*]] = phi i32 [ [[TMP7]], %[[FOR_COND_CLEANUP3_2]] ], [ [[ADD11_3:%.*]], %[[FOR_BODY4_3]] ]
; CHECK-NEXT: [[GEP_3:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_3]], i64 [[INDVARS_IV_3]]
; CHECK-NEXT: [[TMP8:%.*]] = load i8, ptr [[GEP_3]], align 1
; CHECK-NEXT: [[CONV_3:%.*]] = sext i8 [[TMP8]] to i32
; CHECK-NEXT: [[ARRAYIDX8_3:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_3]]
; CHECK-NEXT: [[TMP9:%.*]] = load i8, ptr [[ARRAYIDX8_3]], align 1
; CHECK-NEXT: [[CONV9_3:%.*]] = zext i8 [[TMP9]] to i32
; CHECK-NEXT: [[MUL10_3:%.*]] = mul nsw i32 [[CONV9_3]], [[CONV_3]]
; CHECK-NEXT: [[ADD11_3]] = add nsw i32 [[MUL10_3]], [[SUM_025_3]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_3]] = add nuw nsw i64 [[INDVARS_IV_3]], 1
; CHECK-NEXT: [[EXITCOND_NOT_3:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_3]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_3]], label %[[FOR_COND_CLEANUP3_3:.*]], label %[[FOR_BODY4_3]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_3]]:
; CHECK-NEXT: [[ADD11_LCSSA_3:%.*]] = phi i32 [ [[ADD11_3]], %[[FOR_BODY4_3]] ]
; CHECK-NEXT: [[ARRAYIDX13_3:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 3
; CHECK-NEXT: store i32 [[ADD11_LCSSA_3]], ptr [[ARRAYIDX13_3]], align 4
; CHECK-NEXT: [[ARRAYIDX_4:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 4
; CHECK-NEXT: [[TMP10:%.*]] = load i32, ptr [[ARRAYIDX_4]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_4:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 4096
; CHECK-NEXT: br label %[[FOR_BODY4_4:.*]]
; CHECK: [[FOR_BODY4_4]]:
; CHECK-NEXT: [[INDVARS_IV_4:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_3]] ], [ [[INDVARS_IV_NEXT_4:%.*]], %[[FOR_BODY4_4]] ]
; CHECK-NEXT: [[SUM_025_4:%.*]] = phi i32 [ [[TMP10]], %[[FOR_COND_CLEANUP3_3]] ], [ [[ADD11_4:%.*]], %[[FOR_BODY4_4]] ]
; CHECK-NEXT: [[GEP_4:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_4]], i64 [[INDVARS_IV_4]]
; CHECK-NEXT: [[TMP11:%.*]] = load i8, ptr [[GEP_4]], align 1
; CHECK-NEXT: [[CONV_4:%.*]] = sext i8 [[TMP11]] to i32
; CHECK-NEXT: [[ARRAYIDX8_4:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_4]]
; CHECK-NEXT: [[TMP12:%.*]] = load i8, ptr [[ARRAYIDX8_4]], align 1
; CHECK-NEXT: [[CONV9_4:%.*]] = zext i8 [[TMP12]] to i32
; CHECK-NEXT: [[MUL10_4:%.*]] = mul nsw i32 [[CONV9_4]], [[CONV_4]]
; CHECK-NEXT: [[ADD11_4]] = add nsw i32 [[MUL10_4]], [[SUM_025_4]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_4]] = add nuw nsw i64 [[INDVARS_IV_4]], 1
; CHECK-NEXT: [[EXITCOND_NOT_4:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_4]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_4]], label %[[FOR_COND_CLEANUP3_4:.*]], label %[[FOR_BODY4_4]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_4]]:
; CHECK-NEXT: [[ADD11_LCSSA_4:%.*]] = phi i32 [ [[ADD11_4]], %[[FOR_BODY4_4]] ]
; CHECK-NEXT: [[ARRAYIDX13_4:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 4
; CHECK-NEXT: store i32 [[ADD11_LCSSA_4]], ptr [[ARRAYIDX13_4]], align 4
; CHECK-NEXT: [[ARRAYIDX_5:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 5
; CHECK-NEXT: [[TMP13:%.*]] = load i32, ptr [[ARRAYIDX_5]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_5:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 5120
; CHECK-NEXT: br label %[[FOR_BODY4_5:.*]]
; CHECK: [[FOR_BODY4_5]]:
; CHECK-NEXT: [[INDVARS_IV_5:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_4]] ], [ [[INDVARS_IV_NEXT_5:%.*]], %[[FOR_BODY4_5]] ]
; CHECK-NEXT: [[SUM_025_5:%.*]] = phi i32 [ [[TMP13]], %[[FOR_COND_CLEANUP3_4]] ], [ [[ADD11_5:%.*]], %[[FOR_BODY4_5]] ]
; CHECK-NEXT: [[GEP_5:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_5]], i64 [[INDVARS_IV_5]]
; CHECK-NEXT: [[TMP14:%.*]] = load i8, ptr [[GEP_5]], align 1
; CHECK-NEXT: [[CONV_5:%.*]] = sext i8 [[TMP14]] to i32
; CHECK-NEXT: [[ARRAYIDX8_5:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_5]]
; CHECK-NEXT: [[TMP15:%.*]] = load i8, ptr [[ARRAYIDX8_5]], align 1
; CHECK-NEXT: [[CONV9_5:%.*]] = zext i8 [[TMP15]] to i32
; CHECK-NEXT: [[MUL10_5:%.*]] = mul nsw i32 [[CONV9_5]], [[CONV_5]]
; CHECK-NEXT: [[ADD11_5]] = add nsw i32 [[MUL10_5]], [[SUM_025_5]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_5]] = add nuw nsw i64 [[INDVARS_IV_5]], 1
; CHECK-NEXT: [[EXITCOND_NOT_5:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_5]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_5]], label %[[FOR_COND_CLEANUP3_5:.*]], label %[[FOR_BODY4_5]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_5]]:
; CHECK-NEXT: [[ADD11_LCSSA_5:%.*]] = phi i32 [ [[ADD11_5]], %[[FOR_BODY4_5]] ]
; CHECK-NEXT: [[ARRAYIDX13_5:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 5
; CHECK-NEXT: store i32 [[ADD11_LCSSA_5]], ptr [[ARRAYIDX13_5]], align 4
; CHECK-NEXT: [[ARRAYIDX_6:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 6
; CHECK-NEXT: [[TMP16:%.*]] = load i32, ptr [[ARRAYIDX_6]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_6:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 6144
; CHECK-NEXT: br label %[[FOR_BODY4_6:.*]]
; CHECK: [[FOR_BODY4_6]]:
; CHECK-NEXT: [[INDVARS_IV_6:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_5]] ], [ [[INDVARS_IV_NEXT_6:%.*]], %[[FOR_BODY4_6]] ]
; CHECK-NEXT: [[SUM_025_6:%.*]] = phi i32 [ [[TMP16]], %[[FOR_COND_CLEANUP3_5]] ], [ [[ADD11_6:%.*]], %[[FOR_BODY4_6]] ]
; CHECK-NEXT: [[GEP_6:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_6]], i64 [[INDVARS_IV_6]]
; CHECK-NEXT: [[TMP17:%.*]] = load i8, ptr [[GEP_6]], align 1
; CHECK-NEXT: [[CONV_6:%.*]] = sext i8 [[TMP17]] to i32
; CHECK-NEXT: [[ARRAYIDX8_6:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_6]]
; CHECK-NEXT: [[TMP18:%.*]] = load i8, ptr [[ARRAYIDX8_6]], align 1
; CHECK-NEXT: [[CONV9_6:%.*]] = zext i8 [[TMP18]] to i32
; CHECK-NEXT: [[MUL10_6:%.*]] = mul nsw i32 [[CONV9_6]], [[CONV_6]]
; CHECK-NEXT: [[ADD11_6]] = add nsw i32 [[MUL10_6]], [[SUM_025_6]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_6]] = add nuw nsw i64 [[INDVARS_IV_6]], 1
; CHECK-NEXT: [[EXITCOND_NOT_6:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_6]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_6]], label %[[FOR_COND_CLEANUP3_6:.*]], label %[[FOR_BODY4_6]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_6]]:
; CHECK-NEXT: [[ADD11_LCSSA_6:%.*]] = phi i32 [ [[ADD11_6]], %[[FOR_BODY4_6]] ]
; CHECK-NEXT: [[ARRAYIDX13_6:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 6
; CHECK-NEXT: store i32 [[ADD11_LCSSA_6]], ptr [[ARRAYIDX13_6]], align 4
; CHECK-NEXT: [[ARRAYIDX_7:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 7
; CHECK-NEXT: [[TMP19:%.*]] = load i32, ptr [[ARRAYIDX_7]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_7:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 7168
; CHECK-NEXT: br label %[[FOR_BODY4_7:.*]]
; CHECK: [[FOR_BODY4_7]]:
; CHECK-NEXT: [[INDVARS_IV_7:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_6]] ], [ [[INDVARS_IV_NEXT_7:%.*]], %[[FOR_BODY4_7]] ]
; CHECK-NEXT: [[SUM_025_7:%.*]] = phi i32 [ [[TMP19]], %[[FOR_COND_CLEANUP3_6]] ], [ [[ADD11_7:%.*]], %[[FOR_BODY4_7]] ]
; CHECK-NEXT: [[GEP_7:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_7]], i64 [[INDVARS_IV_7]]
; CHECK-NEXT: [[TMP20:%.*]] = load i8, ptr [[GEP_7]], align 1
; CHECK-NEXT: [[CONV_7:%.*]] = sext i8 [[TMP20]] to i32
; CHECK-NEXT: [[ARRAYIDX8_7:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_7]]
; CHECK-NEXT: [[TMP21:%.*]] = load i8, ptr [[ARRAYIDX8_7]], align 1
; CHECK-NEXT: [[CONV9_7:%.*]] = zext i8 [[TMP21]] to i32
; CHECK-NEXT: [[MUL10_7:%.*]] = mul nsw i32 [[CONV9_7]], [[CONV_7]]
; CHECK-NEXT: [[ADD11_7]] = add nsw i32 [[MUL10_7]], [[SUM_025_7]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_7]] = add nuw nsw i64 [[INDVARS_IV_7]], 1
; CHECK-NEXT: [[EXITCOND_NOT_7:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_7]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_7]], label %[[FOR_COND_CLEANUP3_7:.*]], label %[[FOR_BODY4_7]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_7]]:
; CHECK-NEXT: [[ADD11_LCSSA_7:%.*]] = phi i32 [ [[ADD11_7]], %[[FOR_BODY4_7]] ]
; CHECK-NEXT: [[ARRAYIDX13_7:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 7
; CHECK-NEXT: store i32 [[ADD11_LCSSA_7]], ptr [[ARRAYIDX13_7]], align 4
; CHECK-NEXT: [[ARRAYIDX_8:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 8
; CHECK-NEXT: [[TMP22:%.*]] = load i32, ptr [[ARRAYIDX_8]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_8:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 8192
; CHECK-NEXT: br label %[[FOR_BODY4_8:.*]]
; CHECK: [[FOR_BODY4_8]]:
; CHECK-NEXT: [[INDVARS_IV_8:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_7]] ], [ [[INDVARS_IV_NEXT_8:%.*]], %[[FOR_BODY4_8]] ]
; CHECK-NEXT: [[SUM_025_8:%.*]] = phi i32 [ [[TMP22]], %[[FOR_COND_CLEANUP3_7]] ], [ [[ADD11_8:%.*]], %[[FOR_BODY4_8]] ]
; CHECK-NEXT: [[GEP_8:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_8]], i64 [[INDVARS_IV_8]]
; CHECK-NEXT: [[TMP23:%.*]] = load i8, ptr [[GEP_8]], align 1
; CHECK-NEXT: [[CONV_8:%.*]] = sext i8 [[TMP23]] to i32
; CHECK-NEXT: [[ARRAYIDX8_8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_8]]
; CHECK-NEXT: [[TMP24:%.*]] = load i8, ptr [[ARRAYIDX8_8]], align 1
; CHECK-NEXT: [[CONV9_8:%.*]] = zext i8 [[TMP24]] to i32
; CHECK-NEXT: [[MUL10_8:%.*]] = mul nsw i32 [[CONV9_8]], [[CONV_8]]
; CHECK-NEXT: [[ADD11_8]] = add nsw i32 [[MUL10_8]], [[SUM_025_8]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_8]] = add nuw nsw i64 [[INDVARS_IV_8]], 1
; CHECK-NEXT: [[EXITCOND_NOT_8:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_8]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_8]], label %[[FOR_COND_CLEANUP3_8:.*]], label %[[FOR_BODY4_8]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_8]]:
; CHECK-NEXT: [[ADD11_LCSSA_8:%.*]] = phi i32 [ [[ADD11_8]], %[[FOR_BODY4_8]] ]
; CHECK-NEXT: [[ARRAYIDX13_8:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 8
; CHECK-NEXT: store i32 [[ADD11_LCSSA_8]], ptr [[ARRAYIDX13_8]], align 4
; CHECK-NEXT: [[ARRAYIDX_9:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 9
; CHECK-NEXT: [[TMP25:%.*]] = load i32, ptr [[ARRAYIDX_9]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_9:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 9216
; CHECK-NEXT: br label %[[FOR_BODY4_9:.*]]
; CHECK: [[FOR_BODY4_9]]:
; CHECK-NEXT: [[INDVARS_IV_9:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_8]] ], [ [[INDVARS_IV_NEXT_9:%.*]], %[[FOR_BODY4_9]] ]
; CHECK-NEXT: [[SUM_025_9:%.*]] = phi i32 [ [[TMP25]], %[[FOR_COND_CLEANUP3_8]] ], [ [[ADD11_9:%.*]], %[[FOR_BODY4_9]] ]
; CHECK-NEXT: [[GEP_9:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_9]], i64 [[INDVARS_IV_9]]
; CHECK-NEXT: [[TMP26:%.*]] = load i8, ptr [[GEP_9]], align 1
; CHECK-NEXT: [[CONV_9:%.*]] = sext i8 [[TMP26]] to i32
; CHECK-NEXT: [[ARRAYIDX8_9:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_9]]
; CHECK-NEXT: [[TMP27:%.*]] = load i8, ptr [[ARRAYIDX8_9]], align 1
; CHECK-NEXT: [[CONV9_9:%.*]] = zext i8 [[TMP27]] to i32
; CHECK-NEXT: [[MUL10_9:%.*]] = mul nsw i32 [[CONV9_9]], [[CONV_9]]
; CHECK-NEXT: [[ADD11_9]] = add nsw i32 [[MUL10_9]], [[SUM_025_9]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_9]] = add nuw nsw i64 [[INDVARS_IV_9]], 1
; CHECK-NEXT: [[EXITCOND_NOT_9:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_9]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_9]], label %[[FOR_COND_CLEANUP3_9:.*]], label %[[FOR_BODY4_9]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_9]]:
; CHECK-NEXT: [[ADD11_LCSSA_9:%.*]] = phi i32 [ [[ADD11_9]], %[[FOR_BODY4_9]] ]
; CHECK-NEXT: [[ARRAYIDX13_9:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 9
; CHECK-NEXT: store i32 [[ADD11_LCSSA_9]], ptr [[ARRAYIDX13_9]], align 4
; CHECK-NEXT: [[ARRAYIDX_10:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 10
; CHECK-NEXT: [[TMP28:%.*]] = load i32, ptr [[ARRAYIDX_10]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_10:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 10240
; CHECK-NEXT: br label %[[FOR_BODY4_10:.*]]
; CHECK: [[FOR_BODY4_10]]:
; CHECK-NEXT: [[INDVARS_IV_10:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_9]] ], [ [[INDVARS_IV_NEXT_10:%.*]], %[[FOR_BODY4_10]] ]
; CHECK-NEXT: [[SUM_025_10:%.*]] = phi i32 [ [[TMP28]], %[[FOR_COND_CLEANUP3_9]] ], [ [[ADD11_10:%.*]], %[[FOR_BODY4_10]] ]
; CHECK-NEXT: [[GEP_10:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_10]], i64 [[INDVARS_IV_10]]
; CHECK-NEXT: [[TMP29:%.*]] = load i8, ptr [[GEP_10]], align 1
; CHECK-NEXT: [[CONV_10:%.*]] = sext i8 [[TMP29]] to i32
; CHECK-NEXT: [[ARRAYIDX8_10:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_10]]
; CHECK-NEXT: [[TMP30:%.*]] = load i8, ptr [[ARRAYIDX8_10]], align 1
; CHECK-NEXT: [[CONV9_10:%.*]] = zext i8 [[TMP30]] to i32
; CHECK-NEXT: [[MUL10_10:%.*]] = mul nsw i32 [[CONV9_10]], [[CONV_10]]
; CHECK-NEXT: [[ADD11_10]] = add nsw i32 [[MUL10_10]], [[SUM_025_10]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_10]] = add nuw nsw i64 [[INDVARS_IV_10]], 1
; CHECK-NEXT: [[EXITCOND_NOT_10:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_10]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_10]], label %[[FOR_COND_CLEANUP3_10:.*]], label %[[FOR_BODY4_10]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_10]]:
; CHECK-NEXT: [[ADD11_LCSSA_10:%.*]] = phi i32 [ [[ADD11_10]], %[[FOR_BODY4_10]] ]
; CHECK-NEXT: [[ARRAYIDX13_10:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 10
; CHECK-NEXT: store i32 [[ADD11_LCSSA_10]], ptr [[ARRAYIDX13_10]], align 4
; CHECK-NEXT: [[ARRAYIDX_11:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 11
; CHECK-NEXT: [[TMP31:%.*]] = load i32, ptr [[ARRAYIDX_11]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_11:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 11264
; CHECK-NEXT: br label %[[FOR_BODY4_11:.*]]
; CHECK: [[FOR_BODY4_11]]:
; CHECK-NEXT: [[INDVARS_IV_11:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_10]] ], [ [[INDVARS_IV_NEXT_11:%.*]], %[[FOR_BODY4_11]] ]
; CHECK-NEXT: [[SUM_025_11:%.*]] = phi i32 [ [[TMP31]], %[[FOR_COND_CLEANUP3_10]] ], [ [[ADD11_11:%.*]], %[[FOR_BODY4_11]] ]
; CHECK-NEXT: [[GEP_11:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_11]], i64 [[INDVARS_IV_11]]
; CHECK-NEXT: [[TMP32:%.*]] = load i8, ptr [[GEP_11]], align 1
; CHECK-NEXT: [[CONV_11:%.*]] = sext i8 [[TMP32]] to i32
; CHECK-NEXT: [[ARRAYIDX8_11:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_11]]
; CHECK-NEXT: [[TMP33:%.*]] = load i8, ptr [[ARRAYIDX8_11]], align 1
; CHECK-NEXT: [[CONV9_11:%.*]] = zext i8 [[TMP33]] to i32
; CHECK-NEXT: [[MUL10_11:%.*]] = mul nsw i32 [[CONV9_11]], [[CONV_11]]
; CHECK-NEXT: [[ADD11_11]] = add nsw i32 [[MUL10_11]], [[SUM_025_11]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_11]] = add nuw nsw i64 [[INDVARS_IV_11]], 1
; CHECK-NEXT: [[EXITCOND_NOT_11:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_11]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_11]], label %[[FOR_COND_CLEANUP3_11:.*]], label %[[FOR_BODY4_11]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_11]]:
; CHECK-NEXT: [[ADD11_LCSSA_11:%.*]] = phi i32 [ [[ADD11_11]], %[[FOR_BODY4_11]] ]
; CHECK-NEXT: [[ARRAYIDX13_11:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 11
; CHECK-NEXT: store i32 [[ADD11_LCSSA_11]], ptr [[ARRAYIDX13_11]], align 4
; CHECK-NEXT: [[ARRAYIDX_12:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 12
; CHECK-NEXT: [[TMP34:%.*]] = load i32, ptr [[ARRAYIDX_12]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_12:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 12288
; CHECK-NEXT: br label %[[FOR_BODY4_12:.*]]
; CHECK: [[FOR_BODY4_12]]:
; CHECK-NEXT: [[INDVARS_IV_12:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_11]] ], [ [[INDVARS_IV_NEXT_12:%.*]], %[[FOR_BODY4_12]] ]
; CHECK-NEXT: [[SUM_025_12:%.*]] = phi i32 [ [[TMP34]], %[[FOR_COND_CLEANUP3_11]] ], [ [[ADD11_12:%.*]], %[[FOR_BODY4_12]] ]
; CHECK-NEXT: [[GEP_12:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_12]], i64 [[INDVARS_IV_12]]
; CHECK-NEXT: [[TMP35:%.*]] = load i8, ptr [[GEP_12]], align 1
; CHECK-NEXT: [[CONV_12:%.*]] = sext i8 [[TMP35]] to i32
; CHECK-NEXT: [[ARRAYIDX8_12:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_12]]
; CHECK-NEXT: [[TMP36:%.*]] = load i8, ptr [[ARRAYIDX8_12]], align 1
; CHECK-NEXT: [[CONV9_12:%.*]] = zext i8 [[TMP36]] to i32
; CHECK-NEXT: [[MUL10_12:%.*]] = mul nsw i32 [[CONV9_12]], [[CONV_12]]
; CHECK-NEXT: [[ADD11_12]] = add nsw i32 [[MUL10_12]], [[SUM_025_12]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_12]] = add nuw nsw i64 [[INDVARS_IV_12]], 1
; CHECK-NEXT: [[EXITCOND_NOT_12:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_12]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_12]], label %[[FOR_COND_CLEANUP3_12:.*]], label %[[FOR_BODY4_12]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_12]]:
; CHECK-NEXT: [[ADD11_LCSSA_12:%.*]] = phi i32 [ [[ADD11_12]], %[[FOR_BODY4_12]] ]
; CHECK-NEXT: [[ARRAYIDX13_12:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 12
; CHECK-NEXT: store i32 [[ADD11_LCSSA_12]], ptr [[ARRAYIDX13_12]], align 4
; CHECK-NEXT: [[ARRAYIDX_13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 13
; CHECK-NEXT: [[TMP37:%.*]] = load i32, ptr [[ARRAYIDX_13]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_13:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 13312
; CHECK-NEXT: br label %[[FOR_BODY4_13:.*]]
; CHECK: [[FOR_BODY4_13]]:
; CHECK-NEXT: [[INDVARS_IV_13:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_12]] ], [ [[INDVARS_IV_NEXT_13:%.*]], %[[FOR_BODY4_13]] ]
; CHECK-NEXT: [[SUM_025_13:%.*]] = phi i32 [ [[TMP37]], %[[FOR_COND_CLEANUP3_12]] ], [ [[ADD11_13:%.*]], %[[FOR_BODY4_13]] ]
; CHECK-NEXT: [[GEP_13:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_13]], i64 [[INDVARS_IV_13]]
; CHECK-NEXT: [[TMP38:%.*]] = load i8, ptr [[GEP_13]], align 1
; CHECK-NEXT: [[CONV_13:%.*]] = sext i8 [[TMP38]] to i32
; CHECK-NEXT: [[ARRAYIDX8_13:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_13]]
; CHECK-NEXT: [[TMP39:%.*]] = load i8, ptr [[ARRAYIDX8_13]], align 1
; CHECK-NEXT: [[CONV9_13:%.*]] = zext i8 [[TMP39]] to i32
; CHECK-NEXT: [[MUL10_13:%.*]] = mul nsw i32 [[CONV9_13]], [[CONV_13]]
; CHECK-NEXT: [[ADD11_13]] = add nsw i32 [[MUL10_13]], [[SUM_025_13]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_13]] = add nuw nsw i64 [[INDVARS_IV_13]], 1
; CHECK-NEXT: [[EXITCOND_NOT_13:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_13]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_13]], label %[[FOR_COND_CLEANUP3_13:.*]], label %[[FOR_BODY4_13]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_13]]:
; CHECK-NEXT: [[ADD11_LCSSA_13:%.*]] = phi i32 [ [[ADD11_13]], %[[FOR_BODY4_13]] ]
; CHECK-NEXT: [[ARRAYIDX13_13:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 13
; CHECK-NEXT: store i32 [[ADD11_LCSSA_13]], ptr [[ARRAYIDX13_13]], align 4
; CHECK-NEXT: [[ARRAYIDX_14:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 14
; CHECK-NEXT: [[TMP40:%.*]] = load i32, ptr [[ARRAYIDX_14]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_14:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 14336
; CHECK-NEXT: br label %[[FOR_BODY4_14:.*]]
; CHECK: [[FOR_BODY4_14]]:
; CHECK-NEXT: [[INDVARS_IV_14:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_13]] ], [ [[INDVARS_IV_NEXT_14:%.*]], %[[FOR_BODY4_14]] ]
; CHECK-NEXT: [[SUM_025_14:%.*]] = phi i32 [ [[TMP40]], %[[FOR_COND_CLEANUP3_13]] ], [ [[ADD11_14:%.*]], %[[FOR_BODY4_14]] ]
; CHECK-NEXT: [[GEP_14:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_14]], i64 [[INDVARS_IV_14]]
; CHECK-NEXT: [[TMP41:%.*]] = load i8, ptr [[GEP_14]], align 1
; CHECK-NEXT: [[CONV_14:%.*]] = sext i8 [[TMP41]] to i32
; CHECK-NEXT: [[ARRAYIDX8_14:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_14]]
; CHECK-NEXT: [[TMP42:%.*]] = load i8, ptr [[ARRAYIDX8_14]], align 1
; CHECK-NEXT: [[CONV9_14:%.*]] = zext i8 [[TMP42]] to i32
; CHECK-NEXT: [[MUL10_14:%.*]] = mul nsw i32 [[CONV9_14]], [[CONV_14]]
; CHECK-NEXT: [[ADD11_14]] = add nsw i32 [[MUL10_14]], [[SUM_025_14]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_14]] = add nuw nsw i64 [[INDVARS_IV_14]], 1
; CHECK-NEXT: [[EXITCOND_NOT_14:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_14]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_14]], label %[[FOR_COND_CLEANUP3_14:.*]], label %[[FOR_BODY4_14]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_14]]:
; CHECK-NEXT: [[ADD11_LCSSA_14:%.*]] = phi i32 [ [[ADD11_14]], %[[FOR_BODY4_14]] ]
; CHECK-NEXT: [[ARRAYIDX13_14:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 14
; CHECK-NEXT: store i32 [[ADD11_LCSSA_14]], ptr [[ARRAYIDX13_14]], align 4
; CHECK-NEXT: [[ARRAYIDX_15:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[BIAS]], i64 15
; CHECK-NEXT: [[TMP43:%.*]] = load i32, ptr [[ARRAYIDX_15]], align 4
; CHECK-NEXT: [[INVARIANT_GEP_15:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 15360
; CHECK-NEXT: br label %[[FOR_BODY4_15:.*]]
; CHECK: [[FOR_BODY4_15]]:
; CHECK-NEXT: [[INDVARS_IV_15:%.*]] = phi i64 [ 0, %[[FOR_COND_CLEANUP3_14]] ], [ [[INDVARS_IV_NEXT_15:%.*]], %[[FOR_BODY4_15]] ]
; CHECK-NEXT: [[SUM_025_15:%.*]] = phi i32 [ [[TMP43]], %[[FOR_COND_CLEANUP3_14]] ], [ [[ADD11_15:%.*]], %[[FOR_BODY4_15]] ]
; CHECK-NEXT: [[GEP_15:%.*]] = getelementptr inbounds i8, ptr [[INVARIANT_GEP_15]], i64 [[INDVARS_IV_15]]
; CHECK-NEXT: [[TMP44:%.*]] = load i8, ptr [[GEP_15]], align 1
; CHECK-NEXT: [[CONV_15:%.*]] = sext i8 [[TMP44]] to i32
; CHECK-NEXT: [[ARRAYIDX8_15:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV_15]]
; CHECK-NEXT: [[TMP45:%.*]] = load i8, ptr [[ARRAYIDX8_15]], align 1
; CHECK-NEXT: [[CONV9_15:%.*]] = zext i8 [[TMP45]] to i32
; CHECK-NEXT: [[MUL10_15:%.*]] = mul nsw i32 [[CONV9_15]], [[CONV_15]]
; CHECK-NEXT: [[ADD11_15]] = add nsw i32 [[MUL10_15]], [[SUM_025_15]]
; CHECK-NEXT: [[INDVARS_IV_NEXT_15]] = add nuw nsw i64 [[INDVARS_IV_15]], 1
; CHECK-NEXT: [[EXITCOND_NOT_15:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT_15]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT_15]], label %[[FOR_COND_CLEANUP3_15:.*]], label %[[FOR_BODY4_15]], !llvm.loop [[LOOP0]]
; CHECK: [[FOR_COND_CLEANUP3_15]]:
; CHECK-NEXT: [[ADD11_LCSSA_15:%.*]] = phi i32 [ [[ADD11_15]], %[[FOR_BODY4_15]] ]
; CHECK-NEXT: [[ARRAYIDX13_15:%.*]] = getelementptr inbounds nuw [4 x i8], ptr [[OUTPUT]], i64 15
; CHECK-NEXT: store i32 [[ADD11_LCSSA_15]], ptr [[ARRAYIDX13_15]], align 4
; CHECK-NEXT: ret void
; CHECK: [[FOR_BODY4]]:
; CHECK-NEXT: [[INDVARS_IV:%.*]] = phi i64 [ 0, %[[FOR_BODY]] ], [ [[INDVARS_IV_NEXT:%.*]], %[[FOR_BODY4]] ]
; CHECK-NEXT: [[SUM_025:%.*]] = phi i32 [ [[TMP0]], %[[FOR_BODY]] ], [ [[ADD11]], %[[FOR_BODY4]] ]
; CHECK-NEXT: [[GEP:%.*]] = getelementptr inbounds i8, ptr [[WEIGHTS]], i64 [[INDVARS_IV]]
; CHECK-NEXT: [[TMP46:%.*]] = load i8, ptr [[GEP]], align 1
; CHECK-NEXT: [[CONV:%.*]] = sext i8 [[TMP46]] to i32
; CHECK-NEXT: [[ARRAYIDX8:%.*]] = getelementptr inbounds nuw i8, ptr [[ACTIVATION]], i64 [[INDVARS_IV]]
; CHECK-NEXT: [[TMP47:%.*]] = load i8, ptr [[ARRAYIDX8]], align 1
; CHECK-NEXT: [[CONV9:%.*]] = zext i8 [[TMP47]] to i32
; CHECK-NEXT: [[MUL10:%.*]] = mul nsw i32 [[CONV9]], [[CONV]]
; CHECK-NEXT: [[ADD11]] = add nsw i32 [[MUL10]], [[SUM_025]]
; CHECK-NEXT: [[INDVARS_IV_NEXT]] = add nuw nsw i64 [[INDVARS_IV]], 1
; CHECK-NEXT: [[EXITCOND_NOT:%.*]] = icmp eq i64 [[INDVARS_IV_NEXT]], 1024
; CHECK-NEXT: br i1 [[EXITCOND_NOT]], label %[[FOR_COND_CLEANUP3]], label %[[FOR_BODY4]], !llvm.loop [[LOOP0]]
;
entry:
br label %for.body
for.body:
%indvars.iv29 = phi i64 [ 0, %entry ], [ %indvars.iv.next30, %for.cond.cleanup3 ]
%arrayidx = getelementptr inbounds nuw [4 x i8], ptr %bias, i64 %indvars.iv29
%0 = load i32, ptr %arrayidx, align 4
%1 = shl nuw nsw i64 %indvars.iv29, 10
%invariant.gep = getelementptr inbounds i8, ptr %weights, i64 %1
br label %for.body4
for.cond.cleanup3:
%arrayidx13 = getelementptr inbounds nuw [4 x i8], ptr %output, i64 %indvars.iv29
store i32 %add11, ptr %arrayidx13, align 4
%indvars.iv.next30 = add nuw nsw i64 %indvars.iv29, 1
%exitcond32.not = icmp eq i64 %indvars.iv.next30, 16
br i1 %exitcond32.not, label %for.cond.cleanup, label %for.body, !llvm.loop !0
for.body4:
%indvars.iv = phi i64 [ 0, %for.body ], [ %indvars.iv.next, %for.body4 ]
%sum.025 = phi i32 [ %0, %for.body ], [ %add11, %for.body4 ]
%gep = getelementptr inbounds i8, ptr %invariant.gep, i64 %indvars.iv
%2 = load i8, ptr %gep, align 1
%conv = sext i8 %2 to i32
%arrayidx8 = getelementptr inbounds nuw i8, ptr %activation, i64 %indvars.iv
%3 = load i8, ptr %arrayidx8, align 1
%conv9 = zext i8 %3 to i32
%mul10 = mul nsw i32 %conv9, %conv
%add11 = add nsw i32 %mul10, %sum.025
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond.not = icmp eq i64 %indvars.iv.next, 1024
br i1 %exitcond.not, label %for.cond.cleanup3, label %for.body4, !llvm.loop !2
for.cond.cleanup:
ret void
}
!0 = distinct !{!0, !1}
!1 = !{!"llvm.loop.unroll.full"}
!2 = distinct !{!2, !3}
!3 = !{!"llvm.loop.unroll.disable"}
;.
; RV64: [[LOOP0]] = distinct !{[[LOOP0]], [[META1:![0-9]+]]}
; RV64: [[META1]] = !{!"llvm.loop.unroll.disable"}
;.
; RV32: [[LOOP0]] = distinct !{[[LOOP0]], [[META1:![0-9]+]]}
; RV32: [[META1]] = !{!"llvm.loop.unroll.disable"}
;.
; DEFAULT64: [[LOOP0]] = distinct !{[[LOOP0]], [[META1:![0-9]+]]}
; DEFAULT64: [[META1]] = !{!"llvm.loop.unroll.disable"}
;.
; DEFAULT32: [[LOOP0]] = distinct !{[[LOOP0]], [[META1:![0-9]+]]}
; DEFAULT32: [[META1]] = !{!"llvm.loop.unroll.disable"}
;.