From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyrill Gorcunov Subject: Re: [PATCH 5/7] kvm tools: enable LTO Date: Thu, 30 Aug 2012 12:22:17 +0400 Message-ID: <20120830082217.GG21422@moon> References: <1346312203-29456-1-git-send-email-levinsasha928@gmail.com> <1346312203-29456-5-git-send-email-levinsasha928@gmail.com> <20120830081654.GA3741@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Ingo Molnar , Sasha Levin , asias.hejun@gmail.com, mingo@elte.hu, kvm@vger.kernel.org To: Pekka Enberg Return-path: Received: from mail-lpp01m010-f46.google.com ([209.85.215.46]:47751 "EHLO mail-lpp01m010-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752674Ab2H3IWV (ORCPT ); Thu, 30 Aug 2012 04:22:21 -0400 Received: by lagy9 with SMTP id y9so1366491lag.19 for ; Thu, 30 Aug 2012 01:22:20 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20120830081654.GA3741@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Aug 30, 2012 at 10:16:54AM +0200, Ingo Molnar wrote: > > * Pekka Enberg wrote: > > > On Thu, Aug 30, 2012 at 10:36 AM, Sasha Levin wrote: > > > Build with -flto set, which should enable link-time-optimizations. > > > > > > I'm not sure if it provides a significant performance increase, but > > > it's probably just worth it for catching issues which it may cause. > > > > > > Signed-off-by: Sasha Levin > > > > Ingo, any objections to this? > > No objections if you can live with a 2x-4x increase in build > time - at worst it might cause funnies with the BIOS linker > script and such. Maybe we could enable it via some make option? Say make LTO=1 or something? Cyrill