https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93385
--- Comment #41 from Martin Jambor <jamborm at gcc dot gnu.org> --- I reworked the series in order to avoid the biggest objection and posted them as https://gcc.gnu.org/pipermail/gcc-patches/2021-March/567471.html and https://gcc.gnu.org/pipermail/gcc-patches/2021-March/567472.html Because the first one is a bit disruptive, I do not think they are suitable for stage4. Therefore I suggest that in GCC 10 and 11 we paper over the issue with the patch from comment #11 and in GCC 12 we fix this independently from DCE pass with the referenced patches. Sorry I could not come up with this earlier, it took me a lot of unsuccessful attempts to get here.