From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31437 invoked by alias); 1 Feb 2015 17:33:56 -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 31313 invoked by uid 55); 1 Feb 2015 17:33:52 -0000 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/63637] [4.9 Regression] CSE on x86 asm()-s no longer working due to PR/60663 fix Date: Sun, 01 Feb 2015 17:33:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 4.9.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2015-02/txt/msg00040.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63637 --- Comment #4 from Jakub Jelinek --- Author: jakub Date: Sun Feb 1 17:33:19 2015 New Revision: 220323 URL: https://gcc.gnu.org/viewcvs?rev=220323&root=gcc&view=rev Log: Backported from mainline 2015-01-23 Jakub Jelinek PR rtl-optimization/63637 PR rtl-optimization/60663 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST if elt->cost is MAX_COST for ASM_OPERANDS. (find_sets_in_insn): Fix up comment typo. (cse_insn): Don't set src_volatile for all non-volatile ASM_OPERANDS in PARALLELs, but just those with multiple outputs or with "memory" clobber. Set elt->cost to MAX_COST for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST if new_src is ASM_OPERANDS and elt->cost is MAX_COST. * gcc.dg/pr63637-1.c: New test. * gcc.dg/pr63637-2.c: New test. * gcc.dg/pr63637-3.c: New test. * gcc.dg/pr63637-4.c: New test. * gcc.dg/pr63637-5.c: New test. * gcc.dg/pr63637-6.c: New test. * gcc.target/i386/pr63637-1.c: New test. * gcc.target/i386/pr63637-2.c: New test. * gcc.target/i386/pr63637-3.c: New test. * gcc.target/i386/pr63637-4.c: New test. * gcc.target/i386/pr63637-5.c: New test. * gcc.target/i386/pr63637-6.c: New test. Added: branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-1.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-2.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-3.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-4.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-5.c branches/gcc-4_9-branch/gcc/testsuite/gcc.dg/pr63637-6.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-1.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-2.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-3.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-4.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-5.c branches/gcc-4_9-branch/gcc/testsuite/gcc.target/i386/pr63637-6.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/cse.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog