public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Richard Biener <rguenther@suse.de>
To: Kugan <kugan.vivekanandarajah@linaro.org>
Cc: Jakub Jelinek <jakub@redhat.com>,
	Richard Biener <richard.guenther@gmail.com>,
	"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
	Eric Botcazou <ebotcazou@adacore.com>,
	Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>,
	Richard Earnshaw <Richard.Earnshaw@arm.com>
Subject: Re: [ping][PATCH][1 of 2] Add value range info to SSA_NAME for zero sign extension elimination in RTL
Date: Wed, 11 Sep 2013 09:11:00 -0000	[thread overview]
Message-ID: <alpine.LNX.2.00.1309111101220.3150@zhemvz.fhfr.qr> (raw)
In-Reply-To: <52300715.4080307@linaro.org>

On Wed, 11 Sep 2013, Kugan wrote:

> Thanks Jakub for the review.
> 
> On 10/09/13 23:10, Jakub Jelinek wrote:
> > On Tue, Sep 10, 2013 at 03:17:50PM +0200, Richard Biener wrote:
> > > > unsigned short s;
> > > > s.1_3 = (short unsigned int) l.0_2;
> > > > l.0_2: VARYING
> > > > s.1_3: [0, +INF]
> > > 
> > > Note that [0, +INF] is the same as VARYING and [-INF, +INF] and VARYING
> > > for
> > > l.0_2 is the same as [-INF, +INF].
> > 
> > Yeah, I don't see much value in differentiating between VR_VARYING and
> > VR_RANGE [TYPE_MIN_VALUE, TYPE_MAX_VALUE] (perhaps a question is what to do
> > for types with precisions different from TYPE_MODE's bitsize, if we should
> > store for VARYING/UNDEFINED a range of all possible values in the mode).
> > Unsigned type will be always >= 0, even if it is VARYING or UNDEFINED.
> > What is the valid bit good for?  Is it meant just for integrals with >
> > 2*HOST_BITS_PER_WIDE_INT precision, which we can't represent in double_int?
> > I'd say we just don't want to keep track on the value ranges for those.
> 
> Ok, I will remove the valid.
> 
> > And, do we need to distinguish between VR_RANGE and VR_ANTI_RANGE?
> > I mean, can't we always store the range in VR_RANGE format?  Instead of
> > -[3,7] we'd store [8,2] and define that if the min double_int is bigger than
> > max double_int, then it is [min,+infinity] merged with [-infinity,max] range
> > (i.e. -[max+1,min-1])?
> > 
> 
> Ok, I will change this too.

Make sure to add a predicate that can tell whether its an anti-range
then.

Richard.

  reply	other threads:[~2013-09-11  9:02 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-03  2:14 [PATCH][1 " Kugan
2013-06-17  1:31 ` [ping][PATCH][1 " Kugan
2013-06-17  9:03   ` Richard Biener
2013-07-03 12:26     ` Kugan
2013-08-14  7:19       ` Kugan
2013-09-02  9:31         ` Kugan
2013-09-02 12:45       ` Richard Biener
2013-09-03 12:15         ` Kugan
2013-09-06  6:47           ` Richard Biener
2013-09-09  0:15             ` Kugan
2013-09-09  9:37               ` Richard Biener
2013-09-10  5:27                 ` Kugan
2013-09-10 13:29                   ` Richard Biener
2013-09-10 13:49                     ` Jakub Jelinek
2013-09-11  7:01                       ` Kugan
2013-09-11  9:11                         ` Richard Biener [this message]
2013-09-11  9:54                           ` Jakub Jelinek
2013-09-11 10:00                             ` Richard Biener
2013-09-13  6:17                               ` Kugan
2013-09-16  6:46                                 ` Kugan
2013-09-16 14:32                                   ` Richard Biener
2013-09-18  7:24                                     ` Kugan
2013-09-18  9:45                                       ` Richard Biener
2013-09-19  7:25                                         ` Kugan
2013-09-23 11:39                                           ` Richard Biener
2013-09-23 15:55                                             ` Christophe Lyon
2013-09-23 21:03                                               ` Eric Botcazou
2013-09-24 10:13                                                 ` Richard Biener
2013-09-24 10:34                                                   ` Kugan
2013-09-24 10:45                                                   ` Richard Biener
2013-09-24 16:25                                                 ` Christophe Lyon
2013-09-25 18:04                                                   ` Eric Botcazou
2013-09-18  9:07                                     ` Richard Earnshaw
2013-09-18  9:12                                       ` Richard Biener
2013-09-18  9:16                                         ` Jakub Jelinek
2013-09-18  9:26                                           ` Jan Hubicka
2013-09-18 10:21                                             ` Richard Biener
2013-09-11  6:39                     ` Kugan

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=alpine.LNX.2.00.1309111101220.3150@zhemvz.fhfr.qr \
    --to=rguenther@suse.de \
    --cc=Richard.Earnshaw@arm.com \
    --cc=ebotcazou@adacore.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=kugan.vivekanandarajah@linaro.org \
    --cc=ramana.radhakrishnan@arm.com \
    --cc=richard.guenther@gmail.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).