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: 23 Jan 2005 15:22:50 -0000
- Subject: [Bug rtl-optimization/9723] With -Os optimization increases size if the loop contains array element access
- References: <20030217152600.9723.gertom@rgai.hu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-23 15:22 -------
(In reply to comment #2)
-Os is even worse on the mainline now:
_f1:
addi r0,r4,-1
addi r4,r4,1
cmpwi cr7,r0,-1
mulli r0,r0,20
mtctr r4
add r3,r3,r0
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
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Last reconfirmed|2004-02-04 08:37:45 |2005-01-23 15:22:49
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9723