From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15344 invoked by alias); 6 May 2011 13:25:15 -0000 Received: (qmail 15324 invoked by uid 22791); 6 May 2011 13:25:13 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,TW_TM,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 06 May 2011 13:24:57 +0000 Received: from hpaq7.eem.corp.google.com (hpaq7.eem.corp.google.com [172.25.149.7]) by smtp-out.google.com with ESMTP id p46DOtQM032615 for ; Fri, 6 May 2011 06:24:55 -0700 Received: from yxm8 (yxm8.prod.google.com [10.190.4.8]) by hpaq7.eem.corp.google.com with ESMTP id p46DOrAs003215 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Fri, 6 May 2011 06:24:54 -0700 Received: by yxm8 with SMTP id 8so1344525yxm.12 for ; Fri, 06 May 2011 06:24:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.200.7 with SMTP id x7mr3314378ybf.298.1304688293520; Fri, 06 May 2011 06:24:53 -0700 (PDT) Received: by 10.151.41.13 with HTTP; Fri, 6 May 2011 06:24:53 -0700 (PDT) In-Reply-To: References: <20110429025248.90D61B21AB@azwildcat.mtv.corp.google.com> Date: Fri, 06 May 2011 13:38:00 -0000 Message-ID: Subject: Re: [google] Patch to support calling multi-versioned functions via new GCC builtin. (issue4440078) From: Diego Novillo To: Richard Guenther Cc: Xinliang David Li , Sriraman Tallam , reply@codereview.appspotmail.com, gcc-patches@gcc.gnu.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-System-Of-Record: true 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-05/txt/msg00521.txt.bz2 On Fri, May 6, 2011 at 04:55, Richard Guenther wrote: > On Thu, May 5, 2011 at 7:02 PM, Xinliang David Li wr= ote: >> >> 2) Support of CallInfo for each callsite. This is an annotation, but >> more standardized. The callinfo can be used to record information such >> as call attributes, call side effects, mod-ref information etc --- >> current gimple_call_flags can be folded into this Info structure. > > I don't like generic annotation facilities. =C2=A0What should passes to w= ith > annotated stmts that are a) transformed, b) removed? =C2=A0See RTL notes > and all the interesting issues they cause. Likewise. We kind of tried having them in the early days of gimple and tree-ssa, but quickly removed them. Anything that is not a first-class IL member, makes life difficult. We have some examples in PHI nodes and EH regions. They're a bit to the side, and require extra code to manage. Diego.