[Bug tree-optimization/122034] __builtin_stack_save/__builtin_stack_restore pair (on the gimple level) is not removed if there is no alloca inbetween

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Sep 22 20:40:31 GMT 2025


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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I was thinking about doing this in DCE rather than a secondary pass. Though I
have to figure out the best way to mark __builtin_stack_save is alive when an
alloca happens because unlike malloc/free, there is no tracking of return
values here.


More information about the Gcc-bugs mailing list