From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46847: 28.0.50; [native-comp] assume pseudo-insns should be verified Date: Fri, 05 Mar 2021 11:16:19 +0000 Message-ID: References: Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6137"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 46847@debbugs.gnu.org To: Pip Cet Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 05 12:17:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lI8SN-0001Ts-6Z for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Mar 2021 12:17:19 +0100 Original-Received: from localhost ([::1]:53942 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lI8SL-000329-QJ for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 05 Mar 2021 06:17:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lI8S6-00031n-LG for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2021 06:17:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49686) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lI8S6-0002EZ-Eb for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2021 06:17:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lI8S6-0003Zu-A1 for bug-gnu-emacs@gnu.org; Fri, 05 Mar 2021 06:17:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 05 Mar 2021 11:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46847 X-GNU-PR-Package: emacs Original-Received: via spool by 46847-submit@debbugs.gnu.org id=B46847.161494298613707 (code B ref 46847); Fri, 05 Mar 2021 11:17:02 +0000 Original-Received: (at 46847) by debbugs.gnu.org; 5 Mar 2021 11:16:26 +0000 Original-Received: from localhost ([127.0.0.1]:32999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI8RV-0003Z0-0s for submit@debbugs.gnu.org; Fri, 05 Mar 2021 06:16:26 -0500 Original-Received: from mx.sdf.org ([205.166.94.24]:55477) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lI8RS-0003Yq-Jw for 46847@debbugs.gnu.org; Fri, 05 Mar 2021 06:16:23 -0500 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 125BGKkq022084 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Fri, 5 Mar 2021 11:16:20 GMT In-Reply-To: (Pip Cet's message of "Tue, 2 Mar 2021 06:57:42 +0000") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:201522 Archived-At: Pip Cet writes: [...] > (assume (mvar X :slot -1) (not (mvar Y :slot 1))) > (assume (mvar Z :slot 2) (and ... (mvar X :slot -1))) Now that we can generate temporaries this might be an option. But I think would be helpful if you could show what exactly are the 1:1 assertions you'd like to synthesize for the above assumes, otherwise this discussion will stay just too high level. [...] >> Note: I'm not aware of any compiler emitting run-time checks to verify >> its compile time predictions by why not. > > I don't know why you're unaware Emacs (pre-native-comp) and GCC both > do that, but they do. I wasn't even aware that the byte compiler is doing any value prediction and that is emitting code for to verify these, could give pointers to boths cases? Andrea