public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Paul Brook <paul@codesourcery.com>
To: kenner@vlsi1.ultra.nyu.edu (Richard Kenner)
Cc: gcc@gcc.gnu.org
Subject: Re: What to remove after tree-ssa is merged?
Date: Wed, 04 Feb 2004 19:49:00 -0000	[thread overview]
Message-ID: <200402041949.23994.paul@codesourcery.com> (raw)
In-Reply-To: <10402041846.AA02928@vlsi1.ultra.nyu.edu>

On Wednesday 04 February 2004 6:46 pm, Richard Kenner wrote:
>     e.g. in previously mentioned examples a COMPONENT_REF where the actual
>     offset depends on the size of an array which depends on the value of a
>     variable.
>
> No, that's not correct.  It doesn't depend on the value of a
> *variable* but on a value within the instance of the type.  There is
> nothing to make it explicit *into* since the intent of the node is
> that the value is to be obtained individually and at run-time from
> each instance of an object of that type.

I'd include "value within the instance of the type" in the definition of 
"variable".

It _can_ be made explicit. We may not know the actual value, but for a given 
expression we do know which instance we want to extract it from (by walking 
back to a corresponding WITH_RECORD_EXPR). Depending on the method used some 
high level type information may be lost.

In this and previous threads several methods of doing this have been 
suggested. These range from decomposing effected COMPONENT_REFs into pointer 
arithmetic to creating a new subtype for each expression used in a 
WITH_RECORD_EXPR.

I'm not saying lowering in the frontend is the best solution, but it is 
certainly an option. Based on your previous messages I don't believe you know 
enough of the workings of the tree-ssa optimizers to be able to estimate the 
work involved adding WITH_RECORD_EXPR.

I certainly don't claim to be able to make that judgement.

Paul

  reply	other threads:[~2004-02-04 19:49 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-04 18:43 Richard Kenner
2004-02-04 19:49 ` Paul Brook [this message]
2004-02-04 20:15   ` Richard Henderson
  -- strict thread matches above, loose matches on Subject: below --
2004-02-04 21:55 Richard Kenner
2004-02-04 21:25 Richard Kenner
2004-02-04 21:51 ` Paul Brook
2004-02-04 21:09 Richard Kenner
2004-02-05  5:32 ` Richard Henderson
2004-02-05  5:50   ` Geert Bosch
2004-02-04 20:55 Richard Kenner
2004-02-04 21:21 ` Paul Brook
2004-02-04 17:54 Richard Kenner
2004-02-04 18:39 ` Paul Brook
2004-02-04 16:14 Richard Kenner
2004-02-04 16:39 ` Michael Matz
2004-02-04 15:49 Richard Kenner
2004-02-04 16:10 ` Michael Matz
2004-02-04 17:25 ` Robert Dewar
2004-02-04 15:21 Richard Kenner
2004-02-04 15:19 Richard Kenner
2004-02-04 15:31 ` Michael Matz
2004-02-04 15:16 S. Bosscher
2004-02-04 14:48 Richard Kenner
2004-02-04 14:36 Richard Kenner
2004-02-04 14:44 ` Andrew Pinski
2004-02-04 15:15 ` Michael Matz
2004-02-04 13:52 Richard Kenner
2004-02-04 13:29 S. Bosscher
2004-02-04 13:49 ` Paul Brook
2004-02-04 14:04 ` Michael Matz
2004-02-04 14:19   ` Robert Dewar
2004-02-04 14:31     ` Andrew Pinski
2004-02-04 14:53       ` Robert Dewar
2004-02-04 12:30 Richard Kenner
2004-02-03 16:20 "Documentation by paper" Richard Kenner
2004-02-03 16:54 ` Jan Hubicka
2004-02-03 16:58   ` What to remove after tree-ssa is merged? Paolo Bonzini

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=200402041949.23994.paul@codesourcery.com \
    --to=paul@codesourcery.com \
    --cc=gcc@gcc.gnu.org \
    --cc=kenner@vlsi1.ultra.nyu.edu \
    /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).