From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6B0773858C3A; Tue, 7 Feb 2023 13:39:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6B0773858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675777199; bh=zTqdTt69Ez/+NqRv5bFSdWkv/LdvnOjxGYrcZgNp6qU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WIsg5UMOP50B+Ntnnbh8CeUQlNLh8G3SeyqxfyF1wiAv3Pk8mp73QHYvbPtiTyYEx 7+4XtAeISmdTgfw/FQOi2jIMov4AaDWOB8got5VflLcVLjMxksude/ccD6TKK/DcDg NDHysTksE0KYFyL0ds6Tv1LlhTtYR94rrfsIV1z4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/26854] Inordinate compile times on large routines Date: Tue, 07 Feb 2023 13:39:54 +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: 4.3.0 X-Bugzilla-Keywords: compile-time-hog, memory-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit 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: --- 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=3D26854 --- Comment #144 from CVS Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:295adfc9ed20468cdaba3afe258d57b58a8df792 commit r13-5729-g295adfc9ed20468cdaba3afe258d57b58a8df792 Author: Richard Biener Date: Tue Feb 7 13:01:12 2023 +0100 tree-optimization/26854 - compile-time hog in SSA forwprop The following addresses tree forward propagate : 12.41 ( 9%) seen with the compile.i testcase of this PR which points at the has_use_on_stmt function which, for SSA names with many uses is slow. The solution is to instead of immediate uses, look at stmt operands to identify whether a name has a use on a stmt. That improves SSA forwprop to tree forward propagate : 1.30 ( 0%) for this testcase. PR tree-optimization/26854 * gimple-fold.cc (has_use_on_stmt): Look at stmt operands instead of immediate uses.=