From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 48B80392DFEE; Fri, 7 Jun 2024 08:14:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 48B80392DFEE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1717748094; bh=y93I9Dgk0cZQD3hJvti2TIPVlHOAQYZjyNB9FMYPiZU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=tuPlVpfK4VNwn5t106ZPI+IHz2XaYzKq/RBiTqSdP2Xr+dr/G/Xk80K4OAAbB/7zg Q/prPivTEB8OLUOJvtrdhIes5iQFIyy2JM8TfXZPcjUnQk9h5ZEFT6KA2CirngdHWd iwYdNOFM9pfU64bMgm57SqD4eGE0SoAvPlVO34TE= From: "linkw at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115355] [12/13/14/15 Regression] vectorization exposes wrong code on P9 LE starting from r12-4496 Date: Fri, 07 Jun 2024 08:14:53 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.1 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: linkw at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: linkw at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.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=3D115355 --- Comment #11 from Kewen Lin --- (In reply to Jens Seifert from comment #10) > Does this affect loop vectorize and slp vectorize ? >=20 > -fno-tree-loop-vectorize avoids loop vectorization to be performed and > workarounds this issue. Does the same problems also affect SLP > vectorization, which does not take place in this sample. >=20 > In other words, do I need > -fno-tree-loop-vectorize > or > -fno-tree-vectorize > to workaround this bug ? Since it's an issue on vector merge insn patterns in target code and vectorization just exposes it, it's hard to workaround this bug completely = just by disabling both loop and slp vectorization, as its related bug PR106069 shows, even without vectorization but using some vec merge built-ins, it's still possible to hit this issue. But I'd expect disabling both loop and s= lp vectorization (-fno-tree-vectorize) can greatly reduce the possibility of encountering it.=