This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [31/77] Use scalar_int_mode for move2add
- From: Jeff Law <law at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org, richard dot sandiford at linaro dot org
- Date: Tue, 15 Aug 2017 12:12:48 -0600
- Subject: Re: [31/77] Use scalar_int_mode for move2add
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=law at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com E8CCDC053FB9
- References: <8760ewohsv.fsf@linaro.org> <87fue0iuvp.fsf@linaro.org>
On 07/13/2017 02:49 AM, Richard Sandiford wrote:
> The postreload move2add optimisations are specific to scalar
> integers. This patch adds an explicit check to the main guarding
> "if" and propagates the information through subroutines.
>
> gcc/
> 2017-07-13 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> * postreload.c (move2add_valid_value_p): Change the type of the
> mode parameter to scalar_int_mode.
> (move2add_use_add2_insn): Add a mode parameter and use it instead
> of GET_MODE (reg).
> (move2add_use_add3_insn): Likewise.
> (reload_cse_move2add): Update accordingly.
OK.
jeff