From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8244 invoked by alias); 4 Mar 2011 15:15:00 -0000 Received: (qmail 8231 invoked by uid 22791); 4 Mar 2011 15:14:58 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-iw0-f175.google.com (HELO mail-iw0-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Mar 2011 15:14:51 +0000 Received: by iwn10 with SMTP id 10so2267676iwn.20 for ; Fri, 04 Mar 2011 07:14:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.43.60.132 with SMTP id ws4mr891973icb.143.1299251690103; Fri, 04 Mar 2011 07:14:50 -0800 (PST) Received: by 10.231.10.201 with HTTP; Fri, 4 Mar 2011 07:14:50 -0800 (PST) In-Reply-To: <20110304151007.GG30899@tyan-ft48-01.lab.bos.redhat.com> References: <20110304144954.GE30899@tyan-ft48-01.lab.bos.redhat.com> <20110304151007.GG30899@tyan-ft48-01.lab.bos.redhat.com> Date: Fri, 04 Mar 2011 15:15:00 -0000 Message-ID: Subject: Re: [2/2] Reducing the overhead of dwarf2 location tracking From: Richard Guenther To: Jakub Jelinek Cc: gcc-patches@gcc.gnu.org, patches@linaro.org, richard.sandiford@linaro.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes 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: 2011-03/txt/msg00207.txt.bz2 On Fri, Mar 4, 2011 at 4:10 PM, Jakub Jelinek wrote: > On Fri, Mar 04, 2011 at 04:00:06PM +0100, Richard Guenther wrote: >> But then location lists for those variables depend on the function conte= xt >> and cannot be shared for different callers. =A0Am I missing something? > > Sure, they can't be shared between different functions. =A0If Richard's p= atch > does that, it is wrong. > >> Likewise I don't see how they could be shared for multiple inline instan= ces >> in the same function. > > But there is no reason why it can't be shared within one function, across > many inline instances. =A0There is just a single nonlocalized decl in all > those cases you cache, and even if it appears in multiple BLOCKs > BLOCK_NONLOCALIZED_VARS, VAR_LOCATION notes referencing it are still > all queued for that DECL_UID from the whole function and any time you > want to create a location list from what has been queued in the VAR_LOCAT= ION > notes, you will get the same list. Ah, ok - that makes sense. We have a single location list covering all BLOCKs where the decl appears in BLOCK_NONLOCALIZED_VARS. Somehow I thought this would already happen. Richard. > =A0 =A0 =A0 =A0Jakub >