From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2CA913857C4E; Fri, 10 Dec 2021 13:17:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2CA913857C4E From: "roger at nextmovesoftware dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/103641] [11/12 regression] Severe compile time regression in SLP vectorize step Date: Fri, 10 Dec 2021 13:17:09 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: roger at nextmovesoftware dot com 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: 11.3 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2021 13:17:10 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103641 Roger Sayle changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |roger at nextmovesoftware = dot com --- Comment #18 from Roger Sayle --- Hm. PR 87256 was much easier to diagnose, as the cost of multiplication on hppa64 was 20-30 ALU instructions, so a single pathological multiplier would combinatorially challenge synth_mult. The new costs on AArch64 have a vect= or multiplication cost of 4, which is very reasonable. But I did see somewher= e in Andre's patch that had an ALU cost of COSTS_N_INSNS(0), which would fool synth_mult that it's allowed/beneficial to use an infinite number of ALU instructions to avoid a single multiplication. Likewise, the very cheap (f= ree) shifts on ARM. But this is just guess work; a reduced testcase that exhibi= ts the problem would be helpful.=