https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93893
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Paul Hua from comment #2) > Hi Andrew, can you send the patch to gcc-patches mail list or add to > attachment. It is a huge patch set, and not ready yet. It does a few things and the rest of the optimizers still need improvements to get back where we were before. But in this case, it just adds a few patterns to match.pd to use BIT_INSERT_EXPR and that is in the generic part of GCC really. I originally had a MIPS specific patch years ago but that was rejected and I cannot find it right now but you should be able to look for my patch on the mailing list.