public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ubizjak at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/21676] [4.0/4.1/4.2/4.3 Regression] Optimizer regression: SciMark sparse matrix benchmark
Date: Wed, 06 Feb 2008 11:06:00 -0000	[thread overview]
Message-ID: <20080206110557.26444.qmail@sourceware.org> (raw)
In-Reply-To: <bug-21676-10607@http.gcc.gnu.org/bugzilla/>



------- Comment #14 from ubizjak at gmail dot com  2008-02-06 11:05 -------
We still generate:

.L8:
        movl    (%ebx), %eax
        addl    $1, %edx
        addl    $4, %ebx
        fldl    (%edi,%eax,8)
        fmull   (%ecx)
        addl    $8, %ecx
        cmpl    %edx, %esi
        faddp   %st, %st(1)
        jg      .L8

This could IMO be optimized on RTL level, to use %edx as a count variable:

.L8:
        movl    (%ebx,%edx,4), %eax
        fldl    (%edi,%eax,8)
        fmull   (%ecx,%edx,8)
        addl    $1, %edx
        cmpl    %edx, %esi
        faddp   %st, %st(1)
        jg      .L8

This would be optimal code for this loop.


-- 


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


  parent reply	other threads:[~2008-02-06 11:06 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bug-21676-10607@http.gcc.gnu.org/bugzilla/>
2006-06-04 19:59 ` [Bug rtl-optimization/21676] [4.0/4.1/4.2 " jsm28 at gcc dot gnu dot org
2006-06-04 20:06 ` pinskia at gcc dot gnu dot org
2006-06-06 11:46 ` gcc at pdoerfler dot com
2006-07-10 12:45 ` rguenth at gcc dot gnu dot org
2006-08-16  6:50 ` pinskia at gcc dot gnu dot org
2006-08-16 12:16 ` uros at kss-loka dot si
2006-08-17  7:21 ` uros at kss-loka dot si
2006-08-17  7:46 ` uros at kss-loka dot si
2006-08-29  5:24 ` [Bug rtl-optimization/21676] [4.0/4.1 " pinskia at gcc dot gnu dot org
2006-08-29  6:13 ` [Bug rtl-optimization/21676] [4.0/4.1/4.2 " uros at kss-loka dot si
2007-02-14  9:11 ` [Bug rtl-optimization/21676] [4.0/4.1/4.2/4.3 " mmitchel at gcc dot gnu dot org
2007-12-16 23:17 ` steven at gcc dot gnu dot org
2007-12-16 23:49 ` ubizjak at gmail dot com
2008-01-12 15:29 ` steven at gcc dot gnu dot org
2008-02-06 11:06 ` ubizjak at gmail dot com [this message]
2008-07-04 16:54 ` [Bug rtl-optimization/21676] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-11-22 10:33 ` steven at gcc dot gnu dot org
2009-02-05  8:03 ` [Bug tree-optimization/21676] " bonzini at gnu dot org
2009-02-16  9:04 ` [Bug tree-optimization/21676] [4.2/4.3 " bonzini at gnu dot org
2009-03-31 18:47 ` [Bug tree-optimization/21676] [4.3 " jsm28 at gcc dot gnu dot org
2009-04-22 15:10 ` 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=20080206110557.26444.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).