reload.h (reg_equiv_invariant): Declare.

2005-12-07  J"orn Rennecke <joern.rennecke@st.com>

	* reload.h (reg_equiv_invariant): Declare.
	* reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
	register also when reg_equiv_invariant[R] is set.

From-SVN: r108195
This commit is contained in:
J"orn Rennecke 2005-12-07 23:41:19 +00:00 committed by Joern Rennecke
parent c60fb9672a
commit 444aea52f6
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-12-07 J"orn Rennecke <joern.rennecke@st.com>
* reload.h (reg_equiv_invariant): Declare.
* reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
register also when reg_equiv_invariant[R] is set.
2005-12-07 Richard Sandiford <richard@codesourcery.com>
Andreas Tobler <a.tobler@schweiz.ch>

View File

@ -6223,7 +6223,7 @@ refers_to_regno_for_reload_p (unsigned int regno, unsigned int endregno,
reg_equiv_memory_loc[r],
(rtx*) 0);
gcc_assert (reg_equiv_constant[r]);
gcc_assert (reg_equiv_constant[r] || reg_equiv_invariant[r]);
return 0;
}

View File

@ -157,6 +157,7 @@ extern int n_reloads;
extern GTY (()) struct varray_head_tag *reg_equiv_memory_loc_varray;
extern rtx *reg_equiv_constant;
extern rtx *reg_equiv_invariant;
extern rtx *reg_equiv_memory_loc;
extern rtx *reg_equiv_address;
extern rtx *reg_equiv_mem;