This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/40730] redundant memory load
- From: "steven at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Jan 2010 09:34:19 -0000
- Subject: [Bug target/40730] redundant memory load
- References: <bug-40730-17659@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from steven at gcc dot gnu dot org 2010-01-08 09:34 -------
With "GCC: (GNU) 4.5.0 20100108 (experimental) [trunk revision 155731]" and my
patch for bug 20070 applied, I get the following code:
iterate:
push {lr}
ldr r3, [r1]
.L6:
str r3, [r0]
sub r2, r3, #0
bne .L5
b .L3
.L4:
ldr r3, [r3, #8]
b .L6
.L5:
ldr r1, [r3, #4]
cmp r1, #0
beq .L4
.L3:
str r2, [r0, #12]
@ sp needed for prologue
pop {pc}
Carrot, could you please double-check that this is still correct code?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40730