From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#42147: 28.0.50; pure vs side-effect-free, missing optimizations? Date: Sun, 05 Jul 2020 11:30:47 -0400 Message-ID: References: <3A9CC2A3-8307-47B2-8D80-795C0AF020E1@acm.org> <705260433.2731607.1593698199171@mail.yahoo.com> <6CF8EE58-9A49-40E7-AA86-48AB39BF94BA@acm.org> <28B19D86-343C-4126-B95F-1F38735F73F2@acm.org> <1288c6a5-545b-f68c-ff6b-7683db3e54c1@cs.ucla.edu> <0AF276D8-FB28-4745-AAE4-DC30E0441F89@acm.org> <793d67e0-68a0-fc53-89a9-0902747d6389@cs.ucla.edu> <83zh8ftfwr.fsf@gnu.org> <672f15b0-04f9-e884-4815-85ca1d1af9bb@cs.ucla.edu> <6d8ba3b1-86b8-3dc8-3d80-17222d436b80@cs.ucla.edu> <83lfjyu1mo.fsf@gnu.org> <4e6f253b-0771-e90d-a24e-4ce1bd5d3a2a@cs.ucla.edu> <83a70et3w1.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="36937"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: mattiase@acm.org, Paul Eggert , pipcet@gmail.com, andrea_corallo@yahoo.it, 42147@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jul 05 17:32:14 2020 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 1js6co-0009Wn-AB for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jul 2020 17:32:14 +0200 Original-Received: from localhost ([::1]:55894 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1js6cn-00031p-A5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jul 2020 11:32:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1js6cc-00030N-O2 for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2020 11:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1js6cc-0002X1-EW for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2020 11:32:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1js6cc-0005vW-9r for bug-gnu-emacs@gnu.org; Sun, 05 Jul 2020 11:32:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jul 2020 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42147 X-GNU-PR-Package: emacs Original-Received: via spool by 42147-submit@debbugs.gnu.org id=B42147.159396307822726 (code B ref 42147); Sun, 05 Jul 2020 15:32:02 +0000 Original-Received: (at 42147) by debbugs.gnu.org; 5 Jul 2020 15:31:18 +0000 Original-Received: from localhost ([127.0.0.1]:32904 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1js6bu-0005uT-6J for submit@debbugs.gnu.org; Sun, 05 Jul 2020 11:31:18 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12359) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1js6bs-0005uG-9a for 42147@debbugs.gnu.org; Sun, 05 Jul 2020 11:31:16 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id A0F4B80640; Sun, 5 Jul 2020 11:31:10 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4571180098; Sun, 5 Jul 2020 11:30:55 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1593963055; bh=OPaV2Ezd+yX9/eOmDKek3Y7jKYH0V9+eB9od6cLVNVE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=DqAbUp9m0HYfqTiesHmRZDySylULsascwSiEc1ycuKp1lOfKXKGr641ukc27wlNXA Tihy1aIRr3jMHIhgFLy9bnafwNJFSOrcfI5w6PNg/kAMZY3VrLDqgiR/qTpVk3VFOH A0n8xWjj6n19wTHiUCeMNSBvUfbaMJKfAUaJYARQ9xkfg5vbPUyLGl5TM8N3fEUnu5 5ORCt7uMK4Pzpfn5Lvly7q5nmeHDlPBpYtRDVtr+xW2oHNdXkQuGcWJcVB3XY3NXWU lG+pvnLxtubD3wwWJ3PmyTnj2lyCg/ag8qgd8bWAOhqGiNEQsyDFmJEAHRhdxSrO1G qapNwgIapb27A== Original-Received: from alfajor (unknown [157.52.0.200]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4321912093F; Sun, 5 Jul 2020 11:30:54 -0400 (EDT) In-Reply-To: <83a70et3w1.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 05 Jul 2020 17:47:42 +0300") 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:182746 Archived-At: > That's not what I meant: I meant "non-standard" in the sense that the > compiler doesn't generate these instructions by default when dealing > with FP calculations. It depends on the architecture you generate for. It's clear that when that architecture is too old to include SSE2 instructions, GCC won't use SSE2 instructions (tho it still could at the cost of runtime tests for the presence of the feature). I don't know what GCC does if the target architecture is recent enough to include SSE2, but I'd expect it to then use SSE2 for most/all floating point operations since it generally leads to more efficient code (and it's easier for GCC to generate efficient code with it). >> I suspect they think x86 is on its way out and not worth worrying about. > Then why won't we do the same, and simply ignore the issue? Sounds good to me, Stefan