The last multiply Strength reduction
at line 0320, r14 sum of r8 , r1, , r8 , r1 being incremented in loop. register r8 being bumped r2 (=n) , r1 being bumped 1. consequently, r14 being bumped n+1 each time through loop. last loop multiply @ 0330 can strength reduced adding (r2+1)*8 each time through loop.
there s still more go. constant folding recognize r1=0 in preamble, several instructions clean up. register r8 isn t used in loop, can disappear.
furthermore, r1 being used control loop, r1 can replaced different induction variable such r40. went 0 <= < n, register r40 goes 0 <= r40 < 8 * n * n.
Comments
Post a Comment