diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-01 01:15:07 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-07-01 01:15:07 +0000 |
commit | 8e9999972819d29e88aa4213572ac734c04ffd5f (patch) | |
tree | 5598774dfea689770b311deffdc2ccd8112d6016 /gcc/unroll.c | |
parent | 32c01b3f2f45fff4c910b69f36c904ce1c7b57d3 (diff) | |
download | gcc-8e9999972819d29e88aa4213572ac734c04ffd5f.tar.gz |
* combine.c (distribute_notes): Don't bother REG_WAS_0.
* cse.c (cse_insn): Likewise.
* final.c (final_scan_insn): Likewise.
* jump.c (duplicate_loop_exit_test): Likewise.
* rtl.c (reg_note_name): Remove REG_WAS_0.
* rtl.h (REG_WAS_0): Remove.
* unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
* config/avr/avr.c (output_movqi): Don't use reg_was_0.
(output_movhi): Likewise.
(output_movsisf): Likewise.
(reg_was_0): Remove.
* config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
REG_WAS_0.
(m68hc11_gen_movqi): Likewise.
* config/vax/vax-protos.h: Remove the prototype for
reg_was_0_p.
* config/vax/vax.c (follows_p): Remove.
(reg_was_0_p): Likewise.
* config/vax/vax.md (movsi): Don't use reg_was_0_p.
(movhi): Likewise.
(movqi): Likewise.
* doc/rtl.texi (REG_WAS_0): Remove.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68753 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index 03decb773df..84ace299e4e 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -1735,29 +1735,18 @@ final_reg_note_copy (notesp, map) if (GET_CODE (note) == INSN_LIST) { - /* Sometimes, we have a REG_WAS_0 note that points to a - deleted instruction. In that case, we can just delete the - note. */ - if (REG_NOTE_KIND (note) == REG_WAS_0) + rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))]; + + /* If we failed to remap the note, something is awry. + Allow REG_LABEL as it may reference label outside + the unrolled loop. */ + if (!insn) { - *notesp = XEXP (note, 1); - continue; + if (REG_NOTE_KIND (note) != REG_LABEL) + abort (); } else - { - rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))]; - - /* If we failed to remap the note, something is awry. - Allow REG_LABEL as it may reference label outside - the unrolled loop. */ - if (!insn) - { - if (REG_NOTE_KIND (note) != REG_LABEL) - abort (); - } - else - XEXP (note, 0) = insn; - } + XEXP (note, 0) = insn; } notesp = &XEXP (note, 1); |