public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/50962] New: Additional opportunity for AGU stall avoidance optimization for Atom processor
@ 2011-11-02 12:00 izamyatin at gmail dot com
  2011-11-02 12:01 ` [Bug target/50962] " izamyatin at gmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: izamyatin at gmail dot com @ 2011-11-02 12:00 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50962
           Summary: Additional opportunity for AGU stall avoidance
                    optimization for Atom processor
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: izamyatin@gmail.com


We have now following code for attached testcase:

foo:
.LFB0:
        .cfi_startproc
        movl    4(%esp), %eax
        testl   %eax, %eax
        je      .L4
        xorl    %ecx, %ecx
        jmp     .L3
        .p2align 4,,7
        .p2align 3
.L5:
        movl    %eax, %ecx
        movl    %edx, %eax
.L3:
        movl    (%eax), %edx <--- AGU stall here on Atom since eax produced on
previous cycle. We should use lea in previous instruction.
        movl    %ecx, (%eax)
        testl   %edx, %edx
        jne     .L5
        ret
.L4:
        xorl    %eax, %eax
        ret
        .cfi_endproc

 So we can use lea before movl (%eax), %edx which is better for Atom.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-05-14  2:25 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-02 12:00 [Bug target/50962] New: Additional opportunity for AGU stall avoidance optimization for Atom processor izamyatin at gmail dot com
2011-11-02 12:01 ` [Bug target/50962] " izamyatin at gmail dot com
2011-11-02 13:06 ` enkovich.gnu at gmail dot com
2011-11-02 13:06 ` enkovich.gnu at gmail dot com
2011-11-07  8:47 ` kyukhin at gcc dot gnu.org
2011-12-15  0:29 ` pinskia at gcc dot gnu.org
2011-12-15  4:53 ` izamyatin at gmail dot com
2013-05-14  2:25 ` dirtyepic at gentoo dot org

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).