public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew MacLeod <amacleod@redhat.com>
To: Jan Hubicka <hubicka@ucw.cz>,
	aldyh@redhat.com, mjambor@suse.cz, gcc-patches@gcc.gnu.org,
	jwakely@redhat.com
Subject: Re: Enable ranger for ipa-prop
Date: Tue, 27 Jun 2023 10:00:30 -0400	[thread overview]
Message-ID: <4d2f5bc2-c4ff-7576-cb82-b6c8a1a1da5f@redhat.com> (raw)
In-Reply-To: <ZJrhyTWosoCcEs8V@kam.mff.cuni.cz>


On 6/27/23 09:19, Jan Hubicka wrote:
> Hi,
> as shown in the testcase (which would eventually be useful for
> optimizing std::vector's push_back), ipa-prop can use context dependent ranger
> queries for better value range info.
>
> Bootstrapped/regtested x86_64-linux, OK?

Quick question.

When you call enable_ranger(), its gives you a ranger back, but it also 
sets the range query for the specified context to that same instance.  
So from that point forward  all existing calls to get_range_query(fun) 
will now use the context ranger

enable_ranger (struct function *fun, bool use_imm_uses)
<...>
   gcc_checking_assert (!fun->x_range_query);
   r = new gimple_ranger (use_imm_uses);
   fun->x_range_query = r;
   return r;

So you probably dont have to pass a ranger around?  or is that ranger 
you are passing for a different context?


Andrew



  reply	other threads:[~2023-06-27 14:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-27 13:19 Jan Hubicka
2023-06-27 14:00 ` Andrew MacLeod [this message]
2023-06-27 16:24   ` Jan Hubicka
2023-06-27 17:54     ` Andrew MacLeod
2023-06-28  7:37       ` Jan Hubicka
2023-06-27 15:14 ` Martin Jambor

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=4d2f5bc2-c4ff-7576-cb82-b6c8a1a1da5f@redhat.com \
    --to=amacleod@redhat.com \
    --cc=aldyh@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hubicka@ucw.cz \
    --cc=jwakely@redhat.com \
    --cc=mjambor@suse.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).