aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2004-02-24 10:34:22 +0000
committerAlan Modra <amodra@gcc.gnu.org>2004-02-24 21:04:22 +1030
commitcb7c3c3f1ade49849a9facbedbb108f94d941bf4 (patch)
tree95a8276beee39439317f038e85f6bd4ff4b875d9 /gcc/gcse.c
parent031e658e58cad675197b845e5c6b311237fabfa7 (diff)
downloadgcc-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/gcse.c')
-rw-r--r--gcc/gcse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index b61ee8c..36950b1 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -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))