[PATCH] [MIPS] Remove unnecessary moves around dpadd and dpsub

Jeff Law law@redhat.com
Wed Oct 16 15:41:00 GMT 2019


On 10/16/19 9:03 AM, Mihailo Stojanovic wrote:
> Unnecessary moves around dpadd and dpsub are caused by different pseudos
> being assigned to the input-output operands which correspond to the same
> register.
> 
> This forces the same pseudo to the input-output operands, which removes
> unnecesary moves.
> 
> Tested on mips-mti-linux-gnu.
> 
> gcc/ChangeLog:
> 
>         * gcc/config/mips/mips.c (mips_expand_builtin_insn): Force the
>         operands which correspond to the same input-output register to
>         have the same pseudo assigned to them.
> 
> gcc/testsuite/ChangeLog:
> 
>         * gcc/testsuite/gcc.target/mips/msa-dpadd-dpsub.c: New test.
THanks.  Installed.
jeff



More information about the Gcc-patches mailing list