cselib_record_sets_hook takes an rtx_insn
gcc/ * 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 *. From-SVN: r214535
This commit is contained in:
parent
1130d5e3e3
commit
466659612b
|
@ -1,3 +1,14 @@
|
|||
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_"
|
||||
|
|
|
@ -258,7 +258,7 @@ void (*cselib_discard_hook) (cselib_val *);
|
|||
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) \
|
||||
|
|
|
@ -65,7 +65,7 @@ enum cselib_record_what
|
|||
};
|
||||
|
||||
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,
|
||||
|
|
|
@ -6464,9 +6464,8 @@ prepare_call_arguments (basic_block bb, rtx_insn *insn)
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue