From owner-svn-src-head@freebsd.org Thu Oct 24 15:59:01 2019 Return-Path: Delivered-To: svn-src-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A85DE1706E1 for ; Thu, 24 Oct 2019 15:59:01 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qt1-x82f.google.com (mail-qt1-x82f.google.com [IPv6:2607:f8b0:4864:20::82f]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46zX3m6xgHz3RJX for ; Thu, 24 Oct 2019 15:59:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qt1-x82f.google.com with SMTP id u22so38546625qtq.13 for ; Thu, 24 Oct 2019 08:59:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ru//suYCHeloiQ1KHVcg3cOA1RRhZICZLYNQtYNc7Rk=; b=x51pCVL2wPCSIMCSZRSLM+bPFLlhv5Hd188XpeKtN7Oqy522scQiLvkPyDPzVK80jQ laZOobfc+Uym9ICsCxOBkC+NlS5i9jBTUODWF/o/Gy+Q7iv+RMxSzX7WlyqEfRwK/g+J rkPQp3NIQgR8eJn1x1aGIfWLW1vy7fmDbmd6ASephkI9V0VT12Wq5pABQVKOsysdmqdK lzRgpxO5Rtp/TogNrng/uW+dh33hLD748Mhj6fLUttvsn2cDglv504GnD/di3h7qDekB LAXOafQ6prAK3f5hTTGFDY8u7Fkj8CbwArmWfDOsTufIi9mHWMPF82c5b9Sz1mR2Pyg+ FYqQ== 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=ru//suYCHeloiQ1KHVcg3cOA1RRhZICZLYNQtYNc7Rk=; b=Gj2uy/eXT5LgH52rpwdoBz8Cc9gW0CEq4pREnGHxIiVV7ZlusCtKiWbSAx/JPQ8QQp 0FQBnURjWwN9mwlwH8Ehp+Oq8qTDaLBb8AVtPF0q4IrI7kKWwFKUfCOBXLRjh45ced7b t/1/st3GYtlRnVbPs8njo/29nlr2GSKTTOhYkvLb7otx017QiWYK7JqQD09jZjDS4VbI kCNierAosbq5hjfiY4rOL58vLZx3/f8QQCWTWwUFwER0L/o7ozTyLJI/bWAOsGEZw3VR ZBjbgep6sNZ9TcL/kpfC5cUuWABCrUfcoVkRBbSEQ5A/L6ENlafUPXSamvy/TfTbq1IG Bl5A== X-Gm-Message-State: APjAAAVY0Qtj8V7XAGcaPmhRne8MTepzqQOzpXJk0f40eFT1CYGG8Bqx B7c6MDDeT4uAq8NcPxn3d/71grjYz4SaunrwKWYspA== X-Google-Smtp-Source: APXvYqyzXaf+OBedbKdi8QQVKtc3P8A5wPun/r3XqgwC/Rrko7+cFMEmi+fJPmC7setp4X45vv8M5uCKP0JdOxKSFAk= X-Received: by 2002:a0c:95ca:: with SMTP id t10mr9163024qvt.22.1571932738606; Thu, 24 Oct 2019 08:58:58 -0700 (PDT) MIME-Version: 1.0 References: <201910231657.x9NGvCMD039111@repo.freebsd.org> <20191024082609.GA63459@FreeBSD.org> <20191024153433.GA68256@FreeBSD.org> In-Reply-To: <20191024153433.GA68256@FreeBSD.org> From: Warner Losh Date: Thu, 24 Oct 2019 09:58:47 -0600 Message-ID: Subject: Re: svn commit: r353936 - head/contrib/llvm/tools/clang/lib/Driver/ToolChains/Arch To: Alexey Dokuchaev Cc: Dimitry Andric , src-committers , svn-src-all , svn-src-head X-Rspamd-Queue-Id: 46zX3m6xgHz3RJX X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20150623.gappssmtp.com header.s=20150623 header.b=x51pCVL2; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::82f) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-3.77 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20150623.gappssmtp.com:s=20150623]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[svn-src-head@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; URI_COUNT_ODD(1.00)[3]; RCPT_COUNT_FIVE(0.00)[5]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20150623.gappssmtp.com:+]; RCVD_IN_DNSWL_NONE(0.00)[f.2.8.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; IP_SCORE(-2.77)[ip: (-9.34), ipnet: 2607:f8b0::/32(-2.41), asn: 15169(-2.06), country: US(-0.05)]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Oct 2019 15:59:01 -0000 On Thu, Oct 24, 2019 at 9:34 AM Alexey Dokuchaev wrote: > On Thu, Oct 24, 2019 at 09:14:07AM -0600, Warner Losh wrote: > > On Thu, Oct 24, 2019 at 2:26 AM Alexey Dokuchaev > wrote: > > > On Wed, Oct 23, 2019 at 04:57:12PM +0000, Dimitry Andric wrote: > > > > New Revision: 353936 > > > > URL: https://svnweb.freebsd.org/changeset/base/353936 > > > > > > > > Log: > > > > Bump clang's default target CPU for the i386 architecture (aka > > > > "x86") to i686, as per the discussion on the freebsd-arch mailing > > > > list. > > > > > > Why i686, not i586? i486 lacking 64-bit atomics is a sound and valid > > > reason, but I don't understand why i586 wasn't chosen, and quick review > > > of that -arch thread did not help. > > > > There were several notions at play here. First, the rest of the i386 > > ecosystem has defaulted to i686 for a long time. [...] > > > > i686 support by default allows better code generation and increased > > performance. The biggest thing being using CMOVxx instructions to avoid > > a pipeline miss due to branching, though there's likely others. > The other reason to do this on i386 is that we've built lib32 with i686 forever on amd64, and this makes them match. I'd forgotten that this was mentioned in early discussions and was just reminded about that in IRC. > > By moving to i686 by default, we have only one bump instead of two. [...] > > > > So that's where we are: a mix of technical and political reasons were why > > we bumped up to i686 by default > > Understood. I appreciate long and elaborate reply Warner. > > > Chances are this will be the last minimum bump as well before i386 is > > removed from the tree as irrelevant (some years from now, but the day > > will come). > > I hope the day never comes, as I don't want to be forced from FreeBSD to > something else on vast majority of my hardware. > I hope so too. I know this change represents some hassle for some people, but represents an improvement for others. Warner