Commit 1e4c6dc5 by Seongbae Park Committed by Seongbae Park

regmove.c (regmove_optimize): Use reg_mentioned_p instead of reg_overlap_mentioned_p for DST.

2007-03-21  Seongbae Park <seongbae.park@gmail.com>

	* regmove.c (regmove_optimize): Use reg_mentioned_p
	instead of reg_overlap_mentioned_p for DST.

From-SVN: r123124
parent 924641d3
2007-03-21 Seongbae Park <seongbae.park@gmail.com>
* regmove.c (regmove_optimize): Use reg_mentioned_p
instead of reg_overlap_mentioned_p for DST.
2007-03-21 Mike Stump <mrs@apple.com> 2007-03-21 Mike Stump <mrs@apple.com>
* c.opt: Fixup for Objective-C/C++. * c.opt: Fixup for Objective-C/C++.
......
...@@ -1429,8 +1429,13 @@ regmove_optimize (rtx f, int nregs) ...@@ -1429,8 +1429,13 @@ regmove_optimize (rtx f, int nregs)
break; break;
} }
/* We can't make this change if SRC is read or
partially written in P, since we are going to
eliminate SRC. We can't make this change
if DST is mentioned at all in P,
since we are going to change its value. */
if (reg_overlap_mentioned_p (src, PATTERN (p)) if (reg_overlap_mentioned_p (src, PATTERN (p))
|| reg_overlap_mentioned_p (dst, PATTERN (p))) || reg_mentioned_p (dst, PATTERN (p)))
break; break;
/* If we have passed a call instruction, and the /* If we have passed a call instruction, and the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment