From 46cc214143093bae401dd148b00b6d0330b7af4b Mon Sep 17 00:00:00 2001 From: Seongbae Park Date: Tue, 12 Jun 2007 01:11:03 +0000 Subject: [PATCH] combine.c (subst): Use reg_overlap_mentioned_p instead of comparing register numbers directly. 2007-06-11 Seongbae Park * combine.c (subst): Use reg_overlap_mentioned_p instead of comparing register numbers directly. From-SVN: r125634 --- gcc/ChangeLog | 5 +++++ gcc/combine.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0eba7aa2dc1..d9887cf3a02 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-06-11 Seongbae Park + + * combine.c (subst): Use reg_overlap_mentioned_p + instead of comparing register numbers directly. + 2007-06-11 Kenneth Zadeck * reload1.c (mark_home_live_1): Use the mode parameter. diff --git a/gcc/combine.c b/gcc/combine.c index 6077e783cf0..e44bad986eb 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -4237,7 +4237,7 @@ subst (rtx x, rtx from, rtx to, int in_dest, int unique_copy) So force this insn not to match in this (rare) case. */ if (! in_dest && code == REG && REG_P (from) - && REGNO (x) == REGNO (from)) + && reg_ovelap_mentioned_p (x, from)) return gen_rtx_CLOBBER (GET_MODE (x), const0_rtx); /* If this is an object, we are done unless it is a MEM or LO_SUM, both -- 2.30.2