public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads
Date: Fri, 04 Mar 2005 03:42:00 -0000	[thread overview]
Message-ID: <20050304034154.4314.qmail@sourceware.org> (raw)
In-Reply-To: <20040817140542.17064.pbrook@gcc.gnu.org>


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-04 03:41 -------
Here is a testcase which we semi optimize on the RTL level but not at the tree level:
sum cannot alias a or b at all because of the default option for gfortran.

subroutine dot_product (sum, a, b, n)
   real*8 a(n), b(n), sum
   sum = 0
   do i = 1, n
     sum = sum + a (i) * b(i)
   end do
end

The reason why I say semi is because there is an extra fmr (PPC):
The loop looks like:
L4:
        lfd f13,0(r4)
        addi r4,r4,8
        lfd f0,0(r5)
        addi r5,r5,8
        fmadd f0,f13,f0,f12
        fmr f12,f0
        bdnz L4

If we had optimizate it at the tree level it would look like:
L4:
        lfd f13,0(r4)
        addi r4,r4,8
        lfd f0,0(r5)
        addi r5,r5,8
        fmadd f12,f13,f0,f12
        bdnz L4

Note how we don't have the extra fmr.

-- 


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


  parent reply	other threads:[~2005-03-04  3:42 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-17 14:05 [Bug tree-optimization/17064] New: -falias-noargument-global doesn't eliminate dead stores pbrook at gcc dot gnu dot org
2004-08-17 14:12 ` [Bug tree-optimization/17064] " dnovillo at gcc dot gnu dot org
2004-11-06 20:14 ` pinskia at gcc dot gnu dot org
2005-02-08  0:01 ` pinskia at gcc dot gnu dot org
2005-02-08  0:29 ` [Bug tree-optimization/17064] -falias-noargument-global doesn't eliminate dead stores/loads pinskia at gcc dot gnu dot org
2005-03-04  3:42 ` pinskia at gcc dot gnu dot org [this message]
2005-07-27 17:13 ` pinskia at gcc dot gnu dot org
2005-08-06 19:51 ` pinskia at gcc dot gnu dot org
     [not found] <bug-17064-6527@http.gcc.gnu.org/bugzilla/>
2005-10-05 13:21 ` pinskia at gcc dot gnu dot org
2006-01-10 20:35 ` pinskia at gcc dot gnu dot org
2006-01-10 20:36 ` pinskia at gcc dot gnu dot org
2006-01-16 17:11 ` pinskia at gcc dot gnu dot org
2006-01-26 17:51 ` pinskia at gcc dot gnu dot org
2006-01-26 17:51 ` pinskia at gcc dot gnu dot org
2006-01-26 18:15 ` pinskia at gcc dot gnu dot org
2006-01-29  4:32 ` pinskia at gcc dot gnu dot org
2006-01-31  0:49 ` dje at gcc dot gnu dot org
2006-01-31  1:11 ` pinskia at gcc dot gnu dot org
2009-04-03 11:57 ` rguenth at gcc dot gnu dot org
2010-07-13 10:21 ` steven at gcc dot gnu dot org
2010-07-13 11:11 ` rguenth at gcc dot gnu dot org
2010-07-13 11:27 ` steven at gcc dot gnu dot org
2010-07-13 13:30 ` rguenth 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=20050304034154.4314.qmail@sourceware.org \
    --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).