public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* [tree-ssa] Array accesses
       [not found] ` <1028034311.2966.12.camel@frodo>
@ 2002-07-31 22:42   ` Pop Sébastian
  2002-08-06 16:13     ` Jason Merrill
  0 siblings, 1 reply; 2+ messages in thread
From: Pop Sébastian @ 2002-07-31 22:42 UTC (permalink / raw)
  To: Diego Novillo; +Cc: gcc

On Tue, Jul 30, 2002 at 09:05:11AM -0400, Diego Novillo wrote:
> The problem is pointer arithmetic.  The parser turns offsets into byte offsets.  

Sorry for redundancies, but I'd like to reiterate my question:
is this a bug in the parser (that should be fixed)?

http://gcc.gnu.org/ml/gcc-patches/2002-06/msg01488.html

I think that it would be simpler to deal with exact array accessors 
rather than pointer arithmetics in the optimizer.

A possible work-around solution is to work with byte offsets and expect the analyzer
to promote them into higher structures (arrays with array accessors) for those that 
are candidates for optimization.

-- Sebastian

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [tree-ssa] Array accesses
  2002-07-31 22:42   ` [tree-ssa] Array accesses Pop Sébastian
@ 2002-08-06 16:13     ` Jason Merrill
  0 siblings, 0 replies; 2+ messages in thread
From: Jason Merrill @ 2002-08-06 16:13 UTC (permalink / raw)
  To: Pop Sébastian; +Cc: Diego Novillo, gcc

On Thu, 1 Aug 2002 00:37:35 +0200, =?iso-8859-1?Q?Pop_S=E9bastian?= <pop@gauvain.u-strasbg.fr> wrote:

> On Tue, Jul 30, 2002 at 09:05:11AM -0400, Diego Novillo wrote:
>> The problem is pointer arithmetic.  The parser turns offsets into byte offsets.  
>
> I think that it would be simpler to deal with exact array accessors 
> rather than pointer arithmetics in the optimizer.

I would think so.  I don't know why we decompose array refs so soon when
we're indexing off anything other than a decl with ARRAY_TYPE.

Jason

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-06 16:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <D716C79E-A379-11D6-9D1A-00039362EF82@apple.com>
     [not found] ` <1028034311.2966.12.camel@frodo>
2002-07-31 22:42   ` [tree-ssa] Array accesses Pop Sébastian
2002-08-06 16:13     ` Jason Merrill

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).