diff options
author | Alan Modra <amodra@bigpond.net.au> | 2004-02-24 10:34:22 +0000 |
---|---|---|
committer | Alan Modra <amodra@gcc.gnu.org> | 2004-02-24 21:04:22 +1030 |
commit | cb7c3c3f1ade49849a9facbedbb108f94d941bf4 (patch) | |
tree | 95a8276beee39439317f038e85f6bd4ff4b875d9 /gcc | |
parent | 031e658e58cad675197b845e5c6b311237fabfa7 (diff) | |
download | gcc-cb7c3c3f1ade49849a9facbedbb108f94d941bf4.zip gcc-cb7c3c3f1ade49849a9facbedbb108f94d941bf4.tar.gz gcc-cb7c3c3f1ade49849a9facbedbb108f94d941bf4.tar.bz2 |
gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not beginning of block.
* gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
beginning of block.
From-SVN: r78361
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcse.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b837f4c..bd4942d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. @@ -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)) |