[Bug middle-end/42995] [4.4 Regression] inline-small-functions does not inline simple delegation calls

rguenth at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 8 10:19:00 GMT 2010



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-02-08 10:19 -------
It doesn't inline it because:

Considering inline candidate get_data_for.
Not inlining: code size would grow by 3 insns.

The callee is estimated to have size 16 while the call costs less.  The issue
is a missing check for VOID_TYPE_P in estimate_num_insns which has been
fixed for 4.5.

I have a fix.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
      Known to fail|                            |4.4.3
      Known to work|                            |4.3.4 4.5.0
   Last reconfirmed|0000-00-00 00:00:00         |2010-02-08 10:19:12
               date|                            |
            Summary|[4.3 regression] inline-    |[4.4 Regression] inline-
                   |small-functions does not    |small-functions does not
                   |inline simple delegation    |inline simple delegation
                   |calls                       |calls
   Target Milestone|---                         |4.4.4


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



More information about the Gcc-bugs mailing list