From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AFF413858C53; Wed, 8 Feb 2023 17:50:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AFF413858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675878642; bh=ZiyoLaBrnmohsiHw4Cf4hJd0ngegfKPSMJOavsxZ8Q4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oC+Oz5ooeKAs3KbEzNM39eTQv/jZgtKf2WnDUyEmHWZXcaWzVF6pUQ+Kt2Jo49YFU XgTJIt+D6ON/qS3mLrVksbEjVkevCU3E5T5Wg1H3QzmBlvZRWxIJixTa0I7EEVU7L2 6eJod/sHmaFUgp/GMBEdYVDkN9A3UeJfO5GnpFtk= From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108696] querying relations is slow Date: Wed, 08 Feb 2023 17:50:41 +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: 13.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: amacleod at redhat dot com 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: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created 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=3D108696 --- Comment #2 from Andrew Macleod --- Created attachment 54437 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D54437&action=3Dedit possible patch This patch should successfully short circuit unnecessary checks. untested in compiler.i Where did you get a 17% time in DOM? when I run compiler.i I get dominator optimization : 38.28 ( 2%)=20 where most of the time is in machine dep reorg :1447.64 ( 60%)=20 I'll check this patch for correctness and to see if it generally makes any = time improvements that are measurable elsewhere.=