This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: patch: RTL loop optimizer - new target hook in doloop_valid_p
- From: Richard Henderson <rth at redhat dot com>
- To: Adrian Straetling <straetling at de dot ibm dot com>
- Cc: gcc-patches at gcc dot gnu dot org, dje at gcc dot gnu dot org
- Date: Wed, 18 May 2005 12:48:18 -0700
- Subject: Re: patch: RTL loop optimizer - new target hook in doloop_valid_p
- References: <20050518123021.GA30757@de.ibm.com>
On Wed, May 18, 2005 at 02:30:21PM +0200, Adrian Straetling wrote:
> * loop-doloop.c: Include "target.h".
> (doloop_valid_p): Move tests to function in targhooks.c.
> * target.h: (struct gcc_target): New target hook
> "insn_valid_within_doloop".
> * target-def.h: Define default value for "insn_valid_within_doloop".
> (TARGET_INITIALIZER): Insert new target hook into initializer.
> * targhooks.c: (default_insn_valid_within_doloop): New function.
> * targhooks.h: Declare "default_insn_valid_within_doloop".
> * hooks.c: (hook_bool_rtx_true): New function.
> * hooks.h: Declare "hook_bool_rtx_true".
> * doc/tm.texi: Add documentation for new target hook.
Ok. I should add the same hook_bool_rtx_true for ia64...
Hint to an rs6000 maintainer to move the indirect/tablejump
check to the rs6000 back end.
r~