This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/9723] [ARM] With -Os optimization increases size if the loop contains array element access


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9723


pinskia@physics.uc.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2003-06-02 01:17:41
               date|                            |


------- Additional Comments From pinskia@physics.uc.edu  2003-06-02 01:17 -------
Same is also true on PPC on the mainline (20030529):
[omni:~/src/gccPRs] pinskia% gcc -O1 -S -o - pr9723.c
.text
        .align 2
        .globl _f1
_f1:
        mr r2,r3
L9:
        addic. r4,r4,-1
        blt- cr0,L8
        mulli r0,r4,20
        lwzx r0,r2,r0
        li r3,1
        cmpw cr7,r0,r5
        beqlr- cr7
        b L9
L8:
        li r3,0
        blr
[omni:~/src/gccPRs] pinskia% gcc -Os -S -o - pr9723.c
.text
        .align 2
        .globl _f1
_f1:
        addic. r0,r4,-1
        mr r2,r3
        blt- cr0,L8
        mulli r0,r0,20
        add r4,r0,r3
L6:
        lwz r0,0(r4)
        addi r4,r4,-20
        cmpw cr6,r4,r2
        li r3,1
        cmpw cr7,r0,r5
        beqlr- cr7
        bge+ cr6,L6
L8:
        li r3,0
        blr



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]