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: [email protected]
ReportedBy: [email protected]
CC: [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs