On 04/26/2014 10:58 PM, Axel Dörfler wrote:
On 04/25/2014 06:39 PM, Jonathan Schleifer wrote:Am 25.04.2014 um 18:35 schrieb Pawel Dziepak <pdziepak@xxxxxxxxxxx>:It would be really nice to see some actual examples of such "better code" or at least benchmarks (using the latest versions of both compilers).phoronix.com regularly does GCC vs Clang benchmarks. Clang is faster in some tests, on par with GCC in others and only really slower in those that use OpenMP.I know those tests, and while the comments always mention how great clang performs, it actually seems to be slower on almost all tests, besides the ones testing the compilation time. Just to see some recent ones: http://www.phoronix.com/scan.php?page=article&item=gcc49_compiler_llvm35&num=3
I wondered about that too. The article mentions that some tests use OpenMP, but doesn't say which ones. Moreover the tests are built with -march=native which doesn't match our situation at all. So this comparison isn't helpful for us at all (we build for Pentium) and I'm afraid few (if any) current comparisons will do any better.
CU, Ingo