http://llvm.org/bugs/show_bug.cgi?id=10651

           Summary: File takes 8s to compiled with clang but only 74ms to
                    compile with gcc
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The build times for Postgres are still slower with clang than gcc. On my
machine Postgres builds in about 90s with gcc but takes nearly 4 minutes with
clang. There is no longer a single offending file but there are a bunch of
files that seem to take 5-8s with clang even though they don't take
particularly long with gcc. This is true even with -O0.

This is the current worst offender but there are 17 files that take 10 times as
long or more to build with clang as gcc.

These times are after running the two commands repeatedly:

$ time gcc -c syscache-preprocessed.c 

real    0m0.074s
user    0m0.050s
sys     0m0.040s

$ time clang -c syscache-preprocessed.c 

real    0m7.742s
user    0m7.700s
sys     0m0.040s

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to