This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH v2 18/18] Use DEBUG_INSN_P macro. Autogenerated patch by running ../contrib/rtl-pred.sh DEBUG_INSN_P


2019-08-05  Arvind Sankar  <nivedita@alum.mit.edu>

	gcc/ChangeLog:

	* reload1.c: Convert GET_CODE (..) == DEBUG_INSN to
	DEBUG_INSN_P (..).
	* reorg.c: Likewise.

 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gcc/reload1.c b/gcc/reload1.c
index 1a68d0567fc..d30badc0c4f 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2850,7 +2850,7 @@ eliminate_regs_1 (rtx x, machine_mode mem_mode, rtx insn,
 		  || known_eq (x_size, new_size))
 	      )
 	    return adjust_address_nv (new_rtx, GET_MODE (x), SUBREG_BYTE (x));
-	  else if (insn && GET_CODE (insn) == DEBUG_INSN)
+	  else if (insn && DEBUG_INSN_P (insn))
 	    return gen_rtx_raw_SUBREG (GET_MODE (x), new_rtx, SUBREG_BYTE (x));
 	  else
 	    return gen_rtx_SUBREG (GET_MODE (x), new_rtx, SUBREG_BYTE (x));
diff --git a/gcc/reorg.c b/gcc/reorg.c
index 79684952595..4ec3d7efea6 100644
--- a/gcc/reorg.c
+++ b/gcc/reorg.c
@@ -1510,7 +1510,7 @@ redundant_insn (rtx insn, rtx_insn *target, const vec<rtx_insn *> &delay_list)
 	  || GET_CODE (pat) == CLOBBER_HIGH)
 	continue;
 
-      if (GET_CODE (trial) == DEBUG_INSN)
+      if (DEBUG_INSN_P (trial))
 	continue;
 
       if (rtx_sequence *seq = dyn_cast <rtx_sequence *> (pat))
@@ -1609,7 +1609,7 @@ redundant_insn (rtx insn, rtx_insn *target, const vec<rtx_insn *> &delay_list)
 	  || GET_CODE (pat) == CLOBBER_HIGH)
 	continue;
 
-      if (GET_CODE (trial) == DEBUG_INSN)
+      if (DEBUG_INSN_P (trial))
 	continue;
 
       if (rtx_sequence *seq = dyn_cast <rtx_sequence *> (pat))
@@ -2047,7 +2047,7 @@ fill_simple_delay_slots (int non_jumps_p)
 		continue;
 
 	      /* And DEBUG_INSNs never go into delay slots.  */
-	      if (GET_CODE (trial) == DEBUG_INSN)
+	      if (DEBUG_INSN_P (trial))
 		continue;
 
 	      /* Check for resource conflict first, to avoid unnecessary
@@ -2174,7 +2174,7 @@ fill_simple_delay_slots (int non_jumps_p)
 		continue;
 
 	      /* And DEBUG_INSNs do not go in delay slots.  */
-	      if (GET_CODE (trial) == DEBUG_INSN)
+	      if (DEBUG_INSN_P (trial))
 		continue;
 
 	      /* If this already has filled delay slots, get the insn needing
@@ -2442,7 +2442,7 @@ fill_slots_from_thread (rtx_jump_insn *insn, rtx condition,
 	  || GET_CODE (pat) == CLOBBER_HIGH)
 	continue;
 
-      if (GET_CODE (trial) == DEBUG_INSN)
+      if (DEBUG_INSN_P (trial))
 	continue;
 
       /* If TRIAL conflicts with the insns ahead of it, we lose.  Also,
-- 
2.21.0


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]