aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>2001-02-06 12:55:06 +0000
committerRichard Kenner <kenner@gcc.gnu.org>2001-02-06 07:55:06 -0500
commit05bd3d4156671cc44d299e8945112586d769f2c6 (patch)
treef39dbd279c274ba84ca84f7fc4136e3159c65db4 /gcc/cse.c
parentd14057222fec681710cd1b1ac1d47478c0466bfb (diff)
downloadgcc-05bd3d4156671cc44d299e8945112586d769f2c6.zip
gcc-05bd3d4156671cc44d299e8945112586d769f2c6.tar.gz
gcc-05bd3d4156671cc44d299e8945112586d769f2c6.tar.bz2
* cse.c (find_best_addr): Fix typo in computing cost.
From-SVN: r39490
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 7b86d51..e69bb63 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -2975,7 +2975,7 @@ find_best_addr (insn, loc, mode)
|| exp_equiv_p (p->exp, p->exp, 1, 0))
&& ((exp_cost = address_cost (p->exp, mode)) < best_addr_cost
|| (exp_cost == best_addr_cost
- && (p->cost + 1) >> 1 < best_rtx_cost)))
+ && ((p->cost + 1) >> 1) > best_rtx_cost)))
{
found_better = 1;
best_addr_cost = exp_cost;