Command line:
gcc -O1 -fgraphite-identity
or
gcc -Os -fgraphite-identity
(doesn't happen at -O[023])

Tested revisions:
trunk r157460 - fail (after pr43349 fix)
trunk r153685 - fail
I am not sure if this is a regression - 4.4 compiles quickly, but time report
doesn't show any information about time spent in graphite code.

Compiler output:
$ /mnt/svn/gcc-trunk/binary-157460-lto/bin/gcc -ftime-report
-fgraphite-identity -O1 -c testcase.c 

Execution times (seconds)
 CFG verifier          :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 tree gimplify         :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall   
   6 kB ( 0%) ggc
 tree SSA rewrite      :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   2 kB ( 0%) ggc
 tree SSA incremental  :   0.07 ( 1%) usr   0.00 ( 0%) sys   0.04 ( 0%) wall   
  12 kB ( 0%) ggc
 tree reassociation    :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   5 kB ( 0%) ggc
 Graphite loop transforms:   0.01 ( 0%) usr   0.00 ( 0%) sys   0.00 ( 0%) wall 
    32 kB ( 1%) ggc
 Graphite code generation:  10.52 (94%) usr   0.10 (91%) sys  11.02 (95%) wall 
  1222 kB (31%) ggc
 tree SSA verifier     :   0.14 ( 1%) usr   0.00 ( 0%) sys   0.11 ( 1%) wall   
   0 kB ( 0%) ggc
 tree STMT verifier    :   0.33 ( 3%) usr   0.00 ( 0%) sys   0.33 ( 3%) wall   
   0 kB ( 0%) ggc
 dominance computation :   0.02 ( 0%) usr   0.01 ( 9%) sys   0.02 ( 0%) wall   
   0 kB ( 0%) ggc
 expand                :   0.02 ( 0%) usr   0.00 ( 0%) sys   0.02 ( 0%) wall   
 235 kB ( 6%) ggc
 combiner              :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
 128 kB ( 3%) ggc
 if-conversion         :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
  71 kB ( 2%) ggc
 integrated RA         :   0.03 ( 0%) usr   0.00 ( 0%) sys   0.03 ( 0%) wall   
  90 kB ( 2%) ggc
 reload                :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
  44 kB ( 1%) ggc
 final                 :   0.01 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 plugin execution      :   0.00 ( 0%) usr   0.00 ( 0%) sys   0.01 ( 0%) wall   
   0 kB ( 0%) ggc
 TOTAL                 :  11.22             0.11            11.66              
3925 kB
Extra diagnostic checks enabled; compiler may run slowly.
Configure with --enable-checking=release to disable checks.

(disabling checking doesn't significantly help)


-- 
           Summary: Very long compile time with -O1 -fgraphite-identity
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43396

Reply via email to