This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
notice_stack_pointer_modification_1 fix
- To: rth at cygnus dot com, gcc-patches at gcc dot gnu dot org, patches at x86-64 dot org
- Subject: notice_stack_pointer_modification_1 fix
- From: Jan Hubicka <jh at suse dot cz>
- Date: Wed, 13 Dec 2000 15:59:55 +0100
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))