This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH ping, middle-end]: Introduce TARGET_LEGITIMATE_COMBINED_INSN target hook
On Sun, Aug 26, 2012 at 11:00 AM, Uros Bizjak <ubizjak@gmail.com> wrote:
> Actually a v3 of TARGET_REJECT_COMBINED_INSN target hook.
>
> Changes:
> - rename the hook and reverse the return value
>
> 2012-08-25 Uros Bizjak <ubizjak@gmail.com>
>
> * target.def (legitimate_combined_insn): New target hook.
> * doc/tm.texi.in (TARGET_LEGITIMATE_COMBINED_INSN): New hook.
> * doc/tm.texi: Regenerated.
> * combine.c (recog_for_combine): Call targetm.legitimate_combined_insn
> to allow targets to reject combined insn.
> * hooks.h (hook_bool_rtx_true): New.
> * hooks.c (hook_bool_rtx_true): Ditto.
>
> Bootstrapped and regression tested on x86_64-pc-linux-gnu {,-m32},
> also with target-dependant x86 patch that implements the hook.
Ping.
This pstch will really help reload for x86 and its dedicated registers [1].
[1] http://gcc.gnu.org/ml/gcc-patches/2012-08/msg01598.html
Uros.