public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Segher Boessenkool <segher@kernel.crashing.org>
To: Jan Hubicka <hubicka@ucw.cz>
Cc: Aditya K <hiraditya@msn.com>, "gcc@gcc.gnu.org" <gcc@gcc.gnu.org>
Subject: Re: Fw: GSoC topic: Implement hot cold splitting at GIMPLE IR level
Date: Thu, 05 Mar 2020 15:50:00 -0000	[thread overview]
Message-ID: <20200305155052.GB22482@gate.crashing.org> (raw)
In-Reply-To: <20200303212532.GI49582@kam.mff.cuni.cz>

Hi!

On Tue, Mar 03, 2020 at 10:25:32PM +0100, Jan Hubicka wrote:
> I think this is bit stronger to what llvm does currently which relies on
> outlining SESE regions earlier rather than going through the pain of
> implementing support for partitioning.  

OTOH outlining can result in improved code, too (it will naturally keep
all "cold" variables in the cold outlined function, because of SESE).

>  3) function partitioning is enabled only for x86. I never had time to
>     get it working on other targets and no-one picked up this task

What makes this not completely generic in the first place?

>  8) Most of non-x86 backends do not implement very well the hot/cold
>     code models and instruction choice.

I'm not sure what this means, could you expand?

>  9) Shrink-wrapping and register allocation is not always able to move
>     spilling to code paths but this is generally very hard problem to
>     track.

Separate shrink-wrapping should handle this quite well.  But, currently
shrink-wrapping does not move existing code very much, which could
improve this further (doing some kind of rematerialisation, essentially).


Segher

  reply	other threads:[~2020-03-05 15:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-03-03  5:51 Aditya K
2020-03-03  8:47 ` Martin Liška
     [not found]   ` <BYAPR08MB42320E829A37607C0AC4F967B6E40@BYAPR08MB4232.namprd08.prod.outlook.com>
2020-03-03 20:42     ` Fw: " Aditya K
2020-03-03 21:25       ` Jan Hubicka
2020-03-05 15:50         ` Segher Boessenkool [this message]
2020-03-16 23:11         ` Aditya K
2020-03-16 23:19           ` Jakub Jelinek
2020-03-17 14:31             ` Aditya K
2020-03-17 14:47               ` Richard Biener

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=20200305155052.GB22482@gate.crashing.org \
    --to=segher@kernel.crashing.org \
    --cc=gcc@gcc.gnu.org \
    --cc=hiraditya@msn.com \
    --cc=hubicka@ucw.cz \
    /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).