From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1AA953858C60; Tue, 31 Oct 2023 15:52:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1AA953858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698767573; bh=My2DwmykA6nO+m/oXgfudlO71JZPeWue4zT4vYxDwDs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=M8dX9yC9YIUJ1vhVNrjHVJqwcKfnyiwyt4QJjGTt11nvlusfJDDoJqf/s7mwYBIP3 zlzeNBMYxR19Ni9XwdOaBDpMne7pKagEVpdBuAKqok+zqk2V+B8Ywz3DjmDbIQ1cCf 2LEmwHTHdQyeRithjwJYHhwg1/02KaXIgAs8B/Uo= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112310] [14 Regression] Wrong code at -O2/3 on x86_64-linux-gnu since r14-1161-g5476de2618f Date: Tue, 31 Oct 2023 15:52:52 +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: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D112310 --- Comment #2 from Richard Biener --- So this really asks for the change to be reverted which requires us to "properly" handle virtual operands in the expression sets. Namely in compute_avail populate EXP_GEN with reference expressions with the virtual operand live at the start of the block. And in prune_clobbered_mems rewrite them as well.=