From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6FD5B3858416; Sun, 28 May 2023 20:40:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6FD5B3858416 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685306447; bh=6cO6xOMBxdYlWlWBAmsroeBPZLHJ7dR5Y1s8O10Hf5Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yV0XIpHmNDob36Z15/AtiJdZyJ4dp82uujAnXaRcXFv8Y6b80Za2Kq9gpIQLK+W9p ux507Qso9VDuN0nPprvg6OVVvHDzRwjTahbRJuPNejqscwtGnxqFZREXbavZF8F1l0 bfZqwpidEiBylDThLjDYco1HbhKlR0vB7IEYLcBg= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109985] __builtin_prefetch ignored by GCC 12/13 Date: Sun, 28 May 2023 20:40:46 +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: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D109985 --- Comment #6 from Jan Hubicka --- Created attachment 55180 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55180&action=3Dedit untested patch It turns out that as modref was written for memory loads/stores only and la= ter side effects discovery was retrofitted, I forgot to revisit code handling C= ONST and NOVOPS together. There are quite few places where we can not short-circ= uit on NOVOPS and be sure we merge in the side effects and determinism flags.=