[LLVMbugs] [Bug 10144] New: Debug info slows down compilation a lot

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jun 15 08:04:26 PDT 2011


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

           Summary: Debug info slows down compilation a lot
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Found while accidentally trying to build gcc with clang :-)

$ time gcc -c -O2 -g fold-const.i 
real    0m12.294s
user    0m11.938s
sys    0m0.323s

$ time clang -O2 -c -g fold-const.i -w -o test.bc -emit-llvm
real    0m5.892s
user    0m5.773s
sys    0m0.105s

$ time clang -O2 -c  fold-const.i -w -o test-nodebug.bc -emit-llvm

real    0m4.131s
user    0m4.029s
sys    0m0.091s

$ time llc test-nodebug.bc 
real    0m4.926s
user    0m4.855s
sys    0m0.059s

$ time ./build-master/bin/llc test.bc 
real    1m2.980s
user    1m2.383s
sys    0m0.446s

-- 
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.



More information about the llvm-bugs mailing list