This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] s390: allow any insn within doloop
- From: Adrian Straetling <straetling at de dot ibm dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Ulrich dot Weigand at de dot ibm dot com
- Date: Wed, 25 May 2005 15:01:48 +0200
- Subject: [patch] s390: allow any insn within doloop
Hi,
attached is a patch that overrides the recently added
TARGET_INSN_VALID_WITHIN_DOLOOP hook to allow any insn in a low-overhead
loop.
Bootstrapped and regtested on mainline for s390 and s390x.
Ok to apply?
Bye,
Adrian
2005-05-25 Adrian Straetling <straetling@de.ibm.com>
Index: gcc/config/s390/s390.c
===================================================================
*** gcc/config/s390/s390.c.orig 2005-05-17 19:25:24.001486453 +0200
--- gcc/config/s390/s390.c 2005-05-17 19:27:56.041486453 +0200
*************** s390_reorg (void)
*** 8251,8256 ****
--- 8251,8259 ----
#undef TARGET_CC_MODES_COMPATIBLE
#define TARGET_CC_MODES_COMPATIBLE s390_cc_modes_compatible
+ #undef TARGET_INSN_VALID_WITHIN_DOLOOP
+ #define TARGET_INSN_VALID_WITHIN_DOLOOP hook_bool_rtx_true
+
struct gcc_target targetm = TARGET_INITIALIZER;
#include "gt-s390.h"