combine.c (simplify_shift_const): Always generate new rtx for shift expression instea...
authorHartmut Penner <hpenner@de.ibm.com>
Mon, 14 Jan 2002 15:37:55 +0000 (15:37 +0000)
committerHartmut Penner <hpenner@gcc.gnu.org>
Mon, 14 Jan 2002 15:37:55 +0000 (15:37 +0000)
* combine.c (simplify_shift_const): Always generate new rtx
  for shift expression instead of reusing given expression.

From-SVN: r48831

gcc/ChangeLog
gcc/combine.c

index 60545d0797680ddd2273b6856d83f5520ebd8dcb..b65778b679b5ad35e17463031c89fdc116004c7e 100644 (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
index 32120e53ccf3ec7b302b6ddbaf368b66b5624b0a..74f426c0cf0beec8e8e6aa8da2c32697e167dba3 100644 (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