diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2014-08-28 06:24:36 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2014-08-28 06:24:36 +0000 |
commit | 8d8e205b922741ad452fbe0750d2d8af8515c967 (patch) | |
tree | db4367ff6bcb7499b02a7ff3447bdf9b75a3d5e3 /gcc/cselib.c | |
parent | f7d0b0fc77b26e5fa6872678099576e875d87ed5 (diff) | |
download | gcc-8d8e205b922741ad452fbe0750d2d8af8515c967.zip gcc-8d8e205b922741ad452fbe0750d2d8af8515c967.tar.gz gcc-8d8e205b922741ad452fbe0750d2d8af8515c967.tar.bz2 |
rtl.h (for_each_inc_dec_fn): Remove special case for -1.
gcc/
* rtl.h (for_each_inc_dec_fn): Remove special case for -1.
(for_each_inc_dec): Take an rtx rather than an rtx *.
* cselib.c (cselib_record_autoinc_cb): Update accordingly.
(cselib_record_sets): Likewise.
* dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
(check_for_inc_dec): Likewise.
* rtlanal.c (for_each_inc_dec_ops): Delete.
(for_each_inc_dec_find_inc_dec): Take the MEM as argument,
rather than a pointer to the memory address. Replace
for_each_inc_dec_ops argument with separate function and data
arguments. Abort on non-autoinc addresses.
(for_each_inc_dec_find_mem): Delete.
(for_each_inc_dec): Take an rtx rather than an rtx *. Use
FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
From-SVN: r214657
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index 48ec937..68d4284 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -2464,7 +2464,7 @@ cselib_record_autoinc_cb (rtx mem ATTRIBUTE_UNUSED, rtx op ATTRIBUTE_UNUSED, data->n_sets++; - return -1; + return 0; } /* Record the effects of any sets and autoincs in INSN. */ @@ -2523,7 +2523,7 @@ cselib_record_sets (rtx_insn *insn) data.sets = sets; data.n_sets = n_sets_before_autoinc = n_sets; - for_each_inc_dec (&insn, cselib_record_autoinc_cb, &data); + for_each_inc_dec (PATTERN (insn), cselib_record_autoinc_cb, &data); n_sets = data.n_sets; /* Look up the values that are read. Do this before invalidating the |