https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116937
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2024-10-04 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- One of the main oddities is that gsi_remove (..., true) doesn't release the stmt DEFs but remove_phi_node (..., true) does. The latter now also releases the stmts memory. I think that having defs released controlled independently on the actual stmt being freed is good, so eventually remove_phi_node (..., true); could be replaced by release_defs (phi); remove_phi_node (..., true); and gsi_remove (..., true); made to ggc_free the actual stmt (big fallout! possibly "fix" by having a TO_RELEASE_STMTS like we have that SSA_NAME queue for re-use).