[Bug tree-optimization/18431] Code for arrays and pointers are not the same

pthaugen at us dot ibm dot com gcc-bugzilla@gcc.gnu.org
Thu Jun 2 18:46:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list