Commit 6c2d03d0 by Hartmut Penner Committed by Hartmut Penner

combine.c (simplify_shift_const): Always generate new rtx for shift expression…

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
parent d3e98208
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> Mon Jan 14 07:08:55 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* config/alpha/alpha.c (alpha_expand_mov): Don't call * config/alpha/alpha.c (alpha_expand_mov): Don't call
......
...@@ -9516,14 +9516,8 @@ simplify_shift_const (x, code, result_mode, varop, orig_count) ...@@ -9516,14 +9516,8 @@ simplify_shift_const (x, code, result_mode, varop, orig_count)
if (new != 0) if (new != 0)
x = new; x = new;
else else
{
if (x == 0 || GET_CODE (x) != code || GET_MODE (x) != shift_mode)
x = gen_rtx_fmt_ee (code, shift_mode, varop, const_rtx); x = gen_rtx_fmt_ee (code, shift_mode, varop, const_rtx);
SUBST (XEXP (x, 0), varop);
SUBST (XEXP (x, 1), const_rtx);
}
/* If we have an outer operation and we just made a shift, it is /* 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 possible that we could have simplified the shift were it not
for the outer operation. So try to do the simplification for the outer operation. So try to do the simplification
......
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