poly_int: reload.c
commitff09c5d7494f9e08591025cb5592720cc5b0490a
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Dec 2017 06:58:00 +0000 (21 06:58 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 21 Dec 2017 06:58:00 +0000 (21 06:58 +0000)
tree229b864810d8ff93f56790e4272a2a34a5fa0039
parent81bc0f0f88215a11dd888fd5f802d8efdcfedbd2
poly_int: reload.c

This patch makes a few small poly_int64 changes to reload.c,
such as in the "decomposition" structure.  In practice, any
port with polynomial-sized modes should be using LRA rather
than reload, but it's easier to convert reload anyway than
to sprinkle to_constants everywhere.

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

gcc/
* reload.h (reload::inc): Change from an int to a poly_int64_pod.
* reload.c (combine_reloads, debug_reload_to_stream): Likewise.
(decomposition): Change start and end from HOST_WIDE_INT
to poly_int64_pod.
(decompose, immune_p): Update accordingly.
(find_inc_amount): Return a poly_int64 rather than an int.
* reload1.c (inc_for_reload): Take the inc_amount as a poly_int64
rather than an int.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255915 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/reload.c
gcc/reload.h
gcc/reload1.c