summaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorsayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-20 22:29:06 +0000
committersayle <sayle@138bc75d-0d04-0410-961f-82ee72b054a4>2003-02-20 22:29:06 +0000
commit63160ce9229e6950ebabc014137fa6b795adf015 (patch)
tree06eaebd0cb7923db0f1b3bb0d7fc3f91935bd19f /gcc/explow.c
parent846a645c173e6d1b00187f1feed6104d13cb6ac1 (diff)
downloadgcc-63160ce9229e6950ebabc014137fa6b795adf015.tar.gz
* explow.c (force_reg): Avoid useless REG_EQUAL notes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@63187 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index df5bcf659ef..fb133687c4a 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -775,7 +775,8 @@ force_reg (mode, x)
if INSN set something else (such as a SUBREG of TEMP). */
if (CONSTANT_P (x)
&& (set = single_set (insn)) != 0
- && SET_DEST (set) == temp)
+ && SET_DEST (set) == temp
+ && ! rtx_equal_p (x, SET_SRC (set)))
set_unique_reg_note (insn, REG_EQUAL, x);
return temp;