* regmove.c (copy_src_to_dest) Do not create src->dest move

for unchanging destination.

From-SVN: r32334
This commit is contained in:
Thomas Schuster 2000-03-05 02:02:09 +00:00 committed by Mark Mitchell
parent 08d0be2f4c
commit 40546a785b
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-03-04 Thomas Schuster <Thomas.Schuster@gmx.net>
* regmove.c (copy_src_to_dest) Do not create src->dest move
for unchanging destination.
2000-03-04 Mark Mitchell <mark@codesourcery.com>
* function.h (struct sequence_stack): Remove rtl_expr.

View File

@ -760,6 +760,7 @@ copy_src_to_dest (insn, src, dest, old_max_uid)
if (GET_CODE (src) == REG
&& REG_LIVE_LENGTH (REGNO (src)) > 0
&& GET_CODE (dest) == REG
&& !RTX_UNCHANGING_P (dest)
&& REG_LIVE_LENGTH (REGNO (dest)) > 0
&& (set = single_set (insn)) != NULL_RTX
&& !reg_mentioned_p (dest, SET_SRC (set))