From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2E643858C66; Tue, 2 May 2023 14:35:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2E643858C66 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683038122; bh=9Jd8ROGv+s5L6q+gALlKbY3Dbzg+jsZ9MGNLsrqeO/g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YRkRAMEOPTM5wyP7oYLfplzYiX8C90Lfyx+N4A6e41wBTjaU3swW8wH0Y4Vk2/rjL PJiE5EOpEqMW5OGU3QossDw3ApwCsAUs5u+6Viu/U9dLUBfmv8LvDOJVrNiz9EkEkg f2JfoTB9OoF2g1yIoVx1FDaZZB9lXzjRQ1aB7mys= From: "aldyh at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109695] [14 Regression] crash in gimple_ranger::range_of_expr Date: Tue, 02 May 2023 14:35:22 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: aldyh at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: aldyh 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=3D109695 Aldy Hernandez changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |amacleod at redhat dot com --- Comment #4 from Aldy Hernandez --- Deep recursion in the ranger is causing us to run out of stack space. This failure coincides with switching the internal representation of irange's to wide_ints which take more space. The problem happens in the waccess pass and can be seen with: --param=3Dranger-debug=3Dall It looks like we start going bat shit crazy around: 2401 range_on_edge (_1011) on edge 1016->1017 2402 range_on_exit (_1011) from BB 1016 2403 range_of_expr(_1011) at stmt resx 4 2404 range_on_entry (_1011) to BB 1016 2405 range_of_stmt (_1011) at stmt _1011 =3D PHI <_1947(3= ), _1010(1013)>=