This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/18431] Code for arrays and pointers are not the same
- From: "pthaugen at us dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2005 18:46:47 -0000
- Subject: [Bug tree-optimization/18431] Code for arrays and pointers are not the same
- References: <20041111180852.18431.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pthaugen at us dot ibm dot com 2005-06-02 18:46 -------
Does this need to be reopened? I see the following for mainline.
-m32:
.L4:
slwi %r9,%r11,1 #, tmp130, i
addi %r11,%r11,1 # i, i,
sthx %r0,%r9,%r10 #* q.1, tmp132
bdnz .L4 #
-m64:
.L4:
sthx %r0,%r11,%r10 #* ivtmp.11, tmp132
addi %r10,%r10,2 # ivtmp.11, ivtmp.11,
bdnz .L4 #
Both can be improved to use a non-indexed store and increment of that base reg,
similar to what Zdenek said he saw in comment #9.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18431