aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r--gcc/rtl.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h
index 4f126865..5323dcc 100644
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1196,9 +1196,10 @@ costs_add_n_insns (struct full_rtx_costs *c, int n)
}
extern void init_rtlanal (void);
-extern int rtx_cost (rtx, enum rtx_code, bool);
+extern int rtx_cost (rtx, enum rtx_code, int, bool);
extern int address_cost (rtx, enum machine_mode, addr_space_t, bool);
-extern void get_full_rtx_cost (rtx, enum rtx_code, struct full_rtx_costs *);
+extern void get_full_rtx_cost (rtx, enum rtx_code, int,
+ struct full_rtx_costs *);
extern unsigned int subreg_lsb (const_rtx);
extern unsigned int subreg_lsb_1 (enum machine_mode, enum machine_mode,
unsigned int);
@@ -1224,7 +1225,7 @@ extern int low_bitmask_len (enum machine_mode, unsigned HOST_WIDE_INT);
static inline int
set_rtx_cost (rtx x, bool speed_p)
{
- return rtx_cost (x, INSN, speed_p);
+ return rtx_cost (x, INSN, 4, speed_p);
}
/* Like set_rtx_cost, but return both the speed and size costs in C. */
@@ -1232,7 +1233,7 @@ set_rtx_cost (rtx x, bool speed_p)
static inline void
get_full_set_rtx_cost (rtx x, struct full_rtx_costs *c)
{
- get_full_rtx_cost (x, INSN, c);
+ get_full_rtx_cost (x, INSN, 4, c);
}
/* Return the cost of moving X into a register, relative to the cost
@@ -1242,7 +1243,7 @@ get_full_set_rtx_cost (rtx x, struct full_rtx_costs *c)
static inline int
set_src_cost (rtx x, bool speed_p)
{
- return rtx_cost (x, SET, speed_p);
+ return rtx_cost (x, SET, 1, speed_p);
}
/* Like set_src_cost, but return both the speed and size costs in C. */
@@ -1250,7 +1251,7 @@ set_src_cost (rtx x, bool speed_p)
static inline void
get_full_set_src_cost (rtx x, struct full_rtx_costs *c)
{
- get_full_rtx_cost (x, SET, c);
+ get_full_rtx_cost (x, SET, 1, c);
}
#endif