From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AB2D13858428; Fri, 23 Feb 2024 07:01:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AB2D13858428 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1708671677; bh=zluFKhzBh142JKF4aIK4792dIQZn4sA5MianNqFPnF0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=vpaV6AiQSFNNnwlOgXSYRnA5Iw+onQJmWo79+q1w1xl1GZGge3PtbDNPX5J5QdBya eEe7Byt9qJxUdDGoWLzh7mzPY9xM+ULoOi+/2rXo9WzaIPWUUxj23IPnRvgXzH4q93 8SYfNDQ9p4Rkn/1qcIJsAj87NCj5KwNKxTSYU4gA= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114061] GCC fails vectorization when using __builtin_prefetch Date: Fri, 23 Feb 2024 07:01:16 +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: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D114061 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rguenth at gcc dot gnu.org --- Comment #5 from Richard Biener --- I think we could try to "vectorize" them by only updating the address (the builtin doesn't specify a size) when that evolves in the scalar loop, updat= ing the step with the chosen VF. Dependence shouldn't be a concern here. The main issue is a representational - how to handle this in data-ref and dependence analysis (or whether to just "skip" them in the vectorizer).=