public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jan Hubicka <hubicka@ucw.cz>
To: Richard Biener <rguenther@suse.de>
Cc: Jan Hubicka <hubicka@ucw.cz>, gcc-patches@gcc.gnu.org, jason@redhat.com
Subject: Re: Teach vrp that THIS pointer and references are non-zero
Date: Mon, 13 Apr 2015 12:17:00 -0000	[thread overview]
Message-ID: <20150413121730.GA11125@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <alpine.LSU.2.11.1504131348340.6786@zhemvz.fhfr.qr>

> On Mon, 13 Apr 2015, Jan Hubicka wrote:
> 
> > Hi,
> > with multiple inheritance compiling the testcase bellow, the first call always
> > leads to call with offseted pointer, while the other call results in if
> > conditoinal testing if parameter is non-NULL.
> > 
> > This patch teach VRP that THIS pointers and references are non-zero.  I hope
> > this is true also for fortran and ada, but I think both languages do not really
> > have NULL.
> > 
> > I think VRP could basically assume all reference pointers to be non-zero, but
> > I am not sure how to do that with GIMPLE useless conversion rules.
> > 
> > Bootstrapped/regtested x86_64-linux, OK?
> 
> Hmm - doesn't ESRA remove unused this eventually so this falls apart?

It changes METHOD_TYPE to FUNCTION_TYPE then.

Honza

  reply	other threads:[~2015-04-13 12:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-13 10:12 Jan Hubicka
2015-04-13 10:22 ` Jakub Jelinek
2015-04-13 11:48 ` Richard Biener
2015-04-13 12:17   ` Jan Hubicka [this message]
2015-04-13 12:18     ` Richard Biener
2015-04-15 13:07       ` Jason Merrill

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=20150413121730.GA11125@atrey.karlin.mff.cuni.cz \
    --to=hubicka@ucw.cz \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jason@redhat.com \
    --cc=rguenther@suse.de \
    /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).