From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D384D3858024; Fri, 26 Mar 2021 10:11:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D384D3858024 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/99785] Awful lot of time spent building gl.cc in Firefox Date: Fri, 26 Mar 2021 10:11:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 11.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: 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2021 10:11:57 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99785 --- Comment #12 from Richard Biener --- (In reply to Richard Biener from comment #11) > Btw, GCC 10 branch tip with -O1: >=20 > ipa inlining heuristics : 962.91 ( 85%) 0.39 ( 4%) 971.66 ( > 84%) 1103801 kB ( 10%) > alias stmt walking : 40.95 ( 4%) 1.07 ( 11%) 42.13 = (=20 > 4%) 25965 kB ( 0%) > integration : 13.66 ( 1%) 3.23 ( 33%) 16.18 = (=20 > 1%) 4931059 kB ( 43%) > TOTAL :1135.79 9.69 1153.79= =20=20=20=20 > 11462287 kB > 1135.79user 9.73system 19:13.82elapsed 99%CPU (0avgtext+0avgdata > 4090216maxresident)k > 0inputs+0outputs (0major+959014minor)pagefaults 0swaps And a profile of trunk with release checking shows Samples: 4M of event 'cycles:u', Event count (approx.): 4811472248176=20=20= =20=20=20=20=20=20=20=20=20 Overhead Samples Command Shared Object Symbol=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 31.07% 1371974 cc1plus cc1plus [.] update_callee_keys 25.52% 1128500 cc1plus cc1plus [.] edge_badness 4.91% 216874 cc1plus cc1plus [.] evaluate_properties_for_edge 3.90% 172368 cc1plus cc1plus [.] cgraph_node::get_availability 3.83% 169169 cc1plus cc1plus [.] do_estimate_edge_time 2.56% 113399 cc1plus cc1plus [.] symtab_node::ultimate_alias_target_1 I wonder why we even run into this for the always inlines.=