* gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2004 10:34:22 +0000 (10:34 +0000)
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Feb 2004 10:34:22 +0000 (10:34 +0000)
beginning of block.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78361 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcse.c

index b837f4c..bd4942d 100644 (file)
@@ -1,3 +1,8 @@
+2004-02-24  Alan Modra  <amodra@bigpond.net.au>
+
+       * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
+       beginning of block.
+
 2004-02-23  James E Wilson  <wilson@specifixinc.com>
 
        * calls.c (precompute_arguments): Update comment.
index b61ee8c..36950b1 100644 (file)
@@ -5967,7 +5967,7 @@ delete_null_pointer_checks_1 (unsigned int *block_reg, sbitmap *nonnull_avin,
 
       /* Scan each insn in the basic block looking for memory references and
         register sets.  */
-      stop_insn = NEXT_INSN (BB_HEAD (current_block));
+      stop_insn = NEXT_INSN (BB_END (current_block));
       for (insn = BB_HEAD (current_block);
           insn != stop_insn;
           insn = NEXT_INSN (insn))