public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@ucw.cz>
To: Andi Kleen <ak@linux.intel.com>
Cc: Jan Hubicka <hubicka@ucw.cz>,
	gcc-patches@gcc.gnu.org,	rguenther@suse.de, hongjiu.lu@intel.com,
	ccoutant@google.com,	iant@google.com
Subject: Re: [RFC] Getting LTO incremental linking work
Date: Thu, 26 Nov 2015 06:33:00 -0000	[thread overview]
Message-ID: <20151126021249.GD5371@kam.mff.cuni.cz> (raw)
In-Reply-To: <20151126020208.GL8438@tassilo.jf.intel.com>

> > Actually I think it is harder than that, because we need to strip LTO data
> > from the object files, so we do not end up with duplicated LTO if the object
> > file was already having both LTO and non-LTO stuff in it.
> 
> When I started with LTO I was looking into that, and that is why I originally
> implemented slim LTO as a first step. But then I realized that that just adding
> the postfixes is much easier, after HJ proposed his linker based solution.
> 
> Anyways can stay with the special binutils for the kernel for now, but it's 
> a bit of a pain for users to install them (user feedback is generally that 
> this is the hardest part)
> 
> I'm a bit surprised that the programs you test (Firefox, LibreOffice etc.)
> don't have .S files.

They don't do incermental linking. They build static libraries that works just fine.
Indeed it would be nice to have things working in general.
> 
> > 
> > I am not sure we can/want to implement this w/o some sort of support from 
> > plugin side. It would basically mean doing another incremnetal linker in the
> > plugin.
> > 
> > How does HJ's binutils work for fat LTO?
> 
> I believe it works too (pretty sure I tested it at some point)
> 
> Here's the original design spec
> 
> https://sourceware.org/ml/binutils/2011-04/msg00404.html
> 
Yep, i saw this a while ago, but forgot how to find it.  Thanks!
Now I remember that HJ's binutils has IR objects (which are slim or fat
LTO) and mixed objects which are essentially two objects together.

I suppose the IR linking I impleemnted should work just fine with HJ's
approach and we could make lto-plugin to skip the path switching to
early codegen.  Over the current HJ's implementation the advantage is
that you will get faster WPA at kernel link time.

It would be nice to arrive with a solution for mainline bintutils.

Honza

  reply	other threads:[~2015-11-26  2:12 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25  9:04 Jan Hubicka
2015-11-25 11:19 ` Richard Biener
2015-11-25 15:45   ` H.J. Lu
2015-11-25 19:21     ` Jan Hubicka
2015-11-25 23:09       ` Jan Hubicka
2015-11-25 23:56         ` Jan Hubicka
2015-11-28 10:35         ` Tom de Vries
2015-11-28 12:03           ` Tom de Vries
2015-11-28 16:05             ` Ilya Verbin
2015-11-28 17:41               ` Tom de Vries
2015-11-29 21:15                 ` Jan Hubicka
2015-11-25 18:54   ` Jan Hubicka
2015-11-26 10:15     ` Richard Biener
2015-11-26 20:30       ` Jan Hubicka
2015-11-25 23:59   ` Andi Kleen
2015-11-26  0:24 ` Andi Kleen
2015-11-26  0:54   ` Jan Hubicka
2015-11-26  1:55     ` Andi Kleen
2015-11-26  2:02       ` Jan Hubicka
2015-11-26  2:12         ` Andi Kleen
2015-11-26  6:33           ` Jan Hubicka [this message]
2015-11-26 10:33     ` Richard Biener
2016-03-16 17:33 ` H.J. Lu

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151126021249.GD5371@kam.mff.cuni.cz \
    --to=hubicka@ucw.cz \
    --cc=ak@linux.intel.com \
    --cc=ccoutant@google.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hongjiu.lu@intel.com \
    --cc=iant@google.com \
    --cc=rguenther@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).