From 6c45cb0da4af9804a455bc701cbe7a87eec98990 Mon Sep 17 00:00:00 2001 From: "David S. Miller" Date: Fri, 10 May 2002 11:58:00 -0700 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/cse.c | 8 +------- 2 files changed, 6 insertions(+), 7 deletions(-) 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: -- 2.30.2