LFCS 2012: LLVM and Linux
LFCS 2012: LLVM and Linux
Posted Apr 26, 2012 8:36 UTC (Thu) by juliank (guest, #45896)In reply to: LFCS 2012: LLVM and Linux by pr1268
Parent article: LFCS 2012: LLVM and Linux
Please note that clang is not always faster than GCC, and clang may perform some optimisations at -O2 that gcc only performs at -O3 (in my case, I have seen it inline non-static functions when compiling a complete program).
Clang has some better optimizations in some parts, gcc in others. Sometimes clang might also optimize less and thus cause smaller code, which might improve performance as well.
In general, performance should be roughly equally I'd say.
