aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@redhat.com>2002-05-10 11:58:00 -0700
committerDavid S. Miller <davem@gcc.gnu.org>2002-05-10 11:58:00 -0700
commit6c45cb0da4af9804a455bc701cbe7a87eec98990 (patch)
tree772e88648044668b93689ee59be811586e4f8a75 /gcc/cse.c
parent85d7d3b09cb826d301fc60e31c0f6ec689fd2a08 (diff)
downloadgcc-6c45cb0da4af9804a455bc701cbe7a87eec98990.zip
gcc-6c45cb0da4af9804a455bc701cbe7a87eec98990.tar.gz
gcc-6c45cb0da4af9804a455bc701cbe7a87eec98990.tar.bz2
cse.c (rtx_cost): Remove multiplication by power of 2 special casing.
2002-05-10 David S. Miller <davem@redhat.com> * cse.c (rtx_cost): Remove multiplication by power of 2 special casing. From-SVN: r53369
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index c292c52..b13de96 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: