https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111294
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- So the issue is that forwprop & folding has a hard time in cleaning up dead code afterwards but it would also benefit from doing that more aggressively (and early) because of single_use () and friends. I'm thinking of hooking into update_stmt to discover candidates for simple-dce-from-worklist (likely not early and aggressive enough though).