public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Aldy Hernandez <aldyh@redhat.com>
To: Jakub Jelinek <jakub@redhat.com>
Cc: Richard Biener <rguenther@suse.de>,
	Richard Sandiford <richard.sandiford@arm.com>,
	Andrew MacLeod <amacleod@redhat.com>,
	gcc-patches@gcc.gnu.org
Subject: Re: [RFC] > WIDE_INT_MAX_PREC support in wide_int and widest_int
Date: Fri, 29 Sep 2023 08:04:52 -0400	[thread overview]
Message-ID: <57f4a2e1-ea51-6bfc-fc57-fc29ae3c1fa7@redhat.com> (raw)
In-Reply-To: <ZRaMrS4mvYMNcT9V@tucnak>



On 9/29/23 04:37, Jakub Jelinek wrote:
> On Thu, Sep 28, 2023 at 11:53:53AM -0400, Aldy Hernandez wrote:
>>> ipa_bits is even worse, because unlike niter analysis, I think it is very
>>> much desirable to support IPA VRP of all supported _BitInt sizes.  Shall
>>> we perhaps use trailing_wide_int storage in there, or conditionally
>>> rwidest_int vs. INTEGER_CSTs for stuff that doesn't fit, something else?
>>
>> BTW, we already track value/mask pairs in the irange, so I think ipa_bits
>> should ultimately disappear.  Doing so would probably simplify the code
>> base.
> 
> Well, having irange in GC memory would be equally bad, it does have
> non-trivial destructors (plus isn't meant to be space efficient either,
> right?).

Correct, irange is not space efficient by a long shot.  Any GC and long 
term requirements should be stored through the value-range-storage.h 
mechanism.

I already converted the ipa_vr ranges that live in GC memory to 
vrange_storage.  See the ipa_vr class.  So I think you could just nuke 
the ipa_bits and use the ranges already in ipa_vr.

> Though, perhaps we should use value-range-storage.h for that now that it
> can store value/mask pair as well?  Either tweak it on the IPA side
> such that everything is stored together (both the IPA VRP and IPA bit CCP)

Right.

Aldy

> or say use vrange_storage with zero (or one dummy) ranges + the value/mask
> pair.
> 
> 	Jakub
> 


  reply	other threads:[~2023-09-29 12:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-28 14:34 [RFC] > WIDE_INT_MAX_PREC support in wide-int Jakub Jelinek
2023-08-29  9:49 ` Richard Biener
2023-08-29 10:42   ` Richard Sandiford
2023-08-29 15:09     ` Jakub Jelinek
2023-09-28 14:03       ` [RFC] > WIDE_INT_MAX_PREC support in wide_int and widest_int Jakub Jelinek
2023-09-28 15:53         ` Aldy Hernandez
2023-09-29  8:37           ` Jakub Jelinek
2023-09-29 12:04             ` Aldy Hernandez [this message]
2023-09-29  8:24         ` Jakub Jelinek
2023-09-29  9:25           ` Richard Biener
2023-09-29  9:49         ` Richard Biener
2023-09-29 10:30           ` Richard Sandiford
2023-09-29 10:58             ` Jakub Jelinek
2023-10-05 15:11         ` Jakub Jelinek
2023-10-06 17:41           ` Jakub Jelinek
2023-08-29 14:46   ` [RFC] > WIDE_INT_MAX_PREC support in wide-int Jakub Jelinek

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=57f4a2e1-ea51-6bfc-fc57-fc29ae3c1fa7@redhat.com \
    --to=aldyh@redhat.com \
    --cc=amacleod@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=rguenther@suse.de \
    --cc=richard.sandiford@arm.com \
    /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).