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

From-SVN: r14002
This commit is contained in:
Richard Kenner 1997-05-01 09:00:40 -04:00
parent 5ef37cd339
commit 2698626583
1 changed files with 1 additions and 0 deletions

View File

@ -2717,6 +2717,7 @@ subst_constants (loc, insn, map)
new = operand_subword (inner, SUBREG_WORD (x), 0,
GET_MODE (SUBREG_REG (x)));
cancel_changes (num_changes);
if (new == 0 && subreg_lowpart_p (x))
new = gen_lowpart_common (GET_MODE (x), inner);