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

Richard Guenther <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #15 from Richard Guenther <rguenth at gcc dot gnu.org> 2011-05-23 
14:33:11 UTC ---
Works on trunk (but not during early inlining).  From early inlining we now get

<bb 2>:
  f.x = g;
  D.2126_6 = f.x;
  D.2127_7 = D.2126_6 (3);

and early FRE turns that into a direct call:

  f$x_8 = g;
  D.2126_6 = f$x_8;
  D.2125_7 = g (3);

which is then inlined by IPA inlining:

int main(int, char**) (int argc, char * * argv)
{
<bb 2>:
  return 0;

}

Fixed.

Reply via email to