From 40546a785b540f03926d6b9cee85803f7293b517 Mon Sep 17 00:00:00 2001 From: Thomas Schuster Date: Sun, 5 Mar 2000 02:02:09 +0000 Subject: [PATCH] * regmove.c (copy_src_to_dest) Do not create src->dest move for unchanging destination. From-SVN: r32334 --- gcc/ChangeLog | 5 +++++ gcc/regmove.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7a3d5c78e64..ba0cfcff032 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-03-04 Thomas Schuster + + * regmove.c (copy_src_to_dest) Do not create src->dest move + for unchanging destination. + 2000-03-04 Mark Mitchell * function.h (struct sequence_stack): Remove rtl_expr. diff --git a/gcc/regmove.c b/gcc/regmove.c index 2e7b48dbb11..ba9d2e7d689 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -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))