From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1F12A385EC55; Wed, 14 Oct 2020 15:03:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F12A385EC55 From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97359] [11 Regression] ice in logical_combine, at gimple-range-gori.cc:754 Date: Wed, 14 Oct 2020 15:03:50 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: amacleod at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 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 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: Wed, 14 Oct 2020 15:03:51 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97359 --- Comment #7 from Andrew Macleod --- There is no need to cache non-logical operands. Processing a relational suc= h as <,>,<=3D,>=3D is a linear process, and therefore we never needed to cache t= hem. && and || is exponential as we have to evaluate=20 op1_true, op1_false, op2_true, and op2_false=20 and the resulting 4 combinations... so each logical operand can trigger 4 lookup calculations.. and when they feed into each other the on-demand look= ups become exponential quite quickly..=20 the cache makes processing them linear as well. Before the next stage 1 opens, I plan to rework the GORI computations to be more efficient on calculating outgoing ranges.=