public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "tomstdenis at iahu dot ca" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug tree-optimization/16962] loop unrolling with x86-64 asm not efficient
Date: Tue, 10 Aug 2004 14:13:00 -0000	[thread overview]
Message-ID: <20040810141355.14144.qmail@sourceware.org> (raw)
In-Reply-To: <20040810134244.16962.tomstdenis@iahu.ca>


------- Additional Comments From tomstdenis at iahu dot ca  2004-08-10 14:13 -------
(In reply to comment #1) 
> Please use the attachment function for large files in the future. Note also 
> we don't want assembly output anyway (as stated on 
http://gcc.gnu.org/bugs.html). 
 
Ooops sorry. 
 
> Loop work is currently only being done at the lno-branch. It would be nice 
> if you could test it there. 
 
I'll have to ask.  I'm using someone else box atm. 
  
> Also, this way of unrolling loops doesn't seem fundamentally wrong to me 
> Can you provide performance numbers that show that it is worse? 
 
No because I can't get it to compile the other way ;-( that's the point! 
 
>From what I can see the bug [maybe in my code]?  Is that I do things like  
 
mulq (%1) 
 
So GCC doesn't realize it can mod that and do  
 
mulq 0(%1) 
...next iteration 
mulq 8(%1) 
...next iteration 
mulq 16(%1) 
 
So instead it does 
 
mulq 0(%1) 
... 
lea 8(%some_register),%some_other 
mulq (%some_other) 
... 
 
Is my ASM code just wrong (in that I mean I'm not making best use of it?) or 
is this a legit chance for GCC to optimize better? 
 
>  
 
 

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
  GCC build triplet|x86_64-linux                |x86_86-linux
   GCC host triplet|x86_64-linux                |x86_86-linux
 GCC target triplet|x86_64-linux                |x86_86-linux


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


  parent reply	other threads:[~2004-08-10 14:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-10 13:42 [Bug c/16962] New: " tomstdenis at iahu dot ca
2004-08-10 14:09 ` [Bug tree-optimization/16962] " falk at debian dot org
2004-08-10 14:10 ` falk at debian dot org
2004-08-10 14:13 ` tomstdenis at iahu dot ca [this message]
2004-08-10 14:23 ` pinskia at gcc dot gnu dot org
2004-08-10 14:55 ` falk at debian dot org
2004-08-24 21:06 ` falk at debian 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=20040810141355.14144.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).