]> git.ipfire.org Git - thirdparty/gcc.git/commit
Make more use of subreg_lowpart_offset
authorRichard Sandiford <richard.sandiford@linaro.org>
Fri, 13 Oct 2017 09:23:54 +0000 (09:23 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 13 Oct 2017 09:23:54 +0000 (09:23 +0000)
commit610c45fcbfff43176beefefcea74c6137a432220
treefc56c08135f71cfb00cb65322910c3e569682d8e
parent5752d1f7943db65667edeaf8481dc10b60a23197
Make more use of subreg_lowpart_offset

This patch uses subreg_lowpart_offset in places that open-coded
the calculation.  It also uses it in regcprop.c to test whether,
after a mode change, the first register in a multi-register group
is still the right one.

2017-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* calls.c (expand_call): Use subreg_lowpart_offset.
* cse.c (cse_insn): Likewise.
* regcprop.c (copy_value): Likewise.
(copyprop_hardreg_forward_1): Likewise.

Co-Authored-By: Alan Hayward <alan.hayward@arm.com>
Co-Authored-By: David Sherwood <david.sherwood@arm.com>
From-SVN: r253713
gcc/ChangeLog
gcc/calls.c
gcc/cse.c
gcc/regcprop.c