https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109327
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- It's really an old issue I think. We record a lattice in forwprop, marking stmts to be removed. But the early forwprop phase runs on the IL with the stmt operands not substituted, instead relying on old get_prop_source_stmt and remove_prop_source_from_use. That mechanism can interfere with the lattice recorded stmt removal. Testing a patch.