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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2023-08-21
             Status|UNCONFIRMED                 |NEW

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So ICF figures out foo and foo2 are the same and has foo2 tail calls foo:

  <bb 2> [local count: 1073741824]:
  retval.2_4 = foo (a_2(D)); [tail call]
  return retval.2_4;

But adds a return with a value. And then the inliner inlines foo into foo2 but
we still have the return with a value around ...

Reply via email to