I have some codes to sum array 50 times. Now I'm asked to reduce this code by at least 1 instructions. All I could think of was to increase this loop to 100 times and then add one element per loop. But this would increase the instruction counts a lot.
addi $t1, $0, 50
LOOP: lw $s1, 0($s0)
add $s2, $s2, $s1
lw $s1, 4($s0)
add $s2, $s2, $s1
addi $s0, $s0, 8
subi $t1, $t1, 1
bne $t1, $0, LOOP
Note that you can only rewrite this code, not write another sumArray algorithm