Make more use of subreg_lowpart_offset
commit41aff804ed6bb3eec9de50579cda6500409750f1
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Oct 2017 09:23:54 +0000 (13 09:23 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 13 Oct 2017 09:23:54 +0000 (13 09:23 +0000)
treefc56c08135f71cfb00cb65322910c3e569682d8e
parentb11bf8d85f574c56cab353544b50396c18ab9b93
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@253713 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/calls.c
gcc/cse.c
gcc/regcprop.c