From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12267 invoked by alias); 29 Feb 2012 03:24:02 -0000 Received: (qmail 12238 invoked by uid 22791); 29 Feb 2012 03:24:01 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 29 Feb 2012 03:23:48 +0000 From: "jiangning.liu at arm dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/52424] dom prematurely pops entries from const_and_copies stack Date: Wed, 29 Feb 2012 03:42:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jiangning.liu at arm dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: wschmidt at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-02/txt/msg02757.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52424 --- Comment #1 from Jiangning Liu 2012-02-29 03:23:46 UTC --- > I've attached a proposed fix. Jiangning, can you please apply this and see if > your performance problem is resolved? Bill, Confirmed, I think your patch works for my big case and I do see the redundant copies are removed from final binary code. Benchmark performance boosts accordingly as well, although there still might be other potential problems. Thanks a lot for your quick patch. And are you going to check-in to trunk soon for 4.7? It would be also better if you can add a test case. -Jiangning