Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp443161pxh; Wed, 10 Nov 2021 04:21:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwO+3Et1XtQKLqLcbnLpYDdgYfN40O5T9E/p8evEVREY/dQ6+xXF/qkMXUD2ddKIeqaaFtV X-Received: by 2002:aa7:c044:: with SMTP id k4mr20668904edo.369.1636546869349; Wed, 10 Nov 2021 04:21:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636546869; cv=none; d=google.com; s=arc-20160816; b=eFJjp9XegXFbWZSiV1eoNRt6DC/1Ry8ERSREGh6Op6F0aCoDCKF8gA68dX/zUGnYAs 70XjqLr8rxxcjhKXy6btoT7umKwX+DTS86+NOh8cqhTbhvEwhvNuxkL5ZbcM3WoMM9FR PS4FWAreCapiB5mTuHo/x2zPGjAmATaI0piaK6c+KaljcjNHT1PhkRzRZCZ1lqHz5qRo qyFei3ATj1jJGoR65Ubdidi6BielvR9P3RE09QgXz6zLEadg+TBLzEOi/HgVbCdPHsJK F3fXIx7H6b8cSVUgm5hAX51LcggLqK2fHxrQ1EMydg6XpS3RNKE9z3fvS6VvEMZVtCfv Doxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zjtAHiMlud71Bz4+oZF4EZwV/U0GtMkiPVnVZMh7G1w=; b=plHI2SBvCnxJ3pXYoGTlmM882I24nIHrBnuCMplwc7yhBAiZUJtKFHXwUmZ+DI/hDN QqJdl383N0y6aUG+558Xjfo5Rnaqgr6AzDvIyyWzOJvEQWyqb794aVL8qpSoC1E9Hg19 YFGpddDiv6UZYhabUOttO02WpWudaRK6v+iox5820NTwNq7oQmwtow4kBcyvBrvw5svZ vkf2biOInFP9/MEiB769rFIMSHFZqSclpF8wWFqjebcvEsn16FG7LeBdDLBcpvAbSU2q UTiYXTGSf+kCTTMqzIXgq+rjTTmMoFyFAc0Z0OUO13+ruPA6sddOp1bGpVx/eIfpu7D+ STxQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si40111427edr.231.2021.11.10.04.20.28; Wed, 10 Nov 2021 04:21:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231460AbhKJMU5 (ORCPT + 99 others); Wed, 10 Nov 2021 07:20:57 -0500 Received: from gate.crashing.org ([63.228.1.57]:57167 "EHLO gate.crashing.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229653AbhKJMU4 (ORCPT ); Wed, 10 Nov 2021 07:20:56 -0500 Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 1AACEZvq030022; Wed, 10 Nov 2021 06:14:36 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 1AACESJE030011; Wed, 10 Nov 2021 06:14:28 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 10 Nov 2021 06:14:28 -0600 From: Segher Boessenkool To: Peter Zijlstra Cc: Nick Desaulniers , Bill Wendling , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org, mark.rutland@arm.com, dvyukov@google.com, seanjc@google.com, pbonzini@redhat.com, mbenes@suse.cz, llvm@lists.linux.dev, linux-toolchains@vger.kernel.org Subject: Re: [PATCH 20/22] x86,word-at-a-time: Remove .fixup usage Message-ID: <20211110121428.GD614@gate.crashing.org> References: <20211105171023.989862879@infradead.org> <20211105171821.654356149@infradead.org> <20211108164711.mr2cqdcvedin2lvx@treble> <20211109210736.GV174703@worktop.programming.kicks-ass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211109210736.GV174703@worktop.programming.kicks-ass.net> User-Agent: Mutt/1.4.2.3i Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Tue, Nov 09, 2021 at 10:07:36PM +0100, Peter Zijlstra wrote: > On Tue, Nov 09, 2021 at 11:22:44AM -0800, Nick Desaulniers wrote: > > I think the use of this feature (label-attributes) here isn't > > necessary though; because of the use of outputs, the "fallthrough" > > basic block needs to be placed immediately after the basic block > > terminated by the asm goto, at least in LLVM. Was different ordering > > of basic blocks observed with GCC without this label attribute? > > GCC does the same, but I wanted to have the exception stuff be in > .text.cold, but alas it doesn't do that. I left the attribute because of > it's descriptive value. > > > Unless the cold attribute is helping move > > ("shrink-wrap"?) Shrink-wrapping is something else entirely. >> the basic block to a whole other section > > (.text.cold.)? > > I was hoping it would do that, but it doesn't on gcc-11. A cold basic block can never dominate a non-cold basic block. GCC will fix things up when it notices this property is violated, so marking random blocks as "cold" will not be very effective. Segher