+2014-08-26 David Malcolm <dmalcolm@redhat.com>
+
+ * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
+ rtx_insn **.
+ (check_for_inc_dec): Strengthen param "insn" from rtx to
+ rtx_insn *.
+
+ * cselib.h (cselib_process_insn): Likewise.
+
+ * cselib.c (cselib_record_sets): Likewise.
+ (cselib_process_insn): Likewise.
+
+ * dse.c (struct insn_info): Likewise for field "insn".
+ (check_for_inc_dec_1): Likewise for local "insn".
+ (check_for_inc_dec): Likewise for param "insn".
+ (scan_insn): Likewise.
+ (dse_step1): Likewise for local "insn".
+
+ * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
+ rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
+
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* sched-int.h (struct _dep): Strengthen fields "pro" and "con"
static void cselib_invalidate_regno (unsigned int, enum machine_mode);
static void cselib_invalidate_mem (rtx);
static void cselib_record_set (rtx, cselib_val *, cselib_val *);
-static void cselib_record_sets (rtx);
+static void cselib_record_sets (rtx_insn *);
struct expand_value_data
{
/* Record the effects of any sets and autoincs in INSN. */
static void
-cselib_record_sets (rtx insn)
+cselib_record_sets (rtx_insn *insn)
{
int n_sets = 0;
int i;
/* Record the effects of INSN. */
void
-cselib_process_insn (rtx insn)
+cselib_process_insn (rtx_insn *insn)
{
int i;
rtx x;
extern void cselib_init (int);
extern void cselib_clear_table (void);
extern void cselib_finish (void);
-extern void cselib_process_insn (rtx);
+extern void cselib_process_insn (rtx_insn *);
extern bool fp_setter_insn (rtx);
extern enum machine_mode cselib_reg_set_mode (const_rtx);
extern int rtx_equal_for_cselib_p (rtx, rtx);
bool contains_cselib_groups;
/* The insn. */
- rtx insn;
+ rtx_insn *insn;
/* The list of mem sets or mem clobbers that are contained in this
insn. If the insn is deletable, it contains only one mem set.
static bool
check_for_inc_dec_1 (insn_info_t insn_info)
{
- rtx insn = insn_info->insn;
+ rtx_insn *insn = insn_info->insn;
rtx note = find_reg_note (insn, REG_INC, NULL_RTX);
if (note)
return for_each_inc_dec (&insn, emit_inc_dec_insn_before, insn_info) == 0;
and add a parameter to this function so that it can be passed down in
insn_info.fixed_regs_live. */
bool
-check_for_inc_dec (rtx insn)
+check_for_inc_dec (rtx_insn *insn)
{
struct insn_info insn_info;
rtx note;
non-register target. */
static void
-scan_insn (bb_info_t bb_info, rtx insn)
+scan_insn (bb_info_t bb_info, rtx_insn *insn)
{
rtx body;
insn_info_t insn_info = (insn_info_t) pool_alloc (insn_info_pool);
if (bb->index >= NUM_FIXED_BLOCKS)
{
- rtx insn;
+ rtx_insn *insn;
cse_store_info_pool
= create_alloc_pool ("cse_store_info_pool",
for_each_inc_dec. */
typedef int (*for_each_inc_dec_fn) (rtx mem, rtx op, rtx dest, rtx src,
rtx srcoff, void *arg);
-extern int for_each_inc_dec (rtx *, for_each_inc_dec_fn, void *arg);
+extern int for_each_inc_dec (rtx_insn **, for_each_inc_dec_fn, void *arg);
typedef int (*rtx_equal_p_callback_function) (const_rtx *, const_rtx *,
rtx *, rtx *);
extern unsigned hash_rtx (const_rtx x, enum machine_mode, int *, int *, bool);
/* In dse.c */
-extern bool check_for_inc_dec (rtx insn);
+extern bool check_for_inc_dec (rtx_insn *insn);
/* In jump.c */
extern int comparison_dominates_p (enum rtx_code, enum rtx_code);
return 0;
}
-/* Traverse *X looking for MEMs, and for autoinc operations within
+/* Traverse *INSN looking for MEMs, and for autoinc operations within
them. For each such autoinc operation found, call FN, passing it
the innermost enclosing MEM, the operation itself, the RTX modified
by the operation, two RTXs (the second may be NULL) that, once
for_each_inc_dec. */
int
-for_each_inc_dec (rtx *x,
+for_each_inc_dec (rtx_insn **insn,
for_each_inc_dec_fn fn,
void *arg)
{
data.arg = arg;
data.mem = NULL;
- return for_each_rtx (x, for_each_inc_dec_find_mem, &data);
+ return for_each_rtx_in_insn (insn, for_each_inc_dec_find_mem, &data);
}
\f