Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp623861pxh; Tue, 9 Nov 2021 16:21:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwVmlRxz9FflgoG5G+O9L4+tetEXAlHc2bHEIE+5IROXVewkxjIbhS6q78DTSGRvNH1dNqO X-Received: by 2002:a02:ba90:: with SMTP id g16mr9049925jao.85.1636503719240; Tue, 09 Nov 2021 16:21:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636503719; cv=none; d=google.com; s=arc-20160816; b=wFPOEk+nuWp8mEha2+vxCBcGv5fk2cLtG3+CDUQVpFVWImc6/H0EfIWmoWsKyvv8i9 yq4PdVS/+VyBaVd5mYQ5O1SooERv6YlXrVbf4dLIvwSfTJfv0B2BeY3idEMEpGtXxTko A/CpzlXzW54l1XaVM2w2t5DBvJXa0NkyRjuVshlePoQwVqD4UwgR4VAcGAaRyVFRcQ/n cLMcfgCrM17I/Nu5VriPkpE5zCXVq9MWlrtHldds+PDFwB2H4LYaQNbd6FvFI7qtnyhc 5+kJcWjCZAg9OAQhBXW6gOiJ+fjoiOORs50ZNmtPeS9d0EmVshaH+p0RM1xbzwTCmpgf 55Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WjjHKRQzAPClRG+YAWkb8c4biTijnDdG5vi8nhBZI38=; b=QuKhxKpuzVed5dXVUJzo1I+7DCJMioLisy/Yg78kVgnwGqN18q5i9SPByyAke3S86b s1L5iXXxN6BKbMRbYdebrK36CsVVTm5XGuaSIGgxmfJ48dB9/tKIoGV6LpjZkeYP8uGo TBzkwAu6Y8VIpSzThVYp1Gcyj9bZ3tEjIxTW7g3bSVOumD5wM0KEFhsZcanjr+UvqcLE VvGFBUI2Qb+6M7j6Y7P1u+8d6RxnXb+bIz25JUVGCMY+sPCWLqh/YOxDjRW+yeVk5US4 MD+4+VBWGCZRbNVM2TVKifiPftla1MFzI8IK6qxmBwDUCcnIo2LUwtaHWAjTnq3BxzXA dWWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hbvIdNjM; 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 ay7si34685068iob.27.2021.11.09.16.21.47; Tue, 09 Nov 2021 16:21:59 -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; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=hbvIdNjM; 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 S245032AbhKIVYY (ORCPT + 97 others); Tue, 9 Nov 2021 16:24:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239453AbhKIVYY (ORCPT ); Tue, 9 Nov 2021 16:24:24 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AFCAEC061764; Tue, 9 Nov 2021 13:21:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=WjjHKRQzAPClRG+YAWkb8c4biTijnDdG5vi8nhBZI38=; b=hbvIdNjM1G/p7mGCbtWMFU9nIx ewsSWakSjhYXPcdz3Hue0OcATuuvrIbE/bcwyBqvR+BtdziTWzUP49qeA//9p+7lpyat49Sho2T2A uBy1IDkPwrJkddMJhSshNlGBDynSJMfI2EAp5gS5ra8SnkCHyN+WtbT3sqt8/zInFuRbbxbtrf9mg y9ICYkVcce1yCPqQ2ibFnTPnDeC/WqPpmuRJhqC+qQuGkisASbeAu9V4IevAV1BZo6HE4uWshhUSO PEo1GbhP0ed99g8hpceaTu23CKGVLPxg6JWy6uev01VoqzOTb4ExXjWvjHZEC39EuTKEN+pCynb4S 4qlrdLxA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=worktop.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1mkYYP-00F8gf-Jm; Tue, 09 Nov 2021 21:21:18 +0000 Received: by worktop.programming.kicks-ass.net (Postfix, from userid 1000) id 9EA0A985A2A; Tue, 9 Nov 2021 22:21:16 +0100 (CET) Date: Tue, 9 Nov 2021 22:21:16 +0100 From: Peter Zijlstra To: Bill Wendling Cc: Nick Desaulniers , 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: <20211109212116.GW174703@worktop.programming.kicks-ass.net> References: <20211105171023.989862879@infradead.org> <20211105171821.654356149@infradead.org> <20211108164711.mr2cqdcvedin2lvx@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 09, 2021 at 12:59:12PM -0800, Bill Wendling wrote: > > Adding attributes to labels shouldn't be difficult, as you mention. In > the case of cold/hot, it's adjusting some of the metadata that already > exists on some basic blocks. It might be enough to allow the normal > block placement algorithms to move the hot and cold blocks around for > us. The question becomes how many attributes does GCC allow on labels? I'm aware of 3: unused, hot, cold. Also: https://gcc.gnu.org/onlinedocs/gcc/Label-Attributes.html