From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29067 invoked by alias); 5 Sep 2014 22:24:07 -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 28347 invoked by uid 55); 5 Sep 2014 22:24:01 -0000 From: "eraman at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/62146] CSE replaces constant with an expression incorrectly Date: Fri, 05 Sep 2014 22:24: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.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: eraman at gcc dot gnu.org 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: 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: 2014-09/txt/msg01167.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62146 --- Comment #2 from eraman at gcc dot gnu.org --- Author: eraman Date: Fri Sep 5 22:23:26 2014 New Revision: 214977 URL: https://gcc.gnu.org/viewcvs?rev=214977&root=gcc&view=rev Log: 2014-09-05 Easwaran Raman PR rtl-optimization/62146 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of hoisted instruction unconditional. testsuite: * testsuite/g++.dg/opt/pr62146.C: New. Added: trunk/gcc/testsuite/g++.dg/opt/pr62146.C Modified: trunk/gcc/ChangeLog trunk/gcc/ifcvt.c trunk/gcc/testsuite/ChangeLog