diff options
author | Alexandre Oliva <aoliva@redhat.com> | 2007-10-03 16:57:21 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2007-10-03 16:57:21 +0000 |
commit | 02a4823b8650a920d78f6b1bac89587b8b1f5374 (patch) | |
tree | 0b73b0b75c1591f961a157c347e4ef659ffcc815 /gcc/gcse.c | |
parent | 05023ea48733b2ad52d22b0e82bddf8d7b66d045 (diff) | |
download | gcc-02a4823b8650a920d78f6b1bac89587b8b1f5374.zip gcc-02a4823b8650a920d78f6b1bac89587b8b1f5374.tar.gz gcc-02a4823b8650a920d78f6b1bac89587b8b1f5374.tar.bz2 |
gcse.c (hash_scan_set): Insert set in insn before note at the end of basic block.
* gcse.c (hash_scan_set): Insert set in insn before note at
the end of basic block.
From-SVN: r128987
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1760,8 +1760,8 @@ hash_scan_set (rtx pat, rtx insn, struct hash_table *table) modified. Here we want to search from INSN+1 on, but oprs_available_p searches from INSN on. */ && (insn == BB_END (BLOCK_FOR_INSN (insn)) - || ((tmp = next_nonnote_insn (insn)) != NULL_RTX - && oprs_available_p (pat, tmp)))) + || (tmp = next_nonnote_insn (insn)) == NULL_RTX + || oprs_available_p (pat, tmp))) insert_set_in_table (pat, insn, table); } /* In case of store we want to consider the memory value as available in |