clang vs free software
Xinliang David Li
davidxl@google.com
Thu Jan 23 23:12:00 GMT 2014
On Thu, Jan 23, 2014 at 2:56 PM, Chris Lattner <clattner@apple.com> wrote:
> On Jan 23, 2014, at 12:14 PM, Steven Bosscher <stevenb.gcc@gmail.com> wrote:
>> (Hint: read http://vmakarov.fedorapeople.org/spec/ as an example of a
>> better-supported point of view.)
>
> Unrelated to this thread, it would be great for this web page to get updated. You may find it to be "a better-supported point of view", but it is also comparing against clang 3.2, which is from the end of 2012, and a lot has changed since then.
>
> Modern clang versions have its autovectorizor on by default (like GCC's) and generate much better code in general.
Correction -- unlike LLVM, autovectorizer is not turned on by default
at O2 for GCC yet.
David
> http://www.phoronix.com/ has done some benchmarks across a wider range of code than just spec (which is notoriously "hacked" by compiler developers) and Clang generates better code (and faster) than GCC in many cases.
>
> -Chris
More information about the Gcc
mailing list