public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Alias analysis - does base_alias_check still work ?
@ 2002-07-16 14:10 Toon Moene
  2002-07-19 11:00 ` Toon Moene
  0 siblings, 1 reply; 19+ messages in thread
From: Toon Moene @ 2002-07-16 14:10 UTC (permalink / raw)
  To: gcc

L.S.,

f/com.c contains the following note, preceding the definition of

#define LANG_HOOKS_GET_ALIAS_SET hook_get_alias_set_0

/* We do not wish to use alias-set based aliasing at all.  Used in the
   extreme (every object with its own set, with equivalences recorded)
it
   might be helpful, but there are problems when it comes to inlining. 
We
   get on ok with flag_argument_noalias, and alias-set aliasing does
   currently limit how stack slots can be reused, which is a lose.  */

I do not know if all the facts mentioned here still actually hold, but I
do have strong doubts that base_alias_check in alias.c still does its
duty.

Consider the following Fortran source:

      SUBROUTINE SIMPLE(A, B)
      B = 3.0
      A = 2.0
      B = A*B
      END

one would assume that alias analysis at least once should check that the
assignment to A in line 3 doesn't change the value of B set in line 2,
which, with

	flag_argument_noalias > 1

[arguments don't alias] in effect, would be the case.

However, according to my experiments with setting breakpoints in
base_alias_check, it never passes that point.

Before I go on a wholesale check to see if base_alias_check *ever*
returns anything else than `1` (x and y might alias), does someone have
a good idea to narrow the search ?

Thanks in advance,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)

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

end of thread, other threads:[~2002-08-12  9:56 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-16 14:10 Alias analysis - does base_alias_check still work ? Toon Moene
2002-07-19 11:00 ` Toon Moene
2002-07-19 11:02   ` Daniel Berlin
2002-07-19 11:03     ` David Edelsohn
2002-07-19 13:31   ` Richard Henderson
2002-07-20  2:13     ` Toon Moene
2002-07-20 11:42       ` Toon Moene
2002-07-20 12:05         ` Richard Henderson
2002-07-20 12:12           ` Richard Henderson
2002-07-21 10:01             ` Toon Moene
2002-07-21 14:23               ` Richard Henderson
2002-07-21 15:14                 ` Toon Moene
2002-07-21 22:41                 ` Toon Moene
2002-07-22  0:03                   ` Richard Henderson
2002-07-22 16:42                     ` Toon Moene
2002-07-23  2:12                       ` Andreas Jaeger
2002-08-12  7:49     ` Jeff Law
2002-08-12  7:53       ` Jan Hubicka
2002-08-12  9:56         ` Richard Henderson

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