https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51506

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|tree-optimization           |ipa
            Summary|Function cloning misses     |Function cloning misses
                   |constant struct             |constant struct at -Os vs
                   |                            |-O2
                 CC|                            |marxin at gcc dot gnu.org
             Target|                            |avr

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So this is done at -O2 already but not -Os.  I have not looked into why though.
Someone will need to look at the heurstics to figure out why.

Also it just does not happen on avr even.  There must be some heurstic changes
between most other targets and avr that causes this not to happen.

Reply via email to