From: Hartmut Penner Date: Mon, 14 Jan 2002 15:37:55 +0000 (+0000) Subject: combine.c (simplify_shift_const): Always generate new rtx for shift expression instea... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c2d03d0d1cbd6a2bf8a4078d5d256c6edebe5fa;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 60545d07976..b65778b679b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-01-14 Hartmut Penner + + * 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 * config/alpha/alpha.c (alpha_expand_mov): Don't call diff --git a/gcc/combine.c b/gcc/combine.c index 32120e53ccf..74f426c0cf0 100644 --- a/gcc/combine.c +++ b/gcc/combine.c @@ -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