From: Jan Hubicka <hubicka@ucw.cz>
To: Andrew MacLeod <amacleod@redhat.com>
Cc: 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 18:24:34 +0200 [thread overview]
Message-ID: <ZJsNQi6iPz6yLTRM@kam.mff.cuni.cz> (raw)
In-Reply-To: <4d2f5bc2-c4ff-7576-cb82-b6c8a1a1da5f@redhat.com>
>
> 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?
I don't need passing ranger around - I just did not know that. I tought
the default one is the context insensitive one, I will simplify the
patch. I need to look more into how ranger works.
Honza
>
>
> Andrew
>
>
next prev parent reply other threads:[~2023-06-27 16:24 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
2023-06-27 16:24 ` Jan Hubicka [this message]
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=ZJsNQi6iPz6yLTRM@kam.mff.cuni.cz \
--to=hubicka@ucw.cz \
--cc=aldyh@redhat.com \
--cc=amacleod@redhat.com \
--cc=gcc-patches@gcc.gnu.org \
--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).