Commit 7e42db17 by Dale Johannesen Committed by Dale Johannesen

cselib.c (cselib_process_insn): Clear out regs where…

cselib.c (cselib_process_insn): Clear out regs where HARD_REGNO_CALL_PART_CLOBBERED is true at a call.

2005-02-11  Dale Johannesen  <dalej@apple.com>

	* cselib.c (cselib_process_insn):  Clear out regs where
	HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
	* reload.c (find_equiv_reg): Ditto.

From-SVN: r94885
parent 712b39c5
2005-02-11 Dale Johannesen <dalej@apple.com>
* cselib.c (cselib_process_insn): Clear out regs where
HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
* reload.c (find_equiv_reg): Ditto.
2005-02-11 Ian Lance Taylor <ian@airs.com> 2005-02-11 Ian Lance Taylor <ian@airs.com>
* read-rtl.c (read_rtx_1): Give fatal error if we see a vector * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
......
...@@ -1380,7 +1380,10 @@ cselib_process_insn (rtx insn) ...@@ -1380,7 +1380,10 @@ cselib_process_insn (rtx insn)
if (CALL_P (insn)) if (CALL_P (insn))
{ {
for (i = 0; i < FIRST_PSEUDO_REGISTER; i++) for (i = 0; i < FIRST_PSEUDO_REGISTER; i++)
if (call_used_regs[i]) if (call_used_regs[i]
|| (REG_VALUES (i) && REG_VALUES (i)->elt
&& HARD_REGNO_CALL_PART_CLOBBERED (i,
GET_MODE (REG_VALUES (i)->elt->u.val_rtx))))
cselib_invalidate_regno (i, reg_raw_mode[i]); cselib_invalidate_regno (i, reg_raw_mode[i]);
if (! CONST_OR_PURE_CALL_P (insn)) if (! CONST_OR_PURE_CALL_P (insn))
......
...@@ -6705,12 +6705,14 @@ find_equiv_reg (rtx goal, rtx insn, enum reg_class class, int other, ...@@ -6705,12 +6705,14 @@ find_equiv_reg (rtx goal, rtx insn, enum reg_class class, int other,
if (regno >= 0 && regno < FIRST_PSEUDO_REGISTER) if (regno >= 0 && regno < FIRST_PSEUDO_REGISTER)
for (i = 0; i < nregs; ++i) for (i = 0; i < nregs; ++i)
if (call_used_regs[regno + i]) if (call_used_regs[regno + i]
|| HARD_REGNO_CALL_PART_CLOBBERED (regno + i, mode))
return 0; return 0;
if (valueno >= 0 && valueno < FIRST_PSEUDO_REGISTER) if (valueno >= 0 && valueno < FIRST_PSEUDO_REGISTER)
for (i = 0; i < valuenregs; ++i) for (i = 0; i < valuenregs; ++i)
if (call_used_regs[valueno + i]) if (call_used_regs[valueno + i]
|| HARD_REGNO_CALL_PART_CLOBBERED (valueno + i, mode))
return 0; return 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