This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] [MIPS] Remove unnecessary moves around dpadd and dpsub
- From: Jeff Law <law at redhat dot com>
- To: Mihailo Stojanovic <mihailo dot stojanovic at rt-rk dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Oct 2019 09:14:19 -0600
- Subject: Re: [PATCH] [MIPS] Remove unnecessary moves around dpadd and dpsub
- References: <1571238221-29407-1-git-send-email-mihailo.stojanovic@rt-rk.com>
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