From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 68C613858438; Thu, 10 Nov 2022 13:37:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68C613858438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668087443; bh=2dTwAzlXjBDOCeYrw7KwuHS4l3fcEJfeo0sFCNxE4KQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kIMd77eZrXfy/NbcNYcsfj+dIsL1BfpyHpObchlNUGU7Vni9wqFJEjxDOfaTz1LCl /7hgsJqiynUjWvYBtC7iGOG3vap/AnwooqDzu003F/OjkYeTR+iWZeUQrOQxvYErfN QJvhKdjfQd0Fx02hj/ZezAciFXM+IwDe2fp36eWM= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/84646] Missed optimisation for hoisting conditions outside nested loops Date: Thu, 10 Nov 2022 13:37:21 +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: 8.0.1 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org 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: --- 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=3D84646 --- Comment #9 from Richard Biener --- I have a patch to make forwprop do the loop PHI elimination but then there'= s no CD-DCE pass after that to remove the loop itself :/ It might be tempting to swap cddce3 and dce7 or turn dce7 into a cd-dce ...=