https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125741
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> --- Enhancing DCE to handle multiple allocations/frees might be also possible (though it might get awkward). Heuristics for jump threading around [special] calls are possible as well. But sure, commoning the allocation would be great.
