[Bug middle-end/30908] -Os inlines functions that are called more than once (optimization regression)

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Feb 21 19:38:00 GMT 2007



------- Comment #14 from pinskia at gcc dot gnu dot org  2007-02-21 19:37 -------
The AVR back-end really needs improvement:
        ldi r18,lo8(1)
        ldi r19,hi8(1)
.L3:
        std Y+2,r19
        std Y+1,r18
        ldi r24,lo8(99)
        ldi r25,hi8(99)

here r25 and r19 are the same, 0.

Other than that, we need to estatimate the cost of adding/subtracting/comparing
of integers > WORD_SIZE better.


-- 


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



More information about the Gcc-bugs mailing list