public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Daniel Berlin <dberlin@dberlin.org>
To: "Sanjiv Kumar Gupta, Noida" <sanjivg@noida.hcltech.com>
Cc: Dale Johannesen <dalej@apple.com>, "" <gcc@gcc.gnu.org>
Subject: RE: possible gcse failure: not able to eliminate redundant loads
Date: Wed, 11 Dec 2002 22:18:00 -0000	[thread overview]
Message-ID: <Pine.LNX.4.50.0212120026010.4753-100000@dberlin.org> (raw)
In-Reply-To: <E04CF3F88ACBD5119EFE00508BBB21210614A067@exch-01.noida.hcltech.com>



On Thu, 12 Dec 2002, Sanjiv Kumar Gupta, Noida wrote:

>
>
> >> But surely it should be smart enough to know they don't alias?
> >It depends on what it looks like at the RTL level.
> the references of a[4] and a[1] appear as two pointer pseudos
> which gcc can not determine that they have been computed with distinct
> offsets from same base. Thus assumes aliasing.
> I am implementing mod-k residue technique in GCC
> (described in "alias analysis of executable code", Debray98 et. al)
> to fix this.
> >> This is still a bug, possibly an important one for performance.
>
> >Store motion can't handle this right now.
> >It was built to handle a certain special case.
> >Improve it so it does more.
> >It's not broken, just not as good as it could be.
>
> Store motion is currently disabled. see gcse.c line 910

Err, you don't know this, but you don't need to tell me.
I know more about the history of store motion than i would ever care to
know.
:)

>
> /* Store motion disabled until it is fixed.  */
>   if (0 && !optimize_size && flag_gcse_sm)
>     store_motion ();
>
> I don't know what's stopping this? I will try to find
> related PRs and have a look into them.

What's stopping is twofold.

1.  in current form, it takes a not
insignificant amount of time, and does nothing (If you look at the mailing list
archives, you'll note i collected stats, and found it applied <10 times in
the bootstrap).
2. There is code where it does apply, and does the wrong thing.

Both are bad.

Feel free to reenable it and watch it do nothing for most stores.

Now i remember what case it handles:
It will only move stores to globals right now, and even then, only in
special cases.

Check find_moveable_store.
:)



>
> --Sanjiv
>

  reply	other threads:[~2002-12-12  5:33 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-11 22:00 Sanjiv Kumar Gupta, Noida
2002-12-11 22:18 ` Daniel Berlin [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-12-21 20:36 Robert Dewar
2002-12-19  7:08 Richard Kenner
2002-12-18 18:39 Robert Dewar
2002-12-19  3:02 ` Richard Henderson
2002-12-21 19:49 ` Alexandre Oliva
2002-12-13  0:39 Sanjiv Kumar Gupta, Noida
2002-12-13  2:42 ` Richard Henderson
2002-12-13 13:10   ` Toon Moene
2002-12-16 10:15     ` Richard Henderson
2002-12-16 11:32       ` Andrew Haley
2002-12-16 13:13       ` Toon Moene
2002-12-16 13:32         ` Richard Henderson
2002-12-16 14:44           ` Toon Moene
2002-12-16 14:48             ` Toon Moene
2002-12-16 15:29               ` Richard Henderson
2002-12-17 15:20                 ` Toon Moene
2002-12-16 15:38               ` Jan Hubicka
2002-12-16 16:40           ` Alex Rosenberg
2002-12-12 23:42 Sanjiv Kumar Gupta, Noida
2002-12-12 21:35 Sanjiv Kumar Gupta, Noida
2002-12-12 21:44 ` Dan Nicolaescu
2002-12-11 20:32 Sanjiv Kumar Gupta, Noida
2002-12-11  3:30 Sanjiv Kumar Gupta, Noida
2002-12-11 14:53 ` Dale Johannesen
2002-12-11 20:02   ` Daniel Berlin
2002-12-11 20:03     ` Daniel Berlin
2002-12-12 12:25     ` Richard Henderson
2002-12-12 12:28       ` Daniel Berlin
2002-12-12 13:03         ` Richard Henderson
2002-12-12 13:04           ` David Edelsohn
2002-12-12 14:32             ` Richard Henderson
2002-12-12 14:42               ` David Edelsohn
2002-12-12 14:58                 ` Richard Henderson
2002-12-12 15:28                   ` Daniel Berlin
2002-12-13  3:41                     ` Richard Henderson
2002-12-12 20:30                   ` David Edelsohn
2002-12-12 15:29               ` Geoff Keating
2002-12-11  3:27 Sanjiv Kumar Gupta, Noida

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=Pine.LNX.4.50.0212120026010.4753-100000@dberlin.org \
    --to=dberlin@dberlin.org \
    --cc=dalej@apple.com \
    --cc=gcc@gcc.gnu.org \
    --cc=sanjivg@noida.hcltech.com \
    /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).