From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 693D43857733; Tue, 4 Jul 2023 12:16:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 693D43857733 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688473011; bh=Jjuy6xzPqXI3vyZ7awpbfMCaNDj0uETkQGKY5kek62Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wznhKzZwMOZhu2qfA0pUgDBkkmZJajc9jRD0y8Z7UM6sIFeaWTR475wUZDw9JoRDj 6xutfdCoXHGf4kHtvAQQhRHs9PFfLC7SG51F6YBhvVDhrYmjz9IrUmV1D5wF6GgN0/ WsLAa/m/FrCC+aLGYLmxVmgbo1DAeQrn2CbdwK5Y= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110491] Wrong code at -O2 on x86_64-linux-gnu (a recent regression) Date: Tue, 04 Jul 2023 12:16:51 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth 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: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110491 --- Comment #3 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:819285ef10a87d663f8c181c06aa88d1d9f75aed commit r14-2296-g819285ef10a87d663f8c181c06aa88d1d9f75aed Author: Richard Biener Date: Tue Jul 4 12:52:27 2023 +0200 tree-optimization/110491 - PHI-OPT and undefs The following makes sure to not make conditional undefs in PHI arguments unconditional by folding cond ? arg1 : arg2. PR tree-optimization/110491 * tree-ssa-phiopt.cc (match_simplify_replacement): Check whether the PHI args are possibly undefined before folding the COND_EXPR. * gcc.dg/torture/pr110491.c: New testcase.=