summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authoramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-26 03:21:15 +0000
committeramodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4>2004-02-26 03:21:15 +0000
commit139f8db0db64d61f75b71bc91175328650782bab (patch)
tree04745142f7bd054c8a56a589c003b7664faaf9b4 /gcc/gcse.c
parentb55b7c5158989019cc798df235474fcb7edbf814 (diff)
downloadgcc-139f8db0db64d61f75b71bc91175328650782bab.tar.gz
* gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
unless HAVE_cc0. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78484 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 36950b186bf..ad1c9fda64e 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -6069,8 +6069,10 @@ delete_null_pointer_checks_1 (unsigned int *block_reg, sbitmap *nonnull_avin,
something_changed = 1;
delete_insn (last_insn);
+#ifdef HAVE_cc0
if (compare_and_branch == 2)
delete_insn (earliest);
+#endif
purge_dead_edges (bb);
/* Don't check this block again. (Note that BB_END is