From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 129F03858CD1; Thu, 28 Sep 2023 07:06:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 129F03858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695884771; bh=WZYRzr2hH9lS7UNsQBL9DshNWtTxYYIw9JHfHa2dcNw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=THA/WQLnf1wdCatWFKMkelbWr2RpyzSsXssjIxbH+Mvx8LAI0Exr9BAQKUy/gjegP 3gyEeqzZyif/v0Y0oJD+26QYXJ5v3lM6NHTOQC6mWtTiW8ijr5w1o/WjRnvwo8LKrv j+XKmnQ+4/JZupcZawdY1rRz2XN1fJib9op+YJDY= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/64928] [11 Regression] Inordinate cpu time and memory usage in "phase opt and generate" with -ftest-coverage -fprofile-arcs Date: Thu, 28 Sep 2023 07:06:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 4.9.2 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: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to cf_known_to_fail cc cf_known_to_work bug_status short_desc 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=3D64928 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|rguenth at gcc dot gnu.org |unassigned at gcc d= ot gnu.org Known to fail| |11.4.0 CC| |rguenth at gcc dot gnu.org Known to work| |12.1.0, 13.1.0, 14.0 Status|ASSIGNED |NEW Summary|[11/12/13/14 Regression] |[11 Regression] Inordinate |Inordinate cpu time and |cpu time and memory usage |memory usage in "phase opt |in "phase opt and generate" |and generate" with |with -ftest-coverage |-ftest-coverage |-fprofile-arcs |-fprofile-arcs | --- Comment #44 from Richard Biener --- I tried the first input file with GCC 13.2 and on a Ryzen 9 7900X get a mem= ory usage of 105MB and 1.1s compile-time. The larger testcase needs 360MB peak and 6.3s to compile. Both with mostly flat -ftime-report profile. Upping to -O2 shows same memory peak but 13.1s for the larger testcase. We then see PRE : 2.09 ( 16%) 0.01 ( 1%) 2.15 ( = 15%) 288k ( 0%) as the biggest thing sticking out (similar for the small testcase). I think we've come a long way here. GCC 12.3 behaves the same. For GCC 11= .4 the larger testcase at -O2 I stopped after 3 minutes, the small testcase at= -O1 takes 44s and 5GB memory. Fixed for GCC 12+, I'm not going to look at identifying what to backport (I usually backported compile-time/memory-usage improvements when reasonable, = so I suspect this was a bigger change).=