https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109213
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- t.c:26:5: missed: not inlinable: main/7 -> m/6, --param large-stack-frame-growth limit reached and after the DSE: IPA function summary for main/7 inlinable global time: 38.636364 self size: 11 global size: 11 min size: 8 self stack: 0 global stack: 0 IPA function summary for m/6 inlinable global time: 86.705545 self size: 22 global size: 22 min size: 19 self stack: 264 global stack: 264 vs. IPA function summary for main/7 inlinable global time: 42.636364 self size: 14 global size: 14 min size: 11 self stack: 40 global stack: 40 without the DSE. And we apply the limit in a quite complicated way in caller_growth_limits, changing mains stack size to 1 or 4 doesn't help, so it isn't a totally arbitrary special-casing of zero caller stack size. I'm leaning towards a WONTFIX or reclassify as non-regression. The bug is definitely not that we now do more DSE, the pre-existing bug might be that we take the absolute size of the caller stack into account.