This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/82432] Missed constant propagation of return values of non-inlined static functions
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Oct 2017 08:01:24 +0000
- Subject: [Bug ipa/82432] Missed constant propagation of return values of non-inlined static functions
- Auto-submitted: auto-generated
- References: <bug-82432-4@http.gcc.gnu.org/bugzilla/>
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.