* loop.c (insert_loop_mem): Ignore memory clobbers.

From-SVN: r30973
This commit is contained in:
Richard Henderson 1999-12-16 01:55:20 -08:00 committed by Jeff Law
parent 4cbfbb1bbb
commit 27114460d3
2 changed files with 6 additions and 0 deletions

View File

@ -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).

View File

@ -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. */