aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2007-10-03 16:57:21 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2007-10-03 16:57:21 +0000
commit02a4823b8650a920d78f6b1bac89587b8b1f5374 (patch)
tree0b73b0b75c1591f961a157c347e4ef659ffcc815 /gcc/gcse.c
parent05023ea48733b2ad52d22b0e82bddf8d7b66d045 (diff)
downloadgcc-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index e3ffae0..6f308c2 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -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