Commit 26986265 by Richard Kenner

(subst_constants, case SUBREG): Cancel changes once done with result.

From-SVN: r14002
parent 5ef37cd3
...@@ -2717,6 +2717,7 @@ subst_constants (loc, insn, map) ...@@ -2717,6 +2717,7 @@ subst_constants (loc, insn, map)
new = operand_subword (inner, SUBREG_WORD (x), 0, new = operand_subword (inner, SUBREG_WORD (x), 0,
GET_MODE (SUBREG_REG (x))); GET_MODE (SUBREG_REG (x)));
cancel_changes (num_changes);
if (new == 0 && subreg_lowpart_p (x)) if (new == 0 && subreg_lowpart_p (x))
new = gen_lowpart_common (GET_MODE (x), inner); new = gen_lowpart_common (GET_MODE (x), inner);
......
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