Skip to content

Commit 441a9c8

Browse files
committed
more dead increments clang4 scan-build deadcode.deadstores
1 parent 1236dbe commit 441a9c8

12 files changed

+75
-75
lines changed

kernel/generic/gemm_tcopy_8.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -719,10 +719,10 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, FLOAT *b){
719719

720720
if (m & 1){
721721
aoffset1 = aoffset;
722-
aoffset += lda;
722+
// aoffset += lda;
723723

724724
boffset1 = boffset;
725-
boffset += 8;
725+
// boffset += 8;
726726

727727
i = (n >> 3);
728728
if (i > 0){
@@ -762,7 +762,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, FLOAT *b){
762762
*(boffset2 + 1) = ctemp02;
763763
*(boffset2 + 2) = ctemp03;
764764
*(boffset2 + 3) = ctemp04;
765-
boffset2 += 4;
765+
// boffset2 += 4;
766766
}
767767

768768
if (n & 2){
@@ -772,7 +772,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, FLOAT *b){
772772

773773
*(boffset3 + 0) = ctemp01;
774774
*(boffset3 + 1) = ctemp02;
775-
boffset3 += 2;
775+
// boffset3 += 2;
776776
}
777777

778778
if (n & 1){

kernel/generic/trmm_lncopy_4.c

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -237,24 +237,24 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
237237
b[ 2] = data03;
238238
b[ 3] = data04;
239239

240-
ao1 += 1;
240+
/* ao1 += 1;
241241
ao2 += 1;
242242
ao3 += 1;
243-
ao4 += 1;
243+
ao4 += 1; */
244244
b += 4;
245245
}
246246

247247
} else
248248
if (X < posY) {
249249
if (m & 2) {
250-
ao1 += 2 * lda;
251-
ao2 += 2 * lda;
250+
/* ao1 += 2 * lda;
251+
ao2 += 2 * lda; */
252252

253253
b += 8;
254254
}
255255

256256
if (m & 1) {
257-
ao1 += lda;
257+
// ao1 += lda;
258258
b += 4;
259259
}
260260

@@ -414,12 +414,12 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
414414
b[ 0] = data01;
415415
b[ 1] = data02;
416416

417-
ao1 += 1;
418-
ao2 += 1;
417+
/* ao1 += 1;
418+
ao2 += 1; */
419419
b += 2;
420420
} else
421421
if (X < posY) {
422-
ao1 += lda;
422+
// ao1 += lda;
423423
b += 2;
424424
} else {
425425
#ifdef UNIT
@@ -477,7 +477,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
477477
} while (i > 0);
478478
}
479479

480-
posY += 1;
480+
// posY += 1;
481481
}
482482

483483
return 0;

kernel/generic/trmm_ltcopy_4.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -204,18 +204,18 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
204204
if (X > posY) {
205205

206206
if (m & 2) {
207-
ao1 += 2;
207+
/* ao1 += 2;
208208
ao2 += 2;
209209
ao3 += 2;
210-
ao4 += 2;
210+
ao4 += 2; */
211211
b += 8;
212212
}
213213

214214
if (m & 1) {
215-
ao1 += 1;
215+
/* ao1 += 1;
216216
ao2 += 1;
217217
ao3 += 1;
218-
ao4 += 1;
218+
ao4 += 1; */
219219
b += 4;
220220
}
221221

@@ -241,7 +241,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
241241
b[ 7] = data08;
242242

243243
ao1 += 2 * lda;
244-
ao2 += 2 * lda;
244+
// ao2 += 2 * lda;
245245

246246
b += 8;
247247
}
@@ -257,7 +257,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
257257
b[ 2] = data03;
258258
b[ 3] = data04;
259259

260-
ao1 += lda;
260+
// ao1 += lda;
261261
b += 4;
262262
}
263263

@@ -412,8 +412,8 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
412412
if (i) {
413413

414414
if (X > posY) {
415-
ao1 += 1;
416-
ao2 += 1;
415+
/* ao1 += 1;
416+
ao2 += 1; */
417417

418418
b += 2;
419419
} else
@@ -423,7 +423,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
423423

424424
b[ 0] = data01;
425425
b[ 1] = data02;
426-
ao1 += lda;
426+
// ao1 += lda;
427427
b += 2;
428428
} else {
429429
#ifdef UNIT
@@ -481,7 +481,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
481481
} while (i > 0);
482482
}
483483

484-
posY += 1;
484+
// posY += 1;
485485
}
486486

487487
return 0;

kernel/generic/trmm_uncopy_4.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -241,23 +241,23 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
241241
b[ 2] = data05;
242242
b[ 3] = data07;
243243

244-
ao1 += 1;
244+
/* ao1 += 1;
245245
ao2 += 1;
246246
ao3 += 1;
247-
ao4 += 1;
247+
ao4 += 1; */
248248
b += 4;
249249
}
250250

