From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24074 invoked by alias); 1 Sep 2012 14:32:35 -0000 Received: (qmail 23972 invoked by uid 22791); 1 Sep 2012 14:32:34 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_ZJ X-Spam-Check-By: sourceware.org Received: from mail-pb0-f47.google.com (HELO mail-pb0-f47.google.com) (209.85.160.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 01 Sep 2012 14:32:20 +0000 Received: by pbcwy7 with SMTP id wy7so6029717pbc.20 for ; Sat, 01 Sep 2012 07:32:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.85.4 with SMTP id d4mr21973427paz.11.1346509939758; Sat, 01 Sep 2012 07:32:19 -0700 (PDT) Received: by 10.66.20.232 with HTTP; Sat, 1 Sep 2012 07:32:19 -0700 (PDT) In-Reply-To: References: Date: Sat, 01 Sep 2012 14:32:00 -0000 Message-ID: Subject: Re: [PATCH, middle-end]: Introduce TARGET_LEGITIMATE_COMBINED_INSN target hook From: Uros Bizjak To: gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-09/txt/msg00010.txt.bz2 On Sun, Aug 26, 2012 at 11:00 AM, Uros Bizjak 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 > > * 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. I have committed the patch to mainline SVN, since the patch is non-algorithmic and has no impact on non-x86 targets. Uros.