From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 90DEA3858423; Thu, 9 Feb 2023 07:54:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 90DEA3858423 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675929288; bh=sRcai7rGG/TBlfe4NQKnVPe4ci0wEMvTjwebJpLQb+4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Z74hjkrhJD9KSyItyB1RiOvTewbn9KsocSBUm+GgjJmAhMkB1FfRf859xWXjYyT0+ Qsei/cMevINmaR4rx31q/gMZS74FBu8DHmGb30wvQbzFnziI3qIayLqNbaQMWCcZ1z RMedc5Ox2GB3coqCVyP/j0k8z6c4KsHaCgircanQ= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/26854] Inordinate compile times on large routines Date: Thu, 09 Feb 2023 07:54:47 +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: rguenth 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 #148 from Richard Biener --- (In reply to lucier from comment #145) > Created attachment 54424 [details] > CPU and Memory usage reports for mainline 13.0.1 (mainline) >=20 > Thank you for looking at this issue again. >=20 > I built today's mainline and ran three tests: >=20 > /pkgs/gcc-mainline/bin/gcc -v -c -O2 -fmem-report -ftime-report compiler.i > -save-temps >& report-compiler4 > /pkgs/gcc-mainline/bin/gcc -v -c -O2 -fmem-report -ftime-report all.i > -save-temps >& report-all4 > /pkgs/gcc-mainline/bin/gcc -v -c -O2 -fmem-report -ftime-report _num.i > -save-temps >& report-_num4 >=20 > The reports are collected here. Compiling compiler.i required over 30GB = at > certain points. I haven't really studied these types of reports in a whi= le, > so I can offer little analysis. Yes, I've mostly looked at performance with -O1 since that's what we suggest if -O2+ run into issues. That seems to be in check with GCC 13, memory peak is at ~1GB for me for compiler.i I'll look at -O2 now, the mdreorg thing seems "new" (DF RD is a known source of issues here ...).=