diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-05-17 07:00:02 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-05-17 07:00:02 +0000 |
commit | 23b33725083ba1a1c3340b81475f2940d8f2e436 (patch) | |
tree | d0bbc16685eb58141c00c2372960b318c757d524 /gcc/rtl.h | |
parent | e16db39967ab6aaef964cae249087d37c18984a0 (diff) | |
download | gcc-23b33725083ba1a1c3340b81475f2940d8f2e436.zip gcc-23b33725083ba1a1c3340b81475f2940d8f2e436.tar.gz gcc-23b33725083ba1a1c3340b81475f2940d8f2e436.tar.bz2 |
emit-rtl.h (replace_equiv_address, [...]): Add an inplace argument.
gcc/
* emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
inplace argument. Store the new address in the original MEM when true.
* emit-rtl.c (change_address_1): Likewise.
(adjust_address_1, adjust_automodify_address_1, offset_address):
Update accordingly.
* rtl.h (plus_constant): Add an inplace argument.
* explow.c (plus_constant): Likewise. Try to reuse the original PLUS
when true. Avoid generating (plus X (const_int 0)).
* function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
in-place. Pass true to plus_constant.
(instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
From-SVN: r210543
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1952,7 +1952,7 @@ extern int currently_expanding_to_rtl; /* In explow.c */ extern HOST_WIDE_INT trunc_int_for_mode (HOST_WIDE_INT, enum machine_mode); -extern rtx plus_constant (enum machine_mode, rtx, HOST_WIDE_INT); +extern rtx plus_constant (enum machine_mode, rtx, HOST_WIDE_INT, bool = false); /* In rtl.c */ extern rtx rtx_alloc_stat (RTX_CODE MEM_STAT_DECL); |