Commit 0923e946 by Trevor Saunders Committed by Trevor Saunders

provide default for INSN_SETS_ARE_DELAYED

gcc/ChangeLog:

2015-04-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>

	* defaults.h (INSN_SETS_ARE_DELAYED): New definition.
	* reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
	* resource.c (mark_set_resources): Likewise.

From-SVN: r222303
parent 618f4073
2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org> 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* defaults.h (INSN_SETS_ARE_DELAYED): New definition.
* reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
* resource.c (mark_set_resources): Likewise.
2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
* caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0. * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
* cfgcleanup.c (flow_find_cross_jump): Likewise. * cfgcleanup.c (flow_find_cross_jump): Likewise.
(flow_find_head_matching_sequence): Likewise. (flow_find_head_matching_sequence): Likewise.
......
...@@ -1201,6 +1201,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see ...@@ -1201,6 +1201,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
#define DEFAULT_PCC_STRUCT_RETURN 1 #define DEFAULT_PCC_STRUCT_RETURN 1
#endif #endif
#ifndef INSN_SETS_ARE_DELAYED
#define INSN_SETS_ARE_DELAYED(INSN) false
#endif
#ifdef GCC_INSN_FLAGS_H #ifdef GCC_INSN_FLAGS_H
/* Dependent default target macro definitions /* Dependent default target macro definitions
......
...@@ -1571,10 +1571,8 @@ redundant_insn (rtx insn, rtx_insn *target, rtx delay_list) ...@@ -1571,10 +1571,8 @@ redundant_insn (rtx insn, rtx_insn *target, rtx delay_list)
slots because it is difficult to track its resource needs slots because it is difficult to track its resource needs
correctly. */ correctly. */
#ifdef INSN_SETS_ARE_DELAYED
if (INSN_SETS_ARE_DELAYED (seq->insn (0))) if (INSN_SETS_ARE_DELAYED (seq->insn (0)))
return 0; return 0;
#endif
#ifdef INSN_REFERENCES_ARE_DELAYED #ifdef INSN_REFERENCES_ARE_DELAYED
if (INSN_REFERENCES_ARE_DELAYED (seq->insn (0))) if (INSN_REFERENCES_ARE_DELAYED (seq->insn (0)))
...@@ -1673,10 +1671,8 @@ redundant_insn (rtx insn, rtx_insn *target, rtx delay_list) ...@@ -1673,10 +1671,8 @@ redundant_insn (rtx insn, rtx_insn *target, rtx delay_list)
/* If this is an INSN or JUMP_INSN with delayed effects, it /* If this is an INSN or JUMP_INSN with delayed effects, it
is hard to track the resource needs properly, so give up. */ is hard to track the resource needs properly, so give up. */
#ifdef INSN_SETS_ARE_DELAYED
if (INSN_SETS_ARE_DELAYED (control)) if (INSN_SETS_ARE_DELAYED (control))
return 0; return 0;
#endif
#ifdef INSN_REFERENCES_ARE_DELAYED #ifdef INSN_REFERENCES_ARE_DELAYED
if (INSN_REFERENCES_ARE_DELAYED (control)) if (INSN_REFERENCES_ARE_DELAYED (control))
......
...@@ -696,11 +696,9 @@ mark_set_resources (rtx x, struct resources *res, int in_dest, ...@@ -696,11 +696,9 @@ mark_set_resources (rtx x, struct resources *res, int in_dest,
/* An insn consisting of just a CLOBBER (or USE) is just for flow /* An insn consisting of just a CLOBBER (or USE) is just for flow
and doesn't actually do anything, so we ignore it. */ and doesn't actually do anything, so we ignore it. */
#ifdef INSN_SETS_ARE_DELAYED
if (mark_type != MARK_SRC_DEST_CALL if (mark_type != MARK_SRC_DEST_CALL
&& INSN_SETS_ARE_DELAYED (as_a <rtx_insn *> (x))) && INSN_SETS_ARE_DELAYED (as_a <rtx_insn *> (x)))
return; return;
#endif
x = PATTERN (x); x = PATTERN (x);
if (GET_CODE (x) != USE && GET_CODE (x) != CLOBBER) if (GET_CODE (x) != USE && GET_CODE (x) != CLOBBER)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment