From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4E383383C7EA; Tue, 13 Dec 2022 14:02:17 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4E383383C7EA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670940137; bh=S1nbqlNlqP/E09j/1R0EDESyt1Rhov7z0v9Fb1BaQlM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rPbkmB+SflAsNSHL9WQZfVm6N978UkS2ATBzRIkObK/2zYlz5LuExg9QWT8EZq+ZE HYbm8GRuXKR2Ht6R8+xIS+qub7oXJnlG08cdfPtpkrXGw5+Cjz7EKzN5W0EqUhXMXy RwPKpQqDjKcczGuzOBQR++Jn3WeKKUn9zbvraJ/4= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106514] [12/13 Regression] ranger slowness in path query Date: Tue, 13 Dec 2022 14:02:17 +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: 13.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D106514 --- Comment #11 from Richard Biener --- (In reply to Richard Biener from comment #10) > Re-confirmed. =3D15 vs =3D30 goes from >=20 > backwards jump threading : 0.58 ( 13%) >=20 > to >=20 > backwards jump threading : 7.00 ( 65%) >=20 > so it still shows exponential behavior for CFGs like >=20 > if (a) > ... > if (b) > ... > if (c) > ... >=20 > because we explore all paths through the CFG that fit in some size limit. > I'm not sure if there's any low hanging fruit besides this (like if we > properly avoid re-doing local computes when visiting blocks as part of a > path multiple times). We do have --param max-jump-thread-paths putting a hard limit on the number of branches in a paths we explore, the default might just be a bit high for this testcase.=