From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 47AE33858D1E; Tue, 7 Nov 2023 03:27:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 47AE33858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699327623; bh=ASI+ZgXfgZGgoeNMuSIdZFQ8uFz66ZgAjoy0JAhHzT4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=l7zxuom+BGalozcoFMaw+ve+miAujPnxUxJsfYaG6/vAdCJTlHtwOfUReO5M7H/oV 9YFv39zBOUfM8ogo+g4OkGMoBCf6aHLE1KKvrwVsw+K0jUqlrehGnLCjATxyOZpI7h huoVSd5GOBfNhT+1UYtY7V7r+4VAEQsWknG3aMQA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112402] [11/12/13/14 Regression] Path splitting causes if-conversion miss Date: Tue, 07 Nov 2023 03:27:02 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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=3D112402 --- Comment #2 from Andrew Pinski --- The orginal threads about patch splitting: https://gcc.gnu.org/legacy-ml/gcc/2015-03/msg00057.html https://gcc.gnu.org/pipermail/gcc/2015-May/217495.html > or axe path splitting or move it to RTL Jeff had a similar idea back in 2016 (I would assume while he was looking i= nto PR 68541): https://gcc.gnu.org/pipermail/gcc-patches/2016-February/441651.html : ``` And if that's the case, then we may really be looking at something that=20 belongs at the RTL level rather than at the tree/gimple level. Sadly,=20 it's harder to do things like duplicate blocks at the RTL level. ``` and also mentioned in (which was the heustrics added to fix PR 68541): https://gcc.gnu.org/pipermail/gcc-patches/2016-February/441841.html Maybe this is something for GCC 15 ... to move to this to RTL right during = the loop optimization phase after pass_rtl_doloop. There is still a CSE and DSE= /DCE passes afterwards too.=