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 03/18] Use CONST_INT_P macro.


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

	gcc/ChangeLog:

	* combine-stack-adj.c: Convert GET_CODE (..) == CONST_INT
	to CONST_INT_P (..).

 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/combine-stack-adj.c b/gcc/combine-stack-adj.c
index 3638a1b10ee..f98a0d54c98 100644
--- a/gcc/combine-stack-adj.c
+++ b/gcc/combine-stack-adj.c
@@ -634,8 +634,7 @@ combine_stack_adjustments_for_block (basic_block bb)
 		      && GET_CODE (XEXP (XEXP (dest, 0), 1)) == PLUS
 		      && XEXP (XEXP (XEXP (dest, 0), 1), 0)
 			 == stack_pointer_rtx
-		      && GET_CODE (XEXP (XEXP (XEXP (dest, 0), 1), 1))
-		         == CONST_INT
+		      && CONST_INT_P (XEXP (XEXP (XEXP (dest, 0), 1), 1))
 		      && INTVAL (XEXP (XEXP (XEXP (dest, 0), 1), 1))
 		         == -last_sp_adjust))
 	      && XEXP (XEXP (dest, 0), 0) == stack_pointer_rtx
-- 
2.21.0


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