From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 864D0385E83A; Fri, 31 May 2024 08:26:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 864D0385E83A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717143962; bh=4XGMF9PCt1gj5zqtTwB40W7n2qOGrg+2F1doloQUAjU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GB6SFsKoopQA64kix+g0x77QOazi+kEWidU2HjruVVnlb1DqdDIWnIkcT2Yg4rfj9 lEJBV0Sp7u4va9dhGkterNBBrgRZNqXdMMD8YDziIuhRkmcnkwgKi/eoRG6reOujvX aQyOe9W+sAYkqC+kdrKZSNJumnc+QmbaNOWkHQTs= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/115278] [13/14/15 Regression] -ftree-vectorize optimizes away volatile write on x86_64 since r13-3219 Date: Fri, 31 May 2024 08:25:58 +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.1.1 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: P2 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.4 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=3D115278 --- Comment #6 from Richard Biener --- (In reply to avieira from comment #5) > > I think we fixed similar bug on the read side. >=20 > I don't have the best memory, but the one I can remember is PR 111882, wh= ere > we had the SAVE_EXPR. And the the fix was to not lower bitfields with > non-constant offsets. >=20 > Should dse_classify_store not return *_DEAD for volatiles? It's a low-level worker, it relies on the caller to have performed sanity checking on the stmt itself. I'm testing a patch doing that.=