Commit 1ff0c00d by Richard Kenner

(insert_regs): If a REG already is in a class but not in the mode we

want, don't do anything to the classes.

From-SVN: r3951
parent e6878cb9
...@@ -984,9 +984,14 @@ insert_regs (x, classp, modified) ...@@ -984,9 +984,14 @@ insert_regs (x, classp, modified)
{ {
register int regno = REGNO (x); register int regno = REGNO (x);
if (modified /* If REGNO is in the equivalence table already but is of the
|| ! (REGNO_QTY_VALID_P (regno) wrong mode for that equivalence, don't do anything here. */
&& qty_mode[reg_qty[regno]] == GET_MODE (x)))
if (REGNO_QTY_VALID_P (regno)
&& qty_mode[reg_qty[regno]] != GET_MODE (x))
return 0;
if (modified || ! REGNO_QTY_VALID_P (regno))
{ {
if (classp) if (classp)
for (classp = classp->first_same_value; for (classp = classp->first_same_value;
......
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