diff options
author | Bernd Schmidt <bernds@redhat.co.uk> | 2000-09-12 08:39:36 +0000 |
---|---|---|
committer | Bernd Schmidt <crux@gcc.gnu.org> | 2000-09-12 08:39:36 +0000 |
commit | f1c1dfc3899118a8cc7151550dd8917909b9c112 (patch) | |
tree | f237fb1035a9a711c819be217b1535718637090c /gcc/rtl.h | |
parent | a6c8d25340249a8a41661a37467ebf73fc226f20 (diff) | |
download | gcc-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.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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)); |