This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make more use of byte_lowpart_offset
- 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: Thu, 12 Oct 2017 16:16:04 -0600
- Subject: Re: Make more use of byte_lowpart_offset
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx01.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx01.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 C12977F409
- References: <87shgitv0m.fsf@linaro.org>
On 08/23/2017 04:53 AM, Richard Sandiford wrote:
> This patch uses byte_lowpart_offset in places that open-coded the
> calculation.
>
> Tested on aarch64-linux-gnu and x86_64-linux-gnu, and by making sure
> that there were no differences in testsuite assembly output for one
> target per CPU. OK to install?
>
> Richard
>
>
> 2017-08-23 Richard Sandiford <richard.sandiford@linaro.org>
> Alan Hayward <alan.hayward@arm.com>
> David Sherwood <david.sherwood@arm.com>
>
> gcc/
> * caller-save.c (replace_reg_with_saved_mem): Use byte_lowpart_offset.
> * combine.c (gen_lowpart_for_combine): Likewise.
> * dwarf2out.c (rtl_for_decl_location): Likewise.
> * final.c (alter_subreg): Likewise.
> * rtlhooks.c (gen_lowpart_general): Likewise.
> (gen_lowpart_if_possible): Likewise.
OK.
jeff