From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 58BC33858C5E; Thu, 12 Oct 2023 11:50:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 58BC33858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1697111402; bh=lFXQzOrA932OlFqZT4YbLT5Qyrwar54ex+bjG6TJxOY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ymhsFToS+jXcesLuTIl27fOXGfFgAVb2rR4hgocUOHDrziAd7C6hcedPHT18uIDPW WYTq39diPIBIgCFSxQzF6pU3v7u9jUsqtqQb1b4jDiZ2fj9ahiSJLlwHO667TDUL/R r3lLY0CiGw57SvP9aHgLHuXDHgSoAmb1Cjfgvhu8= From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111600] [14 Regression] RISC-V bootstrap time regression Date: Thu, 12 Oct 2023 11:50:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: compile-time-hog, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp 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: 14.0 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=3D111600 --- Comment #23 from Robin Dapp --- For the lack of a better idea (and time constraints as looking for compiler bottlenecks is slow and tedious) I went with Kito's suggestion of splitting insn-emit.cc This reduces this part of the compilation with eight threads to 40s (from 10 min before). I evenly split the number of patterns into the 10 files but it just so happens that the last file will receive all the problematical maybe_code_for functions, so that file makes up for most of the 40s. The r= est usually takes 5-20s. Doing bootstrapping tests now, going to post an initial patch once it's "presentable".=