]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not beginning of block.
authorAlan Modra <amodra@bigpond.net.au>
Tue, 24 Feb 2004 10:34:22 +0000 (10:34 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 24 Feb 2004 10:34:22 +0000 (21:04 +1030)
* gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
beginning of block.

From-SVN: r78361

gcc/ChangeLog
gcc/gcse.c

index b837f4c3334dac19ffaab7a99117910355303a54..bd4942d65f979ae8ce57e08075a995652d5b76b0 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 b61ee8ccbee9ad60b8fd34b39f1270b7e9fbbc75..36950b186bfc5955c1cef20d28773592301d3e1d 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))