From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751915AbdKUBCM (ORCPT ); Mon, 20 Nov 2017 20:02:12 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:39310 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751701AbdKUBCK (ORCPT ); Mon, 20 Nov 2017 20:02:10 -0500 X-Google-Smtp-Source: AGs4zMbyl8ud+/4HgwkySDVx5nmgrwXZQ4CDlbHuZvgjNH1YeC/O+ZxqPxLNuQT8jvybWrUM55/OQQ== Date: Tue, 21 Nov 2017 11:01:52 +1000 From: Nicholas Piggin To: Sami Tolvanen Cc: Alex Matveev , Andi Kleen , Ard Biesheuvel , Greg Hackmann , Kees Cook , linux-arm-kernel@lists.infradead.org, linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Rutland , Masahiro Yamada , Maxim Kuvyrkov , Michal Marek , Nick Desaulniers , Yury Norov , Matthias Kaehlcke Subject: Re: [v2,12/18] kbuild: add support for clang LTO Message-ID: <20171121110152.23fb751a@roar.ozlabs.ibm.com> In-Reply-To: <20171120202152.GA89108@samitolvanen.mtv.corp.google.com> References: <20171115213428.22559-13-samitolvanen@google.com> <20171118132139.58ac5e4c@roar.ozlabs.ibm.com> <20171120202152.GA89108@samitolvanen.mtv.corp.google.com> Organization: IBM X-Mailer: Claws Mail 3.15.1-dirty (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Nov 2017 12:21:52 -0800 Sami Tolvanen wrote: > On Sat, Nov 18, 2017 at 01:21:39PM +1000, Nicholas Piggin wrote: > > Do you have any kind of numbers for this, out of curiosity? Binary > > size, performance, build time? > > I don't have performance numbers to share. Are there any specific > benchmarks you'd be interested in seeing? Build time typically > increases with LTO and in my experience, binary size tends to increase > by ~10-15% as well. By deduction, then you must see some performance improvement? :) I just wonder are you doing this because there is some worthwhile performance gain? Or to enable more testing and development of LTO? Any clues for why a user would want to enable it. > > > Why is this needed? It would have been nice to get rid of the > > !THIN_ARCHIVES option if you can make the patches work with the thin > > archives paths. > > I believe LLVMgold doesn't know how to deal with an archive of LLVM IR > files, but I can certainly use thin archives as an index and extract > the path names for linking. I'll look into it. Thanks, if you could. Possibly file a request with LLVMgold too, it seems to be that toolchain support for archives is quite strong, so it will be good to keep pushing for that. Thanks, Nick