https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70094
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|tree-optimization |rtl-optimization Severity|normal |enhancement --- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- > But RTL DSE cannot get rid of the stack space allocated for 'foo f', no? Yes, you're right, the stack space cannot be reclaimed after RTL expansion, but in a non-toy example it would be reused for something else. I'll give it a try at the RTL level since this looks a useful improvement on its own.