public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58459] New: [4.9 regression] Loop invariant is not hoisted out of loop after r202525.
@ 2013-09-18 10:48 ysrumyan at gmail dot com
  2013-09-18 10:51 ` [Bug tree-optimization/58459] " ysrumyan at gmail dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: ysrumyan at gmail dot com @ 2013-09-18 10:48 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58459
           Summary: [4.9 regression] Loop invariant is not hoisted out of
                    loop after r202525.
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ysrumyan at gmail dot com

We noticed significant performance regression on important bench from eembc2.0
suite which can be exhibit with attached test-case.

Assembly produced compiler prior to r202525 for innermost loop:

.L18:
    movl    %esi, %ebp
    movl    8(%eax), %edx
    sall    %cl, %ebp
    movl    12(%eax), %eax
    testl    %ebp, %ebx  <-- p->key is hoisted out of loop
    cmove    %edx, %eax
    movl    %ecx, %edx

but assembly produced compiler after r202525 contains redundant load:

.L17:
    movl    %esi, %ebp
    movl    8(%eax), %edx
    sall    %cl, %ebp
    movl    12(%eax), %eax
    testl    %ebp, (%ebx)  <-- p->key is not hoisted out of loop
    cmove    %edx, %eax
    movl    %ecx, %edx

The test-case must be compiled with -Ofast -m32 -march=atom -mtune=atom
options.


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

end of thread, other threads:[~2013-09-27  9:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-18 10:48 [Bug tree-optimization/58459] New: [4.9 regression] Loop invariant is not hoisted out of loop after r202525 ysrumyan at gmail dot com
2013-09-18 10:51 ` [Bug tree-optimization/58459] " ysrumyan at gmail dot com
2013-09-18 10:58 ` rguenth at gcc dot gnu.org
2013-09-18 11:13 ` rguenth at gcc dot gnu.org
2013-09-18 11:18 ` mpolacek at gcc dot gnu.org
2013-09-18 11:28 ` rguenth at gcc dot gnu.org
2013-09-18 13:56 ` rguenth at gcc dot gnu.org
2013-09-27  8:15 ` rguenth at gcc dot gnu.org
2013-09-27  9:42 ` rguenth at gcc dot gnu.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).