From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EA033858419; Wed, 30 Aug 2023 16:31:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EA033858419 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1693413111; bh=kEfFT1MrDKtajw6PtvH6+CU3lksML9gSJmez7w9Jff0=; h=From:To:Subject:Date:From; b=HzR9lzXGHUfjMrcBMzfyynNAWcOl0NC8yRnJb6VryPmM2wpoo2Do5a7+yMwx2Lw7T eqkvo8oWH5pb4SEJd09ZGKtUfhlyb9b2O0bu6cN6wAHDlgllTsnVe2pyDjaTcuQxB0 OQmyqSyqdZyydabqC8BFHCX+DNCc51ruCS7MPIEw= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111241] New: Extraordinary amount of time spent in "callgraph functions expansion" Date: Wed, 30 Aug 2023 16:31:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dcb314 at hotmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: 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=3D111241 Bug ID: 111241 Summary: Extraordinary amount of time spent in "callgraph functions expansion" Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- Created attachment 55818 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55818&action=3Dedit gzipped C source code foundBugs $ time ~/gcc/results/bin/gcc -c -w -O1 -fno-var-tracking bug951= .c real 0m52.441s user 0m51.038s sys 0m0.498s foundBugs $ (ulimit -t 300; time ~/gcc/results/bin/gcc -c -w -O2 -fno-var-tracking bug951.c) real 2m18.781s user 2m15.957s sys 0m1.205s foundBugs $=20 >From -ftime-report on the second compile: Time variable usr sys = wall GGC phase setup : 0.00 ( 0%) 0.01 ( 0%) 0.00 ( = 0%) 1832k ( 0%) phase parsing : 1.78 ( 1%) 2.83 ( 56%) 4.66 ( = 3%) 55M ( 12%) phase opt and generate : 136.07 ( 99%) 2.18 ( 43%) 139.81 ( = 97%) 411M ( 88%) garbage collection : 0.95 ( 1%) 0.02 ( 0%) 0.91 ( = 1%) 0 ( 0%) callgraph construction : 0.16 ( 0%) 0.02 ( 0%) 0.16 ( = 0%) 11M ( 2%) callgraph optimization : 0.15 ( 0%) 0.05 ( 1%) 0.22 ( = 0%) 3272 ( 0%) callgraph functions expansion : 106.59 ( 77%) 1.39 ( 28%) 109.22 ( = 76%) 299M ( 64%) callgraph ipa passes : 28.82 ( 21%) 0.74 ( 15%) 29.88 ( = 21%) 84M ( 18%)=