aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
authorBernd Schmidt <bernds@redhat.co.uk>2000-09-12 08:39:36 +0000
committerBernd Schmidt <crux@gcc.gnu.org>2000-09-12 08:39:36 +0000
commitf1c1dfc3899118a8cc7151550dd8917909b9c112 (patch)
treef237fb1035a9a711c819be217b1535718637090c /gcc/rtl.h
parenta6c8d25340249a8a41661a37467ebf73fc226f20 (diff)
downloadgcc-f1c1dfc3899118a8cc7151550dd8917909b9c112.zip
gcc-f1c1dfc3899118a8cc7151550dd8917909b9c112.tar.gz
gcc-f1c1dfc3899118a8cc7151550dd8917909b9c112.tar.bz2
Fix hard reg cost calculations in CSE; some minor cleanups
From-SVN: r36354
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index a2f9087..37acbd5 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1633,6 +1633,16 @@ extern void push_obstacks PARAMS ((struct obstack *,
struct obstack *));
/* In cse.c */
struct cse_basic_block_data;
+
+/* Return the right cost to give to an operation
+ to make the cost of the corresponding register-to-register instruction
+ N times that of a fast register-to-register instruction. */
+#define COSTS_N_INSNS(N) ((N) * 4)
+
+/* Maximum cost of a rtl expression. This value has the special meaning
+ not to use an rtx with this cost under any circumstances. */
+#define MAX_COST INT_MAX
+
extern int rtx_cost PARAMS ((rtx, enum rtx_code));
extern int address_cost PARAMS ((rtx, enum machine_mode));
extern void delete_trivially_dead_insns PARAMS ((rtx, int));