diff options
author | Jakub Jelinek <jakub@redhat.com> | 2001-04-20 09:56:50 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2001-04-20 09:56:50 +0200 |
commit | 43e720723ff64cdbed12173248b783938173ab0a (patch) | |
tree | 4120801b04df0c391df22ca45c74588def05e73a /gcc/cse.c | |
parent | 5c8378a7a2662941f64ef85e359ee0465c49c712 (diff) | |
download | gcc-43e720723ff64cdbed12173248b783938173ab0a.zip gcc-43e720723ff64cdbed12173248b783938173ab0a.tar.gz gcc-43e720723ff64cdbed12173248b783938173ab0a.tar.bz2 |
gcse.c (gcse_main): Fix comment typo.
* gcse.c (gcse_main): Fix comment typo.
(delete_null_pointer_check): Likewise.
(hash_scan_set): Don't consider sets with REG_EQUIV MEM notes.
* cse.c (cse_insn): Likewise.
* function.c (fixup_var_refs_insns_with_hash): The sequence is
toplevel.
* gcc.c-torture/execute/20010403-1.c: New test.
From-SVN: r41444
Diffstat (limited to 'gcc/cse.c')
-rw-r--r-- | gcc/cse.c | 16 |
1 files changed, 7 insertions, 9 deletions
@@ -5067,18 +5067,16 @@ cse_insn (insn, libcall_insn) sets[i].src_in_memory = hash_arg_in_memory; /* If SRC is a MEM, there is a REG_EQUIV note for SRC, and DEST is - a pseudo that is set more than once, do not record SRC. Using - SRC as a replacement for anything else will be incorrect in that - situation. Note that this usually occurs only for stack slots, - in which case all the RTL would be referring to SRC, so we don't - lose any optimization opportunities by not having SRC in the - hash table. */ + a pseudo, do not record SRC. Using SRC as a replacement for + anything else will be incorrect in that situation. Note that + this usually occurs only for stack slots, in which case all the + RTL would be referring to SRC, so we don't lose any optimization + opportunities by not having SRC in the hash table. */ if (GET_CODE (src) == MEM - && find_reg_note (insn, REG_EQUIV, src) != 0 + && find_reg_note (insn, REG_EQUIV, NULL_RTX) != 0 && GET_CODE (dest) == REG - && REGNO (dest) >= FIRST_PSEUDO_REGISTER - && REG_N_SETS (REGNO (dest)) != 1) + && REGNO (dest) >= FIRST_PSEUDO_REGISTER) sets[i].src_volatile = 1; #if 0 |