------- Comment #6 from eplondke at gmail dot com 2006-10-06 19:07 ------- Changing the cost of (REG) to 1 fixes 4.1 but not 4.2, it seems.
In 4.2, the RTL optimization does not combine
ldr r2, [r1, #0]
ldr r3, [r0, #0]
add r0, r0, #4
add r1, r1, #4
into
ldr r2, [r1], #4
ldr r3, [r0], #4
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29294
