https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109476
--- Comment #14 from Roger Sayle <roger at nextmovesoftware dot com> --- My apologies for the delay/issues. My bootstrap and regression testing of this patch (on x86_64-pc-linux-gnu) revealed an issue or two (including the reported ICE). My plan was to fix/resolve all these before posting a concrete submission to gcc-patches. The general approach is solid (thanks to everyone that agreed this was the correct place to fix things) but it's the corner cases (such as RTL sharing) that all need to be addressed prior to a reviewable submission.