aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1999-12-16 01:55:20 -0800
committerJeff Law <law@gcc.gnu.org>1999-12-16 02:55:20 -0700
commit27114460d3a2b793de2b99d25138cbcff96ac9df (patch)
treeb5826f95c7d2b3dd2fe7c79e5a67dd4f528831a7 /gcc
parent4cbfbb1bbb819349fccf3d4948445176b24fa586 (diff)
downloadgcc-27114460d3a2b793de2b99d25138cbcff96ac9df.zip
gcc-27114460d3a2b793de2b99d25138cbcff96ac9df.tar.gz
gcc-27114460d3a2b793de2b99d25138cbcff96ac9df.tar.bz2
* loop.c (insert_loop_mem): Ignore memory clobbers.
From-SVN: r30973
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog2
-rw-r--r--gcc/loop.c4
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5f98bda..4c89818 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -6,6 +6,8 @@ Thu Dec 16 10:43:35 MET 1999 Jan Hubicka <hubicka@freesoft.cz>
Thu Dec 16 02:41:26 1999 Richard Henderson (rth@cygnus.com)
+ * loop.c (insert_loop_mem): Ignore memory clobbers.
+
* combine.c (simplify_comparison): Reduce (OP (MINUS A B) 0)
to (OP A B).
diff --git a/gcc/loop.c b/gcc/loop.c
index 573a76a..b210a23 100644
--- a/gcc/loop.c
+++ b/gcc/loop.c
@@ -9643,6 +9643,10 @@ insert_loop_mem (mem, data)
case MEM:
break;
+ case CLOBBER:
+ /* We're not interested in MEMs that are only clobbered. */
+ return -1;
+
case CONST_DOUBLE:
/* We're not interested in the MEM associated with a
CONST_DOUBLE, so there's no need to traverse into this. */