From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2C99E385085B; Wed, 15 Mar 2023 09:48:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2C99E385085B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678873700; bh=5zLvDw7EnDBzO7zuPSa+/L6tq3vpscOubLJAscKVlLg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SqZenIEm9crlPIFRDXMAq1ZgwZndndlty2BkJkha3ZqdSutwrNvRdR5YH++XZAj/L kb3SeizUEReF9njlzkudC9LiRKIul64mLdWM7ckckRHS7ZZ2iK92qV8i2ft7MehQxI Wf1c7L23UVywbsj85QrrOhYT/HAvfQshOy+r99E4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108821] [11/12 Regression] LIM reissuing a violatile store when it cannot/should not Date: Wed, 15 Mar 2023 09:48:19 +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.1.0 X-Bugzilla-Keywords: wrong-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: 11.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=3D108821 --- Comment #6 from CVS Commits --- The releases/gcc-12 branch has been updated by Richard Biener : https://gcc.gnu.org/g:dbbbaed64f39aae57f5f167174121c1be9d18282 commit r12-9261-gdbbbaed64f39aae57f5f167174121c1be9d18282 Author: Richard Biener Date: Fri Feb 17 12:36:44 2023 +0100 tree-optimization/108821 - store motion and volatiles The following fixes store motion to not re-issue volatile stores to preserve TBAA behavior since that will result in the number of volatile accesses changing. PR tree-optimization/108821 * tree-ssa-loop-im.cc (sm_seq_valid_bb): We can also not move volatile accesses. * gcc.dg/tree-ssa/ssa-lim-24.c: New testcase. (cherry picked from commit 4c4f0f7acd6b96ee744ef598cbea5c7046a33654)=