From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25835 invoked by alias); 30 May 2013 10:53:43 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 25810 invoked by uid 48); 30 May 2013 10:53:38 -0000 From: "ysrumyan at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/57468] New: [4.9 Regression] 26% performance drop on important benchmark after r199298. Date: Thu, 30 May 2013 10:53:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ysrumyan at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-05/txt/msg02093.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57468 Bug ID: 57468 Summary: [4.9 Regression] 26% performance drop on important benchmark after r199298. Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: ysrumyan at gmail dot com We found significant performance drop after changes in lra phase, which can be demonstrated on example from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55342 I will attach test-case. And we can see that redundant spill/reload was generated for inner loop that leads to performance degradation: .L4: movl %esi, %edx addl $4, %eax subl %edx, %ebx subl %edx, %ecx movzbl (%esp), %edx movb %cl, -3(%eax) movl %esi, %ecx movl %esi, (%esp) <<-- redundant spill movb %bl, -4(%eax) movzbl (%esp), %ebx <<-- redundant fill subl %ecx, %edx movb %dl, -2(%eax) cmpl %ebp, 4(%esp) movb %bl, -1(%eax) je .L1