Make more use of byte_lowpart_offset
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 13 Oct 2017 09:32:29 +0000 (09:32 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 13 Oct 2017 09:32:29 +0000 (09:32 +0000)
commit90f2b7e220df8ce298b2cd8f853a02aaecdbff0b
treee6e6b7a6cd37b119b1118babd9d53aa30d191bde
parent610c45fcbfff43176beefefcea74c6137a432220
Make more use of byte_lowpart_offset

This patch uses byte_lowpart_offset in places that open-coded the
calculation.

2017-10-13  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.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253714
gcc/ChangeLog
gcc/caller-save.c
gcc/combine.c
gcc/dwarf2out.c
gcc/final.c
gcc/rtlhooks.c