From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ihor Radchenko Newsgroups: gmane.emacs.devel Subject: Re: Add more supported primitives in libgccjit IR Date: Wed, 23 Aug 2023 10:11:43 +0000 Message-ID: <87cyze6pb4.fsf@localhost> References: <20230809094655.793FC18A4654@snark.thyrsus.com> <87y1i57jqi.fsf@localhost> <87pm3h7h8k.fsf@localhost> <87h6ot7cf3.fsf@localhost> <87edjx7c0b.fsf@localhost> <831qfxw2cx.fsf@gnu.org> <87v8d95918.fsf@localhost> <87zg2lav4b.fsf@yahoo.com> <87sf8d57wf.fsf@localhost> <87r0nxatu1.fsf@yahoo.com> <87pm3h56ig.fsf@localhost> <87edjxarhz.fsf@yahoo.com> <87edjw4uw4.fsf@localhost> <77daee02cf1ba0db70c1@heytings.org> <87v8d8fzr9.fsf@localhost> <87jztofwqm.fsf@localhost> <83cyzgvb70.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10711"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , ams@gnu.org, gregory@heytings.org, luangruo@yahoo.com, emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Aug 23 12:12:06 2023 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qYkqL-0002VR-Ku for ged-emacs-devel@m.gmane-mx.org; Wed, 23 Aug 2023 12:12:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qYkpd-0004Wo-Ed; Wed, 23 Aug 2023 06:11:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYkpc-0004Wf-1g for emacs-devel@gnu.org; Wed, 23 Aug 2023 06:11:20 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qYkpY-0007Gw-JL for emacs-devel@gnu.org; Wed, 23 Aug 2023 06:11:19 -0400 Original-Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 82CF2240027 for ; Wed, 23 Aug 2023 12:11:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1692785474; bh=69ga5V7azh/NUICN47XL7yaax5UBGT4jgDg5ChODHvA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:From; b=K8IzZPH3memnwOEcq/nM1lGIXzJK1rR3U+ioY3ChGfEWhbXAiLhHwhz5iiLUHtPCV bWwBljPrhkKjxBTxDg/a1N5gwws9qLiASNgliyoB0SZDHfWPmHgKVEwl4D4ck7bsH/ 6GStSA3caQxa9W7dwlo8qq+hGCGUful+09I9KTIpKUNEs2bFT/dwPjfS2zjjXBdezd 91mtCPPPP2BRHr5JXRyqOioKqiX2xzkNoYMrw7I7h9o2N/cP/f350Je0tZA/1jV2JH 5a0F1ackGm/BCa00/WZlEzTsC1kZTRusAl1pQSR6sX7dydVFZrswvMo2wZCZhacU6+ teDPAqo/a6XTg== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4RW26n3B7Dz9rxB; Wed, 23 Aug 2023 12:11:13 +0200 (CEST) In-Reply-To: Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:309129 Archived-At: Andrea Corallo writes: > Yes the native compiler does value-type inference already (this is how > the return type of functions is computed as well). Thanks for the confirmation! Do I understand correctly that value-type inference is still extremely limited? I am confused about native compilation results for (defun test1 () (let ((x (list 'a 'b 'c))) (when (listp x) "Return value"))) (see ) > Yes the backend tries to inline some code when possible (ex > define_add1_sub1). > > Yes we could add more of this inlining, the infrastructure is already > there but I personally had no time to work on this :( Do you have any comment on the problem with having multiple parallel implementations of the same subroutine? > If someone is interested on working on some of those points (or other > areas of the native compiler) I'm happy to provided help as much as I > can. Is there any detailed information about the format of native compile debug output? I tried (defun test1 () (let ((x (list 'a 'b 'c))) (when (listp x) "Return value"))) (setq native-comp-debug 3) (setq native-comp-verbose 3) (native-compile #'test1 "/tmp/test1.eln") but it is not very clear what exactly is going on there. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at