1; NOTE: Assertions have been autogenerated by utils/update_test_checks.py 2; RUN: opt -mtriple=armv8.1m.main -mattr=+mve -S -mve-tail-predication -tail-predication=enabled %s -o - | FileCheck %s 3 4define void @mat_vec_sext_i16(i16** nocapture readonly %A, i16* nocapture readonly %B, i32* noalias nocapture %C, i32 %N) { 5; CHECK-LABEL: @mat_vec_sext_i16( 6; CHECK-NEXT: entry: 7; CHECK-NEXT: [[CMP24:%.*]] = icmp eq i32 [[N:%.*]], 0 8; CHECK-NEXT: br i1 [[CMP24]], label [[FOR_COND_CLEANUP:%.*]], label [[FOR_COND1_PREHEADER_US_PREHEADER:%.*]] 9; CHECK: for.cond1.preheader.us.preheader: 10; CHECK-NEXT: [[N_RND_UP:%.*]] = add i32 [[N]], 3 11; CHECK-NEXT: [[N_VEC:%.*]] = and i32 [[N_RND_UP]], -4 12; CHECK-NEXT: [[TRIP_COUNT_MINUS_1:%.*]] = add i32 [[N]], -1 13; CHECK-NEXT: [[BROADCAST_SPLATINSERT28:%.*]] = insertelement <4 x i32> undef, i32 [[TRIP_COUNT_MINUS_1]], i32 0 14; CHECK-NEXT: [[BROADCAST_SPLAT29:%.*]] = shufflevector <4 x i32> [[BROADCAST_SPLATINSERT28]], <4 x i32> undef, <4 x i32> zeroinitializer 15; CHECK-NEXT: [[TMP:%.*]] = add i32 [[N_VEC]], -4 16; CHECK-NEXT: [[TMP1:%.*]] = lshr i32 [[TMP]], 2 17; CHECK-NEXT: [[TMP2:%.*]] = add nuw nsw i32 [[TMP1]], 1 18; CHECK-NEXT: br label [[FOR_COND1_PREHEADER_US:%.*]] 19; CHECK: for.cond1.preheader.us: 20; CHECK-NEXT: [[I_025_US:%.*]] = phi i32 [ [[INC10_US:%.*]], [[MIDDLE_BLOCK:%.*]] ], [ 0, [[FOR_COND1_PREHEADER_US_PREHEADER]] ] 21; CHECK-NEXT: [[ARRAYIDX_US:%.*]] = getelementptr inbounds i16*, i16** [[A:%.*]], i32 [[I_025_US]] 22; CHECK-NEXT: [[TMP3:%.*]] = load i16*, i16** [[ARRAYIDX_US]], align 4 23; CHECK-NEXT: [[ARRAYIDX8_US:%.*]] = getelementptr inbounds i32, i32* [[C:%.*]], i32 [[I_025_US]] 24; CHECK-NEXT: [[ARRAYIDX8_PROMOTED_US:%.*]] = load i32, i32* [[ARRAYIDX8_US]], align 4 25; CHECK-NEXT: [[TMP4:%.*]] = insertelement <4 x i32> <i32 undef, i32 0, i32 0, i32 0>, i32 [[ARRAYIDX8_PROMOTED_US]], i32 0 26; CHECK-NEXT: call void @llvm.set.loop.iterations.i32(i32 [[TMP2]]) 27; CHECK-NEXT: [[NUM_ELEMENTS:%.*]] = add i32 [[TRIP_COUNT_MINUS_1]], 1 28; CHECK-NEXT: br label [[VECTOR_BODY:%.*]] 29; CHECK: vector.body: 30; CHECK-NEXT: [[INDEX:%.*]] = phi i32 [ 0, [[FOR_COND1_PREHEADER_US]] ], [ [[INDEX_NEXT:%.*]], [[VECTOR_BODY]] ] 31; CHECK-NEXT: [[VEC_PHI:%.*]] = phi <4 x i32> [ [[TMP4]], [[FOR_COND1_PREHEADER_US]] ], [ [[TMP14:%.*]], [[VECTOR_BODY]] ] 32; CHECK-NEXT: [[TMP5:%.*]] = phi i32 [ [[TMP2]], [[FOR_COND1_PREHEADER_US]] ], [ [[TMP15:%.*]], [[VECTOR_BODY]] ] 33; CHECK-NEXT: [[TMP0:%.*]] = phi i32 [ [[NUM_ELEMENTS]], [[FOR_COND1_PREHEADER_US]] ], [ [[TMP2:%.*]], [[VECTOR_BODY]] ] 34; CHECK-NEXT: [[BROADCAST_SPLATINSERT:%.*]] = insertelement <4 x i32> undef, i32 [[INDEX]], i32 0 35; CHECK-NEXT: [[BROADCAST_SPLAT:%.*]] = shufflevector <4 x i32> [[BROADCAST_SPLATINSERT]], <4 x i32> undef, <4 x i32> zeroinitializer 36; CHECK-NEXT: [[INDUCTION:%.*]] = add <4 x i32> [[BROADCAST_SPLAT]], <i32 0, i32 1, i32 2, i32 3> 37; CHECK-NEXT: [[TMP6:%.*]] = getelementptr inbounds i16, i16* [[TMP3]], i32 [[INDEX]] 38; CHECK-NEXT: [[TMP1:%.*]] = call <4 x i1> @llvm.arm.mve.vctp32(i32 [[TMP0]]) 39; CHECK-NEXT: [[TMP2]] = sub i32 [[TMP0]], 4 40; CHECK-NEXT: [[TMP8:%.*]] = bitcast i16* [[TMP6]] to <4 x i16>* 41; CHECK-NEXT: [[WIDE_MASKED_LOAD:%.*]] = call <4 x i16> @llvm.masked.load.v4i16.p0v4i16(<4 x i16>* [[TMP8]], i32 2, <4 x i1> [[TMP1]], <4 x i16> undef) 42; CHECK-NEXT: [[TMP9:%.*]] = sext <4 x i16> [[WIDE_MASKED_LOAD]] to <4 x i32> 43; CHECK-NEXT: [[TMP10:%.*]] = getelementptr inbounds i16, i16* [[B:%.*]], i32 [[INDEX]] 44; CHECK-NEXT: [[TMP11:%.*]] = bitcast i16* [[TMP10]] to <4 x i16>* 45; CHECK-NEXT: [[WIDE_MASKED_LOAD30:%.*]] = call <4 x i16> @llvm.masked.load.v4i16.p0v4i16(<4 x i16>* [[TMP11]], i32 2, <4 x i1> [[TMP1]], <4 x i16> undef) 46; CHECK-NEXT: [[TMP12:%.*]] = sext <4 x i16> [[WIDE_MASKED_LOAD30]] to <4 x i32> 47; CHECK-NEXT: [[TMP13:%.*]] = mul nsw <4 x i32> [[TMP12]], [[TMP9]] 48; CHECK-NEXT: [[TMP14]] = add nsw <4 x i32> [[TMP13]], [[VEC_PHI]] 49; CHECK-NEXT: [[INDEX_NEXT]] = add i32 [[INDEX]], 4 50; CHECK-NEXT: [[TMP15]] = call i32 @llvm.loop.decrement.reg.i32(i32 [[TMP5]], i32 1) 51; CHECK-NEXT: [[TMP16:%.*]] = icmp ne i32 [[TMP15]], 0 52; CHECK-NEXT: br i1 [[TMP16]], label [[VECTOR_BODY]], label [[MIDDLE_BLOCK]] 53; CHECK: middle.block: 54; CHECK-NEXT: [[TMP17:%.*]] = select <4 x i1> [[TMP1]], <4 x i32> [[TMP14]], <4 x i32> [[VEC_PHI]] 55; CHECK-NEXT: [[TMP18:%.*]] = call i32 @llvm.experimental.vector.reduce.add.v4i32(<4 x i32> [[TMP17]]) 56; CHECK-NEXT: store i32 [[TMP18]], i32* [[ARRAYIDX8_US]], align 4 57; CHECK-NEXT: [[INC10_US]] = add nuw i32 [[I_025_US]], 1 58; CHECK-NEXT: [[EXITCOND27:%.*]] = icmp eq i32 [[INC10_US]], [[N]] 59; CHECK-NEXT: br i1 [[EXITCOND27]], label [[FOR_COND_CLEANUP]], label [[FOR_COND1_PREHEADER_US]] 60; CHECK: for.cond.cleanup: 61; CHECK-NEXT: ret void 62; 63entry: 64 %cmp24 = icmp eq i32 %N, 0 65 br i1 %cmp24, label %for.cond.cleanup, label %for.cond1.preheader.us.preheader 66 67for.cond1.preheader.us.preheader: ; preds = %entry 68 %n.rnd.up = add i32 %N, 3 69 %n.vec = and i32 %n.rnd.up, -4 70 %trip.count.minus.1 = add i32 %N, -1 71 %broadcast.splatinsert28 = insertelement <4 x i32> undef, i32 %trip.count.minus.1, i32 0 72 %broadcast.splat29 = shufflevector <4 x i32> %broadcast.splatinsert28, <4 x i32> undef, <4 x i32> zeroinitializer 73 %tmp = add i32 %n.vec, -4 74 %tmp1 = lshr i32 %tmp, 2 75 %tmp2 = add nuw nsw i32 %tmp1, 1 76 br label %for.cond1.preheader.us 77 78for.cond1.preheader.us: ; preds = %middle.block, %for.cond1.preheader.us.preheader 79 %i.025.us = phi i32 [ %inc10.us, %middle.block ], [ 0, %for.cond1.preheader.us.preheader ] 80 %arrayidx.us = getelementptr inbounds i16*, i16** %A, i32 %i.025.us 81 %tmp3 = load i16*, i16** %arrayidx.us, align 4 82 %arrayidx8.us = getelementptr inbounds i32, i32* %C, i32 %i.025.us 83 %arrayidx8.promoted.us = load i32, i32* %arrayidx8.us, align 4 84 %tmp4 = insertelement <4 x i32> <i32 undef, i32 0, i32 0, i32 0>, i32 %arrayidx8.promoted.us, i32 0 85 call void @llvm.set.loop.iterations.i32(i32 %tmp2) 86 br label %vector.body 87 88vector.body: ; preds = %vector.body, %for.cond1.preheader.us 89 %index = phi i32 [ 0, %for.cond1.preheader.us ], [ %index.next, %vector.body ] 90 %vec.phi = phi <4 x i32> [ %tmp4, %for.cond1.preheader.us ], [ %tmp14, %vector.body ] 91 %tmp5 = phi i32 [ %tmp2, %for.cond1.preheader.us ], [ %tmp15, %vector.body ] 92 %broadcast.splatinsert = insertelement <4 x i32> undef, i32 %index, i32 0 93 %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> undef, <4 x i32> zeroinitializer 94 %induction = add <4 x i32> %broadcast.splat, <i32 0, i32 1, i32 2, i32 3> 95 %tmp6 = getelementptr inbounds i16, i16* %tmp3, i32 %index 96 97 ; %tmp7 = icmp ule <4 x i32> %induction, %broadcast.splat29 98 %tmp7 = call <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32 %index, i32 %trip.count.minus.1) 99 100 %tmp8 = bitcast i16* %tmp6 to <4 x i16>* 101 %wide.masked.load = call <4 x i16> @llvm.masked.load.v4i16.p0v4i16(<4 x i16>* %tmp8, i32 2, <4 x i1> %tmp7, <4 x i16> undef) 102 %tmp9 = sext <4 x i16> %wide.masked.load to <4 x i32> 103 %tmp10 = getelementptr inbounds i16, i16* %B, i32 %index 104 %tmp11 = bitcast i16* %tmp10 to <4 x i16>* 105 %wide.masked.load30 = call <4 x i16> @llvm.masked.load.v4i16.p0v4i16(<4 x i16>* %tmp11, i32 2, <4 x i1> %tmp7, <4 x i16> undef) 106 %tmp12 = sext <4 x i16> %wide.masked.load30 to <4 x i32> 107 %tmp13 = mul nsw <4 x i32> %tmp12, %tmp9 108 %tmp14 = add nsw <4 x i32> %tmp13, %vec.phi 109 %index.next = add i32 %index, 4 110 %tmp15 = call i32 @llvm.loop.decrement.reg.i32(i32 %tmp5, i32 1) 111 %tmp16 = icmp ne i32 %tmp15, 0 112 br i1 %tmp16, label %vector.body, label %middle.block 113 114middle.block: ; preds = %vector.body 115 %tmp17 = select <4 x i1> %tmp7, <4 x i32> %tmp14, <4 x i32> %vec.phi 116 %tmp18 = call i32 @llvm.experimental.vector.reduce.add.v4i32(<4 x i32> %tmp17) 117 store i32 %tmp18, i32* %arrayidx8.us, align 4 118 %inc10.us = add nuw i32 %i.025.us, 1 119 %exitcond27 = icmp eq i32 %inc10.us, %N 120 br i1 %exitcond27, label %for.cond.cleanup, label %for.cond1.preheader.us 121 122for.cond.cleanup: ; preds = %middle.block, %entry 123 ret void 124} 125 126define void @mat_vec_i32(i32** nocapture readonly %A, i32* nocapture readonly %B, i32* noalias nocapture %C, i32 %N) { 127; CHECK-LABEL: @mat_vec_i32( 128; CHECK-NEXT: entry: 129; CHECK-NEXT: [[CMP23:%.*]] = icmp eq i32 [[N:%.*]], 0 130; CHECK-NEXT: br i1 [[CMP23]], label [[FOR_COND_CLEANUP:%.*]], label [[FOR_COND1_PREHEADER_US_PREHEADER:%.*]] 131; CHECK: for.cond1.preheader.us.preheader: 132; CHECK-NEXT: [[N_RND_UP:%.*]] = add i32 [[N]], 3 133; CHECK-NEXT: [[N_VEC:%.*]] = and i32 [[N_RND_UP]], -4 134; CHECK-NEXT: [[TRIP_COUNT_MINUS_1:%.*]] = add i32 [[N]], -1 135; CHECK-NEXT: [[BROADCAST_SPLATINSERT27:%.*]] = insertelement <4 x i32> undef, i32 [[TRIP_COUNT_MINUS_1]], i32 0 136; CHECK-NEXT: [[BROADCAST_SPLAT28:%.*]] = shufflevector <4 x i32> [[BROADCAST_SPLATINSERT27]], <4 x i32> undef, <4 x i32> zeroinitializer 137; CHECK-NEXT: [[TMP:%.*]] = add i32 [[N_VEC]], -4 138; CHECK-NEXT: [[TMP1:%.*]] = lshr i32 [[TMP]], 2 139; CHECK-NEXT: [[TMP2:%.*]] = add nuw nsw i32 [[TMP1]], 1 140; CHECK-NEXT: br label [[FOR_COND1_PREHEADER_US:%.*]] 141; CHECK: for.cond1.preheader.us: 142; CHECK-NEXT: [[I_024_US:%.*]] = phi i32 [ [[INC9_US:%.*]], [[MIDDLE_BLOCK:%.*]] ], [ 0, [[FOR_COND1_PREHEADER_US_PREHEADER]] ] 143; CHECK-NEXT: [[ARRAYIDX_US:%.*]] = getelementptr inbounds i32*, i32** [[A:%.*]], i32 [[I_024_US]] 144; CHECK-NEXT: [[TMP3:%.*]] = load i32*, i32** [[ARRAYIDX_US]], align 4 145; CHECK-NEXT: [[ARRAYIDX7_US:%.*]] = getelementptr inbounds i32, i32* [[C:%.*]], i32 [[I_024_US]] 146; CHECK-NEXT: [[ARRAYIDX7_PROMOTED_US:%.*]] = load i32, i32* [[ARRAYIDX7_US]], align 4 147; CHECK-NEXT: [[TMP4:%.*]] = insertelement <4 x i32> <i32 undef, i32 0, i32 0, i32 0>, i32 [[ARRAYIDX7_PROMOTED_US]], i32 0 148; CHECK-NEXT: call void @llvm.set.loop.iterations.i32(i32 [[TMP2]]) 149; CHECK-NEXT: [[NUM_ELEMENTS:%.*]] = add i32 [[TRIP_COUNT_MINUS_1]], 1 150; CHECK-NEXT: br label [[VECTOR_BODY:%.*]] 151; CHECK: vector.body: 152; CHECK-NEXT: [[INDEX:%.*]] = phi i32 [ 0, [[FOR_COND1_PREHEADER_US]] ], [ [[INDEX_NEXT:%.*]], [[VECTOR_BODY]] ] 153; CHECK-NEXT: [[VEC_PHI:%.*]] = phi <4 x i32> [ [[TMP4]], [[FOR_COND1_PREHEADER_US]] ], [ [[TMP12:%.*]], [[VECTOR_BODY]] ] 154; CHECK-NEXT: [[TMP5:%.*]] = phi i32 [ [[TMP2]], [[FOR_COND1_PREHEADER_US]] ], [ [[TMP13:%.*]], [[VECTOR_BODY]] ] 155; CHECK-NEXT: [[TMP0:%.*]] = phi i32 [ [[NUM_ELEMENTS]], [[FOR_COND1_PREHEADER_US]] ], [ [[TMP2:%.*]], [[VECTOR_BODY]] ] 156; CHECK-NEXT: [[BROADCAST_SPLATINSERT:%.*]] = insertelement <4 x i32> undef, i32 [[INDEX]], i32 0 157; CHECK-NEXT: [[BROADCAST_SPLAT:%.*]] = shufflevector <4 x i32> [[BROADCAST_SPLATINSERT]], <4 x i32> undef, <4 x i32> zeroinitializer 158; CHECK-NEXT: [[INDUCTION:%.*]] = add <4 x i32> [[BROADCAST_SPLAT]], <i32 0, i32 1, i32 2, i32 3> 159; CHECK-NEXT: [[TMP6:%.*]] = getelementptr inbounds i32, i32* [[TMP3]], i32 [[INDEX]] 160; CHECK-NEXT: [[TMP1:%.*]] = call <4 x i1> @llvm.arm.mve.vctp32(i32 [[TMP0]]) 161; CHECK-NEXT: [[TMP2]] = sub i32 [[TMP0]], 4 162; CHECK-NEXT: [[TMP8:%.*]] = bitcast i32* [[TMP6]] to <4 x i32>* 163; CHECK-NEXT: [[WIDE_MASKED_LOAD:%.*]] = call <4 x i32> @llvm.masked.load.v4i32.p0v4i32(<4 x i32>* [[TMP8]], i32 4, <4 x i1> [[TMP1]], <4 x i32> undef) 164; CHECK-NEXT: [[TMP9:%.*]] = getelementptr inbounds i32, i32* [[B:%.*]], i32 [[INDEX]] 165; CHECK-NEXT: [[TMP10:%.*]] = bitcast i32* [[TMP9]] to <4 x i32>* 166; CHECK-NEXT: [[WIDE_MASKED_LOAD29:%.*]] = call <4 x i32> @llvm.masked.load.v4i32.p0v4i32(<4 x i32>* [[TMP10]], i32 4, <4 x i1> [[TMP1]], <4 x i32> undef) 167; CHECK-NEXT: [[TMP11:%.*]] = mul nsw <4 x i32> [[WIDE_MASKED_LOAD29]], [[WIDE_MASKED_LOAD]] 168; CHECK-NEXT: [[TMP12]] = add nsw <4 x i32> [[VEC_PHI]], [[TMP11]] 169; CHECK-NEXT: [[INDEX_NEXT]] = add i32 [[INDEX]], 4 170; CHECK-NEXT: [[TMP13]] = call i32 @llvm.loop.decrement.reg.i32(i32 [[TMP5]], i32 1) 171; CHECK-NEXT: [[TMP14:%.*]] = icmp ne i32 [[TMP13]], 0 172; CHECK-NEXT: br i1 [[TMP14]], label [[VECTOR_BODY]], label [[MIDDLE_BLOCK]] 173; CHECK: middle.block: 174; CHECK-NEXT: [[TMP15:%.*]] = select <4 x i1> [[TMP1]], <4 x i32> [[TMP12]], <4 x i32> [[VEC_PHI]] 175; CHECK-NEXT: [[TMP16:%.*]] = call i32 @llvm.experimental.vector.reduce.add.v4i32(<4 x i32> [[TMP15]]) 176; CHECK-NEXT: store i32 [[TMP16]], i32* [[ARRAYIDX7_US]], align 4 177; CHECK-NEXT: [[INC9_US]] = add nuw i32 [[I_024_US]], 1 178; CHECK-NEXT: [[EXITCOND26:%.*]] = icmp eq i32 [[INC9_US]], [[N]] 179; CHECK-NEXT: br i1 [[EXITCOND26]], label [[FOR_COND_CLEANUP]], label [[FOR_COND1_PREHEADER_US]] 180; CHECK: for.cond.cleanup: 181; CHECK-NEXT: ret void 182; 183entry: 184 %cmp23 = icmp eq i32 %N, 0 185 br i1 %cmp23, label %for.cond.cleanup, label %for.cond1.preheader.us.preheader 186 187for.cond1.preheader.us.preheader: ; preds = %entry 188 %n.rnd.up = add i32 %N, 3 189 %n.vec = and i32 %n.rnd.up, -4 190 %trip.count.minus.1 = add i32 %N, -1 191 %broadcast.splatinsert27 = insertelement <4 x i32> undef, i32 %trip.count.minus.1, i32 0 192 %broadcast.splat28 = shufflevector <4 x i32> %broadcast.splatinsert27, <4 x i32> undef, <4 x i32> zeroinitializer 193 %tmp = add i32 %n.vec, -4 194 %tmp1 = lshr i32 %tmp, 2 195 %tmp2 = add nuw nsw i32 %tmp1, 1 196 br label %for.cond1.preheader.us 197 198for.cond1.preheader.us: ; preds = %middle.block, %for.cond1.preheader.us.preheader 199 %i.024.us = phi i32 [ %inc9.us, %middle.block ], [ 0, %for.cond1.preheader.us.preheader ] 200 %arrayidx.us = getelementptr inbounds i32*, i32** %A, i32 %i.024.us 201 %tmp3 = load i32*, i32** %arrayidx.us, align 4 202 %arrayidx7.us = getelementptr inbounds i32, i32* %C, i32 %i.024.us 203 %arrayidx7.promoted.us = load i32, i32* %arrayidx7.us, align 4 204 %tmp4 = insertelement <4 x i32> <i32 undef, i32 0, i32 0, i32 0>, i32 %arrayidx7.promoted.us, i32 0 205 call void @llvm.set.loop.iterations.i32(i32 %tmp2) 206 br label %vector.body 207 208vector.body: ; preds = %vector.body, %for.cond1.preheader.us 209 %index = phi i32 [ 0, %for.cond1.preheader.us ], [ %index.next, %vector.body ] 210 %vec.phi = phi <4 x i32> [ %tmp4, %for.cond1.preheader.us ], [ %tmp12, %vector.body ] 211 %tmp5 = phi i32 [ %tmp2, %for.cond1.preheader.us ], [ %tmp13, %vector.body ] 212 %broadcast.splatinsert = insertelement <4 x i32> undef, i32 %index, i32 0 213 %broadcast.splat = shufflevector <4 x i32> %broadcast.splatinsert, <4 x i32> undef, <4 x i32> zeroinitializer 214 %induction = add <4 x i32> %broadcast.splat, <i32 0, i32 1, i32 2, i32 3> 215 %tmp6 = getelementptr inbounds i32, i32* %tmp3, i32 %index 216 217 ; %tmp7 = icmp ule <4 x i32> %induction, %broadcast.splat28 218 %tmp7 = call <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32 %index, i32 %trip.count.minus.1) 219 220 %tmp8 = bitcast i32* %tmp6 to <4 x i32>* 221 %wide.masked.load = call <4 x i32> @llvm.masked.load.v4i32.p0v4i32(<4 x i32>* %tmp8, i32 4, <4 x i1> %tmp7, <4 x i32> undef) 222 %tmp9 = getelementptr inbounds i32, i32* %B, i32 %index 223 %tmp10 = bitcast i32* %tmp9 to <4 x i32>* 224 %wide.masked.load29 = call <4 x i32> @llvm.masked.load.v4i32.p0v4i32(<4 x i32>* %tmp10, i32 4, <4 x i1> %tmp7, <4 x i32> undef) 225 %tmp11 = mul nsw <4 x i32> %wide.masked.load29, %wide.masked.load 226 %tmp12 = add nsw <4 x i32> %vec.phi, %tmp11 227 %index.next = add i32 %index, 4 228 %tmp13 = call i32 @llvm.loop.decrement.reg.i32(i32 %tmp5, i32 1) 229 %tmp14 = icmp ne i32 %tmp13, 0 230 br i1 %tmp14, label %vector.body, label %middle.block 231 232middle.block: ; preds = %vector.body 233 %tmp15 = select <4 x i1> %tmp7, <4 x i32> %tmp12, <4 x i32> %vec.phi 234 %tmp16 = call i32 @llvm.experimental.vector.reduce.add.v4i32(<4 x i32> %tmp15) 235 store i32 %tmp16, i32* %arrayidx7.us, align 4 236 %inc9.us = add nuw i32 %i.024.us, 1 237 %exitcond26 = icmp eq i32 %inc9.us, %N 238 br i1 %exitcond26, label %for.cond.cleanup, label %for.cond1.preheader.us 239 240for.cond.cleanup: ; preds = %middle.block, %entry 241 ret void 242} 243 244 245; Function Attrs: argmemonly nounwind readonly willreturn 246declare <4 x i32> @llvm.masked.load.v4i32.p0v4i32(<4 x i32>*, i32 immarg, <4 x i1>, <4 x i32>) #0 247 248; Function Attrs: argmemonly nounwind readonly willreturn 249declare <4 x i16> @llvm.masked.load.v4i16.p0v4i16(<4 x i16>*, i32 immarg, <4 x i1>, <4 x i16>) #0 250 251; Function Attrs: nounwind readnone willreturn 252declare i32 @llvm.experimental.vector.reduce.add.v4i32(<4 x i32>) #1 253 254; Function Attrs: noduplicate nounwind 255declare void @llvm.set.loop.iterations.i32(i32) #2 256 257; Function Attrs: noduplicate nounwind 258declare i32 @llvm.loop.decrement.reg.i32(i32, i32) #2 259 260declare <4 x i1> @llvm.get.active.lane.mask.v4i1.i32(i32, i32) 261 262attributes #0 = { argmemonly nounwind readonly willreturn } 263attributes #1 = { nounwind readnone willreturn } 264attributes #2 = { noduplicate nounwind } 265