]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcse.c (hash_scan_set): Insert set in insn before note at the end of basic block.
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 3 Oct 2007 16:57:21 +0000 (16:57 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Wed, 3 Oct 2007 16:57:21 +0000 (16:57 +0000)
* gcse.c (hash_scan_set): Insert set in insn before note at
the end of basic block.

From-SVN: r128987

gcc/ChangeLog
gcc/gcse.c

index e9e2b6a799affa16178de47ed199022ffab127e0..cc66c032b944d2c3784404839c6a6a239270f6c4 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-03  Alexandre Oliva  <aoliva@redhat.com>
+
+       * gcse.c (hash_scan_set): Insert set in insn before note at
+       the end of basic block.
+
 2007-10-03  Sebastian Pop  <sebastian.pop@amd.com>
 
        PR tree-optimization/33576
index e3ffae0d05cc09b1dfcf9a4bf7bb27ff38ef941c..6f308c22e7155d379ac6c8f58d79197b98c9d512 100644 (file)
@@ -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