This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/9723] With -Os optimization increases size if the loop contains array element access
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2006 02:43:47 -0000
- Subject: [Bug rtl-optimization/9723] With -Os optimization increases size if the loop contains array element access
- References: <bug-9723-5434@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-03-01 02:43 -------
+1 one more instruction on PPC:
_f1:
addi r0,r4,-1
cmpwi cr7,r0,-1
mulli r0,r4,20
addi r4,r4,1
add r3,r3,r0
mtctr r4
addi r3,r3,-20
bge+ cr7,L2
li r0,1
mtctr r0
b L2
L3:
lwz r0,0(r3)
addi r3,r3,-20
cmpw cr7,r0,r5
bne+ cr7,L2
li r3,1
blr
L2:
bdnz L3
li r3,0
blr
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2005-12-07 03:39:07 |2006-03-01 02:43:47
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9723