From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7CDB1398683E; Fri, 11 Sep 2020 12:12:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CDB1398683E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599826332; bh=Etnp78PaKpzPmJio9VWERm3qQ0tzUWuBAk+C1uPXHE8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=C59+wwsxCD3pErW3hB9qzJNqFtgQLqCjv6jxynvI4KbPyf1PPtFESofHpb3H2KGOY JqomXAWfDZhz8omtsmtJJ/5aVZKpwzONSBIwVRT1uzRBERfOIhrNfrmTFzt2pn5ATx aIoCTNl6Xx2rVOt9mtEWlxqIgICQALfiYu8Qotqk= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/96370] [8/9/10 Regression] ICE with -ffast-math since r7-950-g8a85cee26eabf5cf Date: Fri, 11 Sep 2020 12:12:12 +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-Version: 11.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Sep 2020 12:12:12 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96370 --- Comment #8 from CVS Commits --- The releases/gcc-10 branch has been updated by Richard Biener : https://gcc.gnu.org/g:819fc71b49af8366e6b23d2b57ebb6fb66f1a292 commit r10-8748-g819fc71b49af8366e6b23d2b57ebb6fb66f1a292 Author: Richard Biener Date: Thu Jul 30 10:24:42 2020 +0200 tree-optimization/96370 - make reassoc expr rewrite more robust In the face of the more complex tricks in reassoc with respect to negate processing it can happen that the expression rewrite is fooled to recurse on a leaf and pick up a bogus expression code. The following patch makes the expression rewrite more robust in providing the expression code to it directly since it is the same for all operations in a chain. 2020-07-30 Richard Biener PR tree-optimization/96370 * tree-ssa-reassoc.c (rewrite_expr_tree): Add operation code parameter and use it instead of picking it up from the stmt that is being rewritten. (reassociate_bb): Pass down the operation code. * gcc.dg/pr96370.c: New testcase. (cherry picked from commit 2c558d2655cb22f472c83e8296b5cd2a92365cd3)=