From: David S. Miller Date: Fri, 10 May 2002 18:58:00 +0000 (-0700) Subject: cse.c (rtx_cost): Remove multiplication by power of 2 special casing. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6c45cb0da4af9804a455bc701cbe7a87eec98990;p=gcc.git cse.c (rtx_cost): Remove multiplication by power of 2 special casing. 2002-05-10 David S. Miller * cse.c (rtx_cost): Remove multiplication by power of 2 special casing. From-SVN: r53369 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 097888b3fec..aa0ed6f32ca 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-05-10 David S. Miller + + * cse.c (rtx_cost): Remove multiplication by power of 2 special + casing. + 2002-05-10 Rainer Orth * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and diff --git a/gcc/cse.c b/gcc/cse.c index c292c520240..b13de96cc40 100644 --- 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: