cse.c (rtx_cost): Remove multiplication by power of 2 special casing.
authorDavid S. Miller <davem@redhat.com>
Fri, 10 May 2002 18:58:00 +0000 (11:58 -0700)
committerDavid S. Miller <davem@gcc.gnu.org>
Fri, 10 May 2002 18:58:00 +0000 (11:58 -0700)
2002-05-10  David S. Miller  <davem@redhat.com>

* cse.c (rtx_cost): Remove multiplication by power of 2 special
casing.

From-SVN: r53369

gcc/ChangeLog
gcc/cse.c

index 097888b3fec2c380885a00f0fb6a0a3ec56e3812..aa0ed6f32ca0a853f7c59ce00fae73ae765e434f 100644 (file)
@@ -1,3 +1,8 @@
+2002-05-10  David S. Miller  <davem@redhat.com>
+
+       * cse.c (rtx_cost): Remove multiplication by power of 2 special
+       casing.
+
 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
 
        * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
index c292c5202400a3b82de3454ed729d96ad3e2918d..b13de96cc40af11bab38e8b7393685abd58b8c70 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -842,13 +842,7 @@ rtx_cost (x, outer_code)
   switch (code)
     {
     case MULT:
-      /* Count multiplication by 2**n as a shift,
-        because if we are considering it, we would output it as a shift.  */
-      if (GET_CODE (XEXP (x, 1)) == CONST_INT
-         && exact_log2 (INTVAL (XEXP (x, 1))) >= 0)
-       total = 2;
-      else
-       total = COSTS_N_INSNS (5);
+      total = COSTS_N_INSNS (5);
       break;
     case DIV:
     case UDIV: