From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10641 invoked by alias); 2 Sep 2014 14:59:19 -0000 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 Received: (qmail 10618 invoked by uid 89); 2 Sep 2014 14:59:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.0 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 02 Sep 2014 14:59:18 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s82Ex3GJ023428 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Sep 2014 10:59:03 -0400 Received: from [10.3.228.116] (vpn-228-116.phx2.redhat.com [10.3.228.116]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s82Ex22X026286; Tue, 2 Sep 2014 10:59:03 -0400 Message-ID: <1409669743.19403.13.camel@surprise> Subject: Re: [PATCH] Force rtl templates to be inlined From: David Malcolm To: Andi Kleen Cc: gcc-patches@gcc.gnu.org, Andi Kleen Date: Tue, 02 Sep 2014 14:59:00 -0000 In-Reply-To: <1409641427-29875-1-git-send-email-andi@firstfloor.org> References: <1409641427-29875-1-git-send-email-andi@firstfloor.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2014-09/txt/msg00139.txt.bz2 On Tue, 2014-09-02 at 00:03 -0700, Andi Kleen wrote: > From: Andi Kleen > > I noticed that with the trunk compiler a range of the new rtl > inlines show up as hot in a profiler during stage1. I think > that happens because stage1 is not using optimization > and does not inline plain "inline". And these rtl inlines > are very frequently called. Sorry about that. FWIW I'm working on some followup patches for the rtx-classes work that ought to eliminate some of the is_a_helper<> calls; I hope to post them in the next few days. [1] I suspect the bulk of them currently are coming from the safe_as_a calls within NEXT_INSN and PREV_INSN; do you happen to have information handy on that? Dave [1] (I have to take the rest of today off for a family matter).