Commit 4d9d7d9d by Richard Kenner

(reg_set_last): Allow old value to be a SUBREG.

From-SVN: r2170
parent 95ac8e67
...@@ -779,8 +779,8 @@ reg_set_last_1 (x, pat) ...@@ -779,8 +779,8 @@ reg_set_last_1 (x, pat)
/* Return the last value to which REG was set prior to INSN. If we can't /* Return the last value to which REG was set prior to INSN. If we can't
find it easily, return 0. find it easily, return 0.
We only return a REG or constant because it is too hard to check if a We only return a REG, SUBREG, or constant because it is too hard to
MEM remains unchanged. */ check if a MEM remains unchanged. */
rtx rtx
reg_set_last (x, insn) reg_set_last (x, insn)
...@@ -818,7 +818,8 @@ reg_set_last (x, insn) ...@@ -818,7 +818,8 @@ reg_set_last (x, insn)
else if (reg_set_last_value) else if (reg_set_last_value)
{ {
if (CONSTANT_P (reg_set_last_value) if (CONSTANT_P (reg_set_last_value)
|| (GET_CODE (reg_set_last_value) == REG || ((GET_CODE (reg_set_last_value) == REG
|| GET_CODE (reg_set_last_value) == SUBREG)
&& ! reg_set_between_p (reg_set_last_value, && ! reg_set_between_p (reg_set_last_value,
NEXT_INSN (insn), orig_insn))) NEXT_INSN (insn), orig_insn)))
return reg_set_last_value; return reg_set_last_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