https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61548 --- Comment #15 from Jan Hubicka <hubicka at gcc dot gnu.org> --- I think it is best to modify the remove_unreachable_nodes loop to first remove aliases before removing their target...