Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932470AbbDMQXP (ORCPT ); Mon, 13 Apr 2015 12:23:15 -0400 Received: from ud10.udmedia.de ([194.117.254.50]:45034 "EHLO mail.ud10.udmedia.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753847AbbDMQXM (ORCPT ); Mon, 13 Apr 2015 12:23:12 -0400 Date: Mon, 13 Apr 2015 18:23:08 +0200 From: Markus Trippelsdorf To: Ingo Molnar Cc: "H. Peter Anvin" , Denys Vlasenko , "Paul E. McKenney" , Linus Torvalds , Jason Low , Peter Zijlstra , Davidlohr Bueso , Tim Chen , Aswin Chandramouleeswaran , LKML , Borislav Petkov , Andy Lutomirski , Brian Gerst , Thomas Gleixner , Peter Zijlstra Subject: Re: [PATCH] x86: Align jump targets to 1 byte boundaries Message-ID: <20150413162308.GB398@x4> References: <20150410090051.GA28549@gmail.com> <20150410091252.GA27630@gmail.com> <20150410092152.GA21332@gmail.com> <20150410111427.GA30477@gmail.com> <20150410112748.GB30477@gmail.com> <20150410120846.GA17101@gmail.com> <5527C700.3030405@redhat.com> <5527CD92.1080901@zytor.com> <20150411144135.GB31416@x4> <20150412101422.GA2862@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150412101422.GA2862@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 894 Lines: 21 On 2015.04.12 at 12:14 +0200, Ingo Molnar wrote: > In my (past) experience the main win from -flto is not due to better > hot/cold decisions, but simply due to more aggressive dead code > elimination. -flto has less of an effect on code that is actually > being executed. > > Which isn't to be sneered at, but it's far less of a direct effect as > branch probabilities are, which cut to the core of most hotpaths in > the kernel. I did some measurements with gcc-5.1-RC on X86_64 using Andi's latest LTO kernel patch for 4.0. With my simple monolithic .config the code size savings are below 1%. That is lower than I've expected. -- Markus -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/