From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 395AC3858C33; Fri, 12 Apr 2024 10:37:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 395AC3858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712918256; bh=0Y8UN8tc4D8pOmUx4cYrzT0SEn2P5v6L369th3oXDBk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Nd9rmU2QzqfmZ30VpI8Nhsjql8U8F71rglTDOQbPerA9yxVYRjqECiA/LtOw3Klzp LqFcu0fvivFdEhfnwrUlSfLjTnE0Ndkgn9fXo+yfRkfUUdEmXhI4825o17TORKEnL6 XM415QYpplBsUOPT34t+DI8uyfVz1SRKxCq58p5Y= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114403] [14 regression] LLVM miscompiled with -O3 -march=znver2 -fno-vect-cost-model since r14-6822-g01f4251b8775c8 Date: Fri, 12 Apr 2024 10:37:34 +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: tnfchris at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D114403 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rsandifo at gcc dot gnu.org --- Comment #25 from Richard Biener --- That means, when the loop takes the early exit we _must_ take that during the vector iterations. Peeling for gaps means if we would take the early exit during one of the gap peeled iterations this is a conflicting requirem= ent. Now - the current analysis guarantees that the early exit conditions can be safely evaluated even for the gap iterations, but not the following code when the early exit is _not_ taken. So peeling for gaps and early exit vect are not compatible?=