+2014-08-26 David Malcolm <dmalcolm@redhat.com>
+
+ * cselib.h (cselib_record_sets_hook): Strengthen initial param
+ "insn" from rtx to rtx_insn *.
+
+ * cselib.c (cselib_record_sets_hook): Likewise.
+
+ * var-tracking.c (add_with_sets): Likewise, renaming back from
+ "uncast_insn" to "insn" and eliminating the checked cast from rtx
+ to rtx_insn *.
+
2014-08-26 David Malcolm <dmalcolm@redhat.com>
* basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
represented in the array sets[n_sets]. new_val_min can be used to
tell whether values present in sets are introduced by this
instruction. */
-void (*cselib_record_sets_hook) (rtx insn, struct cselib_set *sets,
+void (*cselib_record_sets_hook) (rtx_insn *insn, struct cselib_set *sets,
int n_sets);
#define PRESERVED_VALUE_P(RTX) \
};
extern void (*cselib_discard_hook) (cselib_val *);
-extern void (*cselib_record_sets_hook) (rtx insn, struct cselib_set *sets,
+extern void (*cselib_record_sets_hook) (rtx_insn *insn, struct cselib_set *sets,
int n_sets);
extern cselib_val *cselib_lookup (rtx, enum machine_mode,
first place, in which case sets and n_sets will be 0). */
static void
-add_with_sets (rtx uncast_insn, struct cselib_set *sets, int n_sets)
+add_with_sets (rtx_insn *insn, struct cselib_set *sets, int n_sets)
{
- rtx_insn *insn = as_a <rtx_insn *> (uncast_insn);
basic_block bb = BLOCK_FOR_INSN (insn);
int n1, n2;
struct count_use_info cui;