This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/77938] missing tailcall optimization in case when local variable escapes that goes out of scope before the possible tail call site
- 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: Wed, 12 Oct 2016 07:25:38 +0000
- Subject: [Bug tree-optimization/77938] missing tailcall optimization in case when local variable escapes that goes out of scope before the possible tail call site
- Auto-submitted: auto-generated
- References: <bug-77938-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77938
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think the only way we can improve this is tracking liveness with CLOBBERs
(but that relies on CLOBBERs being present). Like walking dominators looking
for
CLOBBERs (or computing full data-flow for the desired set of vars, see
cfgexpand.c:add_scope_conflicts how this works with CLOBBERs).