From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luc Van Oostenryck Subject: Re: [RFC v0 0/4] Give a type to constants too Date: Fri, 11 Aug 2017 14:45:41 +0200 Message-ID: <20170811124540.ronpgzifgif4wklj@ltop.local> References: <20170811114937.fqzgxdqcq64jlpgn@ltop.local> <20170811123535.n2fulymfn6wq4zbk@ltop.local> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-wm0-f46.google.com ([74.125.82.46]:37268 "EHLO mail-wm0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752869AbdHKMpo (ORCPT ); Fri, 11 Aug 2017 08:45:44 -0400 Received: by mail-wm0-f46.google.com with SMTP id i66so46513965wmg.0 for ; Fri, 11 Aug 2017 05:45:44 -0700 (PDT) Content-Disposition: inline In-Reply-To: Sender: linux-sparse-owner@vger.kernel.org List-Id: linux-sparse@vger.kernel.org To: Christopher Li Cc: Dibyendu Majumdar , Linus Torvalds , Sparse Mailing-list , Jeff Garzik , Pekka Enberg On Fri, Aug 11, 2017 at 08:40:25AM -0400, Christopher Li wrote: > On Fri, Aug 11, 2017 at 8:35 AM, Luc Van Oostenryck > wrote: > > On Fri, Aug 11, 2017 at 08:00:50AM -0400, Christopher Li wrote: > >> > >> I think he means the push instruction is not in the bb->insns list. > >> > >> I agree with that view. > > > > But these instructions *are* in the bb->insns list. > > If they are in the bb->insns, that is even worse in my book. It means > the back end processing the IR need to remember the state to match > up push into the calling arguments. The call instruction show up *after* > the push. Yes. Calling conventions are often like this. isn't the opposite direction somehow less meaningful? > You are forcing the back end to simulate a push stack to > properly process the function call. That's not true. Look at the LLVM backend. -- Luc