251251
} else
252252
if (X > posY) {
253253
if (m & 2) {
254-
ao1 += 2 * lda;
255-
ao2 += 2 * lda;
254+
/* ao1 += 2 * lda;
255+
ao2 += 2 * lda; */
256256
b += 8;
257257
}
258258

259259
if (m & 1) {
260-
ao1 += lda;
260+
// ao1 += lda;
261261
b += 4;
262262
}
263263

@@ -418,13 +418,13 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
418418

419419
b[ 0] = data01;
420420
b[ 1] = data05;
421-
ao1 += 1;
422-
ao2 += 1;
421+
/* ao1 += 1;
422+
ao2 += 1; */
423423
b += 2;
424424
} else
425425
if (X > posY) {
426-
ao1 += lda;
427-
ao2 += lda;
426+
/* ao1 += lda;
427+
ao2 += lda; */
428428
b += 2;
429429
} else {
430430
#ifdef UNIT
@@ -438,8 +438,8 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
438438
b[ 0] = data01;
439439
b[ 1] = data05;
440440
#endif
441-
ao1 += lda;
442-
ao2 += lda;
441+
/* ao1 += lda;
442+
ao2 += lda; */
443443
b += 2;
444444
}
445445
}

kernel/generic/trmm_utcopy_4.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,18 +201,18 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
201201
if (X < posY) {
202202

203203
if (m & 2) {
204-
ao1 += 2;
204+
/* ao1 += 2;
205205
ao2 += 2;
206206
ao3 += 2;
207-
ao4 += 2;
207+
ao4 += 2; */
208208
b += 8;
209209
}
210210

211211
if (m & 1) {
212-
ao1 += 1;
212+
/* ao1 += 1;
213213
ao2 += 1;
214214
ao3 += 1;
215-
ao4 += 1;
215+
ao4 += 1; */
216216
b += 4;
217217
}
218218

@@ -238,7 +238,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
238238
b[ 7] = data08;
239239

240240
ao1 += 2 * lda;
241-
ao2 += 2 * lda;
241+
// ao2 += 2 * lda;
242242
b += 8;
243243
}
244244

@@ -253,7 +253,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
253253
b[ 2] = data03;
254254
b[ 3] = data04;
255255

256-
ao1 += lda;
256+
// ao1 += lda;
257257
b += 4;
258258
}
259259

@@ -401,7 +401,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
401401
if (i) {
402402

403403
if (X < posY) {
404-
ao1 += 2;
404+
// ao1 += 2;
405405
b += 2;
406406
} else
407407
if (X > posY) {
@@ -411,7 +411,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
411411
b[ 0] = data01;
412412
b[ 1] = data02;
413413

414-
ao1 += lda;
414+
// ao1 += lda;
415415
b += 2;
416416
} else {
417417
#ifdef UNIT

kernel/generic/trsm_ltcopy_4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG offset, FLOAT
206206
}
207207

208208
a1 += 2 * lda;
209-
a2 += 2 * lda;
209+
// a2 += 2 * lda;
210210
b += 8;
211211

212212
ii += 2;

kernel/generic/trsm_utcopy_4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG offset, FLOAT
194194
}
195195

196196
a1 += 2 * lda;
197-
a2 += 2 * lda;
197+
// a2 += 2 * lda;
198198
b += 8;
199199

200200
ii += 2;

kernel/generic/zgemm_tcopy_8.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, FLOAT *b){
324324
if (n & 1){
325325
aoffset1 = aoffset;
326326
aoffset2 = aoffset + lda;
327-
aoffset += 2;
327+
// aoffset += 2;
328328

329329
i = (m >> 1);
330330
if (i > 0){
@@ -353,7 +353,7 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, FLOAT *b){
353353

354354
*(boffset + 0) = ctemp01;
355355
*(boffset + 1) = ctemp02;
356-
boffset += 2;
356+
// boffset += 2;
357357
}
358358
}
359359

kernel/generic/ztrmm_lncopy_8.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -350,14 +350,14 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
350350
}
351351
} else
352352
if (X < posY) {
353-
ao1 += i * lda;
353+
/* ao1 += i * lda;
354354
ao2 += i * lda;
355355
ao3 += i * lda;
356356
ao4 += i * lda;
357357
ao5 += i * lda;
358358
ao6 += i * lda;
359359
ao7 += i * lda;
360-
ao8 += i * lda;
360+
ao8 += i * lda; */
361361
b += 16 * i;
362362
} else {
363363
#ifdef UNIT
@@ -675,10 +675,10 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
675675
}
676676
} else
677677
if (X < posY) {
678-
ao1 += i * lda;
678+
/* ao1 += i * lda;
679679
ao2 += i * lda;
680680
ao3 += i * lda;
681-
ao4 += i * lda;
681+
ao4 += i * lda; */
682682
b += 8 * i;
683683
} else {
684684
#ifdef UNIT
@@ -804,13 +804,13 @@ int CNAME(BLASLONG m, BLASLONG n, FLOAT *a, BLASLONG lda, BLASLONG posX, BLASLON
804804
b[ 1] = *(ao1 + 1);
805805
b[ 2] = *(ao2 + 0);
806806
b[ 3] = *(ao2 + 1);
807-
ao1 += 2;
808-
ao2 += 2;
807+
/* ao1 += 2;
808+
ao2 += 2; */
809809
b += 4;
810810
} else
811811
if (X < posY) {
812-
ao1 += 2 * lda;
813-
ao2 += 2 * lda;
812+
/* ao1 += 2 * lda;
813+
ao2 += 2 * lda; */
814814
b += 4;
815815
} else {
816816
#ifdef UNIT

0 commit comments

Comments
 (0)