public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jeff Law <law@redhat.com>
To: Peter Bergner <bergner@vnet.ibm.com>
Cc: Richard Sandiford <rsandifo@nildram.co.uk>,
	        gcc-patches <gcc-patches@gcc.gnu.org>,
	"H.J. Lu" <hjl@lucon.org>
Subject: Re: [PATCH] PR35371 GCSE loses track of REG_POINTER attribute
Date: Mon, 03 Mar 2008 20:55:00 -0000	[thread overview]
Message-ID: <47CC6550.1090209@redhat.com> (raw)
In-Reply-To: <1204573308.6969.8.camel@otta>

Peter Bergner wrote:
> On Mon, 2008-03-03 at 12:15 -0700, Jeff Law wrote:
>>> Do you mean fix it up and then call it from more than just CSE?
>>> Currently, the only call to reg_scan() isn't in a location that
>>> will help me.
>> No.  I mean make it smarter.  If you read the code it's amazingly
>> simplistic and punts propagation of REG_POINTER for any pseudo
>> that is set more than once.
>>
>> It shouldn't be terribly difficult to build a simple propagation
>> engine that handles multiple sets.
> 
> Sorry, making it "smarter" is what I meant by "fix it up".
> My problem with it, as I mentioned in my previous note, is that
> the only location it is currently called doesn't help me.
> I guess what I was asking was there shouldn't be a problem
> with me calling it from another location, correct?
Ah.  A misunderstanding on my part.


I do recall some problems with passes substituting a pseudo
without REG_POINTER set for a register with REG_POINTER set,
so if you run it early, you might lose some REG_POINTER
attributes.

That's not a fatal problem -- the PA backend already knows
to cope with this issue.  And if the pass is safe, you ought
to be able to just run it twice.


Ideally propagation of REG_POINTER would use both the
assignment to the pseudo and the use of the pseudo to
try and determine if it's a pointer.


Jeff


  reply	other threads:[~2008-03-03 20:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-25 22:30 Peter Bergner
2008-02-25 23:13 ` Peter Bergner
2008-02-26  5:25 ` [PATCH,updated] " Peter Bergner
2008-02-26  5:49   ` [PATCH,withdrawn] " Peter Bergner
2008-02-26 18:00 ` [PATCH] " Richard Sandiford
2008-02-26 19:04   ` Peter Bergner
2008-02-26 19:45     ` Richard Sandiford
2008-02-26 20:06     ` Jeff Law
2008-02-29  1:32       ` Peter Bergner
2008-03-03 19:17         ` Jeff Law
2008-03-03 19:42           ` Peter Bergner
2008-03-03 20:55             ` Jeff Law [this message]
2008-03-10 15:32         ` [PING H.J. Lu] " Peter Bergner
2008-03-10 16:22           ` H.J. Lu
2008-03-12 14:48           ` H.J. Lu
2008-03-17 14:32             ` H.J. Lu

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=47CC6550.1090209@redhat.com \
    --to=law@redhat.com \
    --cc=bergner@vnet.ibm.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hjl@lucon.org \
    --cc=rsandifo@nildram.co.uk \
    /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).