change in_expr_list_p to in_insn_list_p

gcc/ChangeLog:

2015-05-08  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
	* cfgrtl.c (can_delete_label_p): Adjust.
	* rtl.h: likewise.

From-SVN: r222938
This commit is contained in:
Trevor Saunders 2015-05-09 04:15:52 +00:00 committed by Trevor Saunders
parent ecb44bc9a2
commit 0d53e74ecf
4 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
* cfgrtl.c (can_delete_label_p): Adjust.
* rtl.h: likewise.
2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* reorg.c (stop_search_p): Change argument to rtx_insn *.

View File

@ -145,7 +145,7 @@ can_delete_label_p (const rtx_code_label *label)
return (!LABEL_PRESERVE_P (label)
/* User declared labels must be preserved. */
&& LABEL_NAME (label) == 0
&& !in_expr_list_p (forced_labels, label));
&& !in_insn_list_p (forced_labels, label));
}
/* Delete INSN by patching it out. */

View File

@ -2922,7 +2922,7 @@ extern unsigned hash_rtx_cb (const_rtx, machine_mode, int *, int *,
extern rtx regno_use_in (unsigned int, rtx);
extern int auto_inc_p (const_rtx);
extern int in_expr_list_p (const_rtx, const_rtx);
extern bool in_insn_list_p (const rtx_insn_list *, const rtx_insn *);
extern void remove_node_from_expr_list (const_rtx, rtx_expr_list **);
extern void remove_node_from_insn_list (const rtx_insn *, rtx_insn_list **);
extern int loc_mentioned_in_p (rtx *, const_rtx);

View File

@ -2205,16 +2205,16 @@ remove_reg_equal_equiv_notes_for_regno (unsigned int regno)
return 1 if it is found. A simple equality test is used to determine if
NODE matches. */
int
in_expr_list_p (const_rtx listp, const_rtx node)
bool
in_insn_list_p (const rtx_insn_list *listp, const rtx_insn *node)
{
const_rtx x;
for (x = listp; x; x = XEXP (x, 1))
if (node == XEXP (x, 0))
return 1;
return true;
return 0;
return false;
}
/* Search LISTP (an EXPR_LIST) for an entry whose first operand is NODE and