From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 199683858C53; Tue, 28 Mar 2023 08:54:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 199683858C53 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1679993653; bh=Tdg5wwRZGKjYGIARtM+lUDZHqV2q+a3DlV63m8+ZJJQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LJIEMTMLmzjYVGxWiWLtn2RbPULxuBS41FVVcpPAjYhkYr2DsMSJwtbFkohhMtT6n usUOf6m0iRkruYY1Ob+AczIpH3ksghB0rDWY3WpTXCzW4m/8yGu/fJptSdSmf7FWy+ NFBqmsvPMR/mhudXeQQV1pIOUro/vNze2NXMEyNo= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/84402] [meta] GCC build system: parallelism bottleneck Date: Tue, 28 Mar 2023 08:54:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: unknown X-Bugzilla-Keywords: build, meta-bug X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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=3D84402 --- Comment #62 from Jakub Jelinek --- Looking at gimple-match.cc, the case CFN_BUILT_IN_ATOMIC_FETCH_OR_{1,2,4,8,= 16}: etc. blocks are identical there, except for the numbers in next_after_fail* label numbers. So, could we perhaps expand everything the way we do and just when emitting= a switch hash the subtree of the cases to be emitted and if the hashes are equal also compare and if the subtrees are the same (=3D=3D would result in the same text being emitted into the output except for the label numbers) emit multiple cases with the same block? Admittedly I haven't looked yet at the data structures genmatch.cc uses bef= ore emitting the source, so don't know whether it is feasible.=