From: davem Date: Fri, 10 May 2002 18:58:00 +0000 (+0000) Subject: 2002-05-10 David S. Miller X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3abb3b64b0b99e2b1de3568f7c613fcca0711841;p=thirdparty%2Fgcc.git 2002-05-10 David S. Miller * cse.c (rtx_cost): Remove multiplication by power of 2 special casing. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53369 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 097888b3fec2..aa0ed6f32ca0 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 c292c5202400..b13de96cc40a 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: