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] 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"


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