aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@vlsi1.ultra.nyu.edu>1999-12-18 21:33:23 +0000
committerRichard Kenner <kenner@gcc.gnu.org>1999-12-18 16:33:23 -0500
commitd4b60170fd601e84cdafca12ea3365488ee93635 (patch)
treeb29d6812261abeb25b182a176f35382f12cb98bd /gcc/cse.c
parent3f0aabf20a84ccd50d38dca8f252f887558d31ff (diff)
downloadgcc-d4b60170fd601e84cdafca12ea3365488ee93635.zip
gcc-d4b60170fd601e84cdafca12ea3365488ee93635.tar.gz
gcc-d4b60170fd601e84cdafca12ea3365488ee93635.tar.bz2
alias.c: Minor reformatting.
* alias.c: Minor reformatting. * flow.c: Likewise. * regs.h: Likewise. * stor-layout.c: Likewise. * fold-const.c: Likewise. (OVERFLOW_SUM_SIGN): Renamed from overflow_sum_sign. (struct cb_args, const_binop_1, const_binop): Pass type of arg, not arg itself. (size_int_wide): Cache nodes even if garbage collecting. (twoval_comparison_p): Reenable SAVE_EXPR case if operand of SAVE_EXPR has no side effects. * cse.c: Move a comment. * tree.c: Minor reformatting. (int_size_in_bytes): Return -1 if constant overflows. * reload.c (combine_reloads): Do nothing if no output reload From-SVN: r31017
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index 8c03fce..c27c8fd 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -722,11 +722,6 @@ dump_class (classp)
}
}
-/* Return an estimate of the cost of computing rtx X.
- One use is in cse, to decide which expression to keep in the hash table.
- Another is in rtl generation, to pick the cheapest way to multiply.
- Other uses like the latter are expected in the future. */
-
/* Internal function, to compute cost when X is not a register; called
from COST macro to keep it simple. */
@@ -755,6 +750,11 @@ notreg_cost (x)
#define COSTS_N_INSNS(N) ((N) * 4 - 2)
+/* Return an estimate of the cost of computing rtx X.
+ One use is in cse, to decide which expression to keep in the hash table.
+ Another is in rtl generation, to pick the cheapest way to multiply.
+ Other uses like the latter are expected in the future. */
+
int
rtx_cost (x, outer_code)
rtx x;