public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "dberlin at dberlin dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug optimization/14046] [tree-ssa regression] address calculation not moved out of innermost loop
Date: Fri, 06 Feb 2004 15:40:00 -0000	[thread overview]
Message-ID: <20040206154041.11538.qmail@sources.redhat.com> (raw)
In-Reply-To: <20040206124008.14046.rguenth@tat.physik.uni-tuebingen.de>


------- Additional Comments From dberlin at dberlin dot org  2004-02-06 15:40 -------
Subject: Re:  New: [tree-ssa regression] address calculation not moved out of innermost loop


On Feb 6, 2004, at 7:40 AM, rguenth at tat dot physik dot uni-tuebingen 
dot de wrote:

> For the simple testcase
>
> void foo(double *a, int o, int f0, int e0, int f1, int e1, int s0, int 
> s1)
> {
>   for (int i1=f1; i1<=e1; ++i1)
>     for (int i0=f0; i0<=e0; ++i0)
>       a[o + i0*s0 + i1*s1] = 0.0;
> }
>
> tree-ssa is not able to move the address calculation partly out of the 
> innermost
> loop, while 3.4 is able to do this:
On the normal tree-ssa branch, Load PRE would have been able to move 
this, but it doesn't because it's too expensive to run load PRE on 
calculations that only occur once right now.
Zdenek posted a LICM patch (which should also move it out of the loop), 
and committed it to the lno-branch.
--Dan



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14046


  parent reply	other threads:[~2004-02-06 15:40 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06 12:40 [Bug optimization/14046] New: " rguenth at tat dot physik dot uni-tuebingen dot de
2004-02-06 13:39 ` [Bug optimization/14046] " martin at mpa-garching dot mpg dot de
2004-02-06 14:49 ` rguenth at tat dot physik dot uni-tuebingen dot de
2004-02-06 15:12 ` pinskia at gcc dot gnu dot org
2004-02-06 15:40 ` dberlin at dberlin dot org [this message]
2004-02-06 15:44 ` pinskia at gcc dot gnu dot org
2004-02-16  4:31 ` pinskia at gcc dot gnu dot org
2004-02-27 18:43 ` dberlin at gcc dot gnu dot org

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=20040206154041.11538.qmail@sources.redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /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).