From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 107103858C2A; Tue, 12 Dec 2023 16:26:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 107103858C2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1702398368; bh=tJmqjEl6oCV926OU0kI+EUYdaSA5JP3wAifptr4nRqs=; h=From:To:Subject:Date:In-Reply-To:References:From; b=UxvFu4BNvqczSvp7zBFPNr5M0datrR9Dob5Ujh6a0qpdP7HD4SQ/uaItmsKS4qvex zLsnrALQdW7WsovmfrclhF412d25dA/ftS9iKlaXZQbpVwAmA2+EsgoPvseIreIX5U 5/0SZdhZ4BVaRRxN/jLddhVajS+07WHlWSeyXFu0= From: "tnfchris at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/110625] [14 Regression][AArch64] Vect: SLP fails to vectorize a loop as the reduction_latency calculated by new costs is too large Date: Tue, 12 Dec 2023 16:26:06 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: tnfchris at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: rsandifo at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D110625 --- Comment #22 from Tamar Christina --- Bisected the remaining regression to: dd86a5a69cbda40cf76388a65d3317c91cb2b501 is the first bad commit commit dd86a5a69cbda40cf76388a65d3317c91cb2b501 Author: Richard Biener Date: Thu Jun 22 11:40:46 2023 +0200 tree-optimization/96208 - SLP of non-grouped loads The following extends SLP discovery to handle non-grouped loads in loop vectorization in the case the same load appears in all lanes. It looks like our cost model doesn't handle this change correctly, so we over-vectorize MorphologyApply.constprop.0. The resulting code is significantly slower due to all the lane shufflings to prepare the vector. Reducing a testcase...=