From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#46540: 28.0.50; Native-comp optimization bug Date: Wed, 17 Feb 2021 07:50:00 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37757"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46540@debbugs.gnu.org, qythium@gmail.com To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 17 08:51:10 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 1lCHc5-0009j1-LM for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 08:51:09 +0100 Original-Received: from localhost ([::1]:38856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lCHc4-0007wR-KJ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 17 Feb 2021 02:51:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43992) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lCHby-0007wJ-Ea for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 02:51:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59067) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lCHby-00069s-6x for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 02:51:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lCHby-0003iv-4N for bug-gnu-emacs@gnu.org; Wed, 17 Feb 2021 02:51:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Feb 2021 07:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46540 X-GNU-PR-Package: emacs Original-Received: via spool by 46540-submit@debbugs.gnu.org id=B46540.161354824414289 (code B ref 46540); Wed, 17 Feb 2021 07:51:02 +0000 Original-Received: (at 46540) by debbugs.gnu.org; 17 Feb 2021 07:50:44 +0000 Original-Received: from localhost ([127.0.0.1]:42380 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCHbf-0003iP-R0 for submit@debbugs.gnu.org; Wed, 17 Feb 2021 02:50:43 -0500 Original-Received: from mail-ot1-f45.google.com ([209.85.210.45]:35276) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lCHbe-0003iC-IK for 46540@debbugs.gnu.org; Wed, 17 Feb 2021 02:50:42 -0500 Original-Received: by mail-ot1-f45.google.com with SMTP id 80so2274604oty.2 for <46540@debbugs.gnu.org>; Tue, 16 Feb 2021 23:50:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=vKwJBEVcCEraxoBC6oTl1/FD8zBYf8geHovT1xLsQmw=; b=YLbr4BtynaVqYJf7MwEy3EYdSb3gUm5wlOPdpFK2kQE4z7WmZTnzVSE4jf6+gZo6br 0oZMn/bOHQy7MGh8jmyrk0hIsi0L/9WepuaiSx37tLXLhRrCXkajNHY+wTja5S9UddEt MHyTGwZrI/5f6xav+cwrUxTfuCZNPzHJtIfS0ehLMyS1aJgxOgLYVXb3vXPbBiC9ovxl 5bPT3NXPvLTEVq54eK9+gM2kY8zbsE8aaQFY4uicM3WS8nW+LGMj0yajUtlShD1rFKFF EpR+B47bVCuRIM04RF9cJ+IBXD0ik747LccwwUDhhSxfgPy8zTFPevpNZQkqA3bfav8h Px6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=vKwJBEVcCEraxoBC6oTl1/FD8zBYf8geHovT1xLsQmw=; b=ghdz/MjTCmzRJH4zhHMs6uaP7c/TVrt6YDdBZ7483jyJP9NnybU6iKfccMWgLETdwu AoHpWZc9KW5hBNKG4rJmHbYhxwXMyTkrNQwl0JsPSmQV8/xAph0dpqPlkTPvLUsizF1r bVCKr7uHX/nLrk3PVvANte2K/WGrKFH7ZZpQAIHY4ebJcplXdZmmE74Ri5j+3tQXm6bD 6i9cVpIQEJnDzT09uMA9J66IgTyRmoXuVzu5jHY9TIRLhN0ndarwNSyYXfsTQAGQQxr+ etRQIzla7D1IxqJt3penizxJ0T3y8A2mWGw5cuVsQnm2OITkNuq1mHzcuJzGAPWeeQR0 uTWA== X-Gm-Message-State: AOAM531q1WmWdvczy2iDP9fy8jGUR2JT0Nm5VPMijwLUdjhRASYZ9LVY hfqeDxPszcIb/NKTqzbR4/0IXocZ1pur8JGohmk= X-Google-Smtp-Source: ABdhPJyCh5hpUDOm44viQPKBas52TTnjtZLwNlpV2IpHMSDoE7754TEFW2lh7+GefKWZ+dBcTgPQRvmk/Uujm9Tm5uU= X-Received: by 2002:a9d:6e92:: with SMTP id a18mr3692723otr.287.1613548236907; Tue, 16 Feb 2021 23:50:36 -0800 (PST) In-Reply-To: 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:200185 Archived-At: On Tue, Feb 16, 2021 at 9:44 PM Andrea Corallo wrote: > The following constrain insn clearly resolves in the wrong way: > > (assume #(mvar 79140560 0 (integer 0 0)) (<= #(mvar 79118120 0 (integer 0 *)) #(mvar 79118988 3 (integer 0 *)))) > > Will come-up with a fix. My guess is that this code in comp-cstr.el: (defun comp-cstr-<= (dst old-dst src) "Constraint DST being <= than SRC. SRC can be either a comp-cstr or an integer." (with-comp-cstr-accessors (let ((ext-range (if (integerp src) `((- . ,src)) (when-let* ((range (range src)) (low (comp-cstr-smallest-in-range range)) (okay (integerp low))) `((- . ,low)))))) (comp-cstr-set-cmp-range dst old-dst ext-range)))) should use comp-cstr-greatest-in-range rather than comp-cstr-smallest-in-range. Same for comp-cstr-<. Analogous for comp-cstr->, comp-cstr->=. (If A's possible values are {3, 4, 5}, and B is <= A, we can only conclude B <= 5, not that B <= 3, since A = 5, B = 5 is a solution to the constraint problem).