From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14413 invoked by alias); 25 Mar 2011 12:01:54 -0000 Received: (qmail 14405 invoked by uid 22791); 25 Mar 2011 12:01:54 -0000 X-SWARE-Spam-Status: No, hits=-2.3 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-ww0-f41.google.com (HELO mail-ww0-f41.google.com) (74.125.82.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 25 Mar 2011 12:01:45 +0000 Received: by wwi18 with SMTP id 18so8208846wwi.2 for ; Fri, 25 Mar 2011 05:01:44 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.163.133 with SMTP id a5mr639365wby.73.1301054504243; Fri, 25 Mar 2011 05:01:44 -0700 (PDT) Received: by 10.227.64.142 with HTTP; Fri, 25 Mar 2011 05:01:44 -0700 (PDT) In-Reply-To: References: <20110325083753.c2be7958.basile@starynkevitch.net> Date: Fri, 25 Mar 2011 12:17:00 -0000 Message-ID: Subject: Re: Serializing mixed gimple data from a plugin in LTO? From: Richard Guenther To: Diego Novillo Cc: Basile Starynkevitch , gcc@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2011-03/txt/msg00395.txt.bz2 On Fri, Mar 25, 2011 at 12:52 PM, Diego Novillo wrote: > On Fri, Mar 25, 2011 at 06:06, Richard Guenther > wrote: > >> You are not allowed to piggy-back on statements but only global things >> like cgraph and varpool. =A0There is no way to transition data from befo= re >> LTO to after associated with statements. =A0And there never will be. > > But one could write out a table indexed by gimple statement uid. =A0That > would allow the pass to reconstruct the statement metadata on the way > in. That's true. You still have to shove your data through WPA stage though (which doesn't have stmts). Richard.