[Bug tree-optimization/93893] MIPS32r2: GCC is unable to figure out that it can use a single INS instruction instead of SLL+OR

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Jul 3 09:46:53 GMT 2020


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.


More information about the Gcc-bugs mailing list