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]

notice_stack_pointer_modification_1 fix


Hi
notice_stack_pointer_modification_1 misses PRE/POST_MODIFY causing
missoptimizations on x86_64 target.

Wed Dec 13 15:58:42 MET 2000  Jan Hubicka  <jh@suse.cz>

	* flow.c (notice_stack_pointer_modification_1): Notice midifications
	using PRE_MODIFY and POST_MODIFY.

Index: gcc/gcc/flow.c
===================================================================
RCS file: /home/cvs/Repository/gcc/gcc/flow.c,v
retrieving revision 1.5
diff -c -3 -p -r1.5 flow.c
*** gcc/gcc//flow.c	2000/12/07 17:40:42	1.5
--- gcc/gcc//flow.c	2000/12/13 14:37:32
*************** notice_stack_pointer_modification_1 (x, 
*** 3159,3164 ****
--- 3159,3166 ----
        || (GET_CODE (x) == MEM
  	  && (GET_CODE (XEXP (x, 0)) == PRE_DEC
  	      || GET_CODE (XEXP (x, 0)) == PRE_INC
+ 	      || GET_CODE (XEXP (x, 0)) == PRE_MODIFY
+ 	      || GET_CODE (XEXP (x, 0)) == POST_MODIFY
  	      || GET_CODE (XEXP (x, 0)) == POST_DEC
  	      || GET_CODE (XEXP (x, 0)) == POST_INC)
  	  && XEXP (XEXP (x, 0), 0) == stack_pointer_rtx))

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