Commit a5546290 by J"orn Rennecke Committed by Jeff Law

reload.c (find_equiv_reg): When looking for stack pointer + const, make sure we…

reload.c (find_equiv_reg): When looking for stack pointer + const, make sure we don't use a stack adjust.

        * reload.c (find_equiv_reg): When looking for stack pointer + const,
        make sure we don't use a stack adjust.

From-SVN: r20985
parent 1b4d8b2b
...@@ -76,6 +76,9 @@ Mon Jul 6 22:50:48 1998 Jason Merrill <jason@yorick.cygnus.com> ...@@ -76,6 +76,9 @@ Mon Jul 6 22:50:48 1998 Jason Merrill <jason@yorick.cygnus.com>
Mon Jul 6 22:47:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk> Mon Jul 6 22:47:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload.c (find_equiv_reg): When looking for stack pointer + const,
make sure we don't use a stack adjust.
* reload.c (find_equiv_reg): If need_stable_sp is set, * reload.c (find_equiv_reg): If need_stable_sp is set,
check if stack pointer is changed directly. check if stack pointer is changed directly.
......
...@@ -6017,6 +6017,9 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode) ...@@ -6017,6 +6017,9 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
&& (valueno = true_regnum (valtry = SET_SRC (pat))) >= 0) && (valueno = true_regnum (valtry = SET_SRC (pat))) >= 0)
|| ||
(goal_const && rtx_equal_p (SET_SRC (pat), goal) (goal_const && rtx_equal_p (SET_SRC (pat), goal)
/* When looking for stack pointer + const,
make sure we don't use a stack adjust. */
&& !reg_overlap_mentioned_for_reload_p (SET_DEST (pat), goal)
&& (valueno = true_regnum (valtry = SET_DEST (pat))) >= 0) && (valueno = true_regnum (valtry = SET_DEST (pat))) >= 0)
|| (goal_mem || (goal_mem
&& (valueno = true_regnum (valtry = SET_DEST (pat))) >= 0 && (valueno = true_regnum (valtry = SET_DEST (pat))) >= 0
......
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