combine.c (simplify_shift_const): Always generate new rtx for shift expression instead of reusing given expression.

* combine.c (simplify_shift_const): Always generate new rtx
  for shift expression instead of reusing given expression.

From-SVN: r48831
This commit is contained in:
Hartmut Penner 2002-01-14 15:37:55 +00:00 committed by Hartmut Penner
parent d3e9820863
commit 6c2d03d0d1
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2002-01-14 Hartmut Penner <hpenner@de.ibm.com>
* combine.c (simplify_shift_const): Always generate new rtx
for shift expression instead of reusing given expression.
Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/alpha/alpha.c (alpha_expand_mov): Don't call

View File

@ -9516,13 +9516,7 @@ simplify_shift_const (x, code, result_mode, varop, orig_count)
if (new != 0)
x = new;
else
{
if (x == 0 || GET_CODE (x) != code || GET_MODE (x) != shift_mode)
x = gen_rtx_fmt_ee (code, shift_mode, varop, const_rtx);
SUBST (XEXP (x, 0), varop);
SUBST (XEXP (x, 1), const_rtx);
}
x = gen_rtx_fmt_ee (code, shift_mode, varop, const_rtx);
/* If we have an outer operation and we just made a shift, it is
possible that we could have simplified the shift were it not