combine.c (subst): Use reg_overlap_mentioned_p instead of comparing register numbers directly.

2007-06-11  Seongbae Park <seongbae.park@gmail.com>

	* combine.c (subst): Use reg_overlap_mentioned_p
	instead of comparing register numbers directly.

From-SVN: r125634
This commit is contained in:
Seongbae Park 2007-06-12 01:11:03 +00:00 committed by Seongbae Park
parent b1db1d9b26
commit 46cc214143
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2007-06-11 Seongbae Park <seongbae.park@gmail.com>
* combine.c (subst): Use reg_overlap_mentioned_p
instead of comparing register numbers directly.
2007-06-11 Kenneth Zadeck <zadeck@naturalbridge.com>
* reload1.c (mark_home_live_1): Use the mode parameter.

View File

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