This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug ipa/82432] Missed constant propagation of return values of non-inlined static functions


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2017-10-05
                 CC|                            |hubicka at gcc dot gnu.org
          Component|tree-optimization           |ipa
     Ever confirmed|0                           |1

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think there's more general dup PR about the IPA propagation machinery not
having "return functions".  That is, we can't propagate through function
returns.

For constant propagation this would be IPA-CP.

You could say partial inlining aka function-splitting might solve this as well
(in case it's so obvious) by not outlining the tail but the head of the
function.

Confirmed.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]