From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 570F02C8B for ; Tue, 9 Nov 2021 21:21:34 +0000 (UTC) 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> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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