https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111241

            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=55818&action=edit
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 $ 

>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%)

Reply via email to