LWN: Comments on "LLVM 3.3 released" https://lwn.net/Articles/555173/ This is a special feed containing comments posted to the individual LWN article titled "LLVM 3.3 released". en-us Sat, 08 Nov 2025 07:12:07 +0000 Sat, 08 Nov 2025 07:12:07 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net LLVM 3.3 released https://lwn.net/Articles/555591/ https://lwn.net/Articles/555591/ JoeBuck <p> Phoronix has done a lot of gcc vs. llvm benchmarking. Certainly you could raise some issues about parts of their methodology, but their general approach seems fair and they provide enough information to duplicate or critique their work. They generally show that the two compilers are quite competitive other than llvm's lack of OpenMP support which affects some benchmarks severely. <p> However, there's a risk in focusing on well-known benchmarks because competitive compiler projects do so. It's better to benchmark your own applications, code that the compiler developers haven't seen before, to really understand who's better, and I would expect on average that llvm will compile a bit faster while g++ will produce slightly better code, but the variance will be high enough that it might be the other way around on your code. Both compilers have gotten a lot better recently thanks to the competition. <p> It certainly appears that llvm has caught up to gcc for the most part. At this point, llvm has regex in C++11 and g++ lacks it; g++ has OpenMP which llvm lacks. Whether this matters depends on whether you need the missing feature. Wed, 19 Jun 2013 22:37:07 +0000 LLVM 3.3 released https://lwn.net/Articles/555568/ https://lwn.net/Articles/555568/ hummassa <div class="FormattedComment"> That was *really* useful. Many thanks!<br> </div> Wed, 19 Jun 2013 20:43:20 +0000 LLVM 3.3 released https://lwn.net/Articles/555491/ https://lwn.net/Articles/555491/ kreijack <div class="FormattedComment"> I am quite sure that there are a lot of benchmark where LLVM beat GCC and/or the opposite. And sure, the regression reported should be investigated by the CLANG team.<br> <p> However, what I stated is that the "Quality of clang generated code" is different from a low performance in a single case.<br> <p> Does anyone know if there is an organic performances comparative between the two compilers ? Something with a rationale behind ?<br> <p> <p> </div> Wed, 19 Jun 2013 18:00:35 +0000 LLVM 3.3 released https://lwn.net/Articles/555396/ https://lwn.net/Articles/555396/ cmrx64 <div class="FormattedComment"> I built it myself, along with libcxxrt<br> </div> Wed, 19 Jun 2013 13:23:56 +0000 LLVM 3.3 released https://lwn.net/Articles/555388/ https://lwn.net/Articles/555388/ Jonno <div class="FormattedComment"> libc++ has been included in Debian experimental for almost a year, and in unstable/testing since May.<br> <p> Debs can be found at: <a href="http://ftp.debian.org/debian/pool/main/libc/libc++/">http://ftp.debian.org/debian/pool/main/libc/libc++/</a><br> </div> Wed, 19 Jun 2013 12:21:05 +0000 LLVM 3.3 released https://lwn.net/Articles/555311/ https://lwn.net/Articles/555311/ hummassa <div class="FormattedComment"> There is no .deb at <a href="http://llvm.org/apt/">http://llvm.org/apt/</a>, where did you get libc++ from?<br> </div> Wed, 19 Jun 2013 02:36:21 +0000 LLVM 3.3 released https://lwn.net/Articles/555293/ https://lwn.net/Articles/555293/ farsley72 <div class="FormattedComment"> Disregarding an inconvenient data point doesn't make it any less valid.<br> <p> It has taken gcc a long while to evolve a good optimizer and code generator. llvm is still a "young" project in comparison, so when llvm/clang folks already start claiming "independent evaluations show that LLVM 3.3's performance exceeds that of (...) its primary competition on many benchmarks", we have a right to call them on their claims.<br> <p> The bug shows that clang has difficulties optimizing (vectorizing) loops that are slightly more involved than garden variety, resulting in ~50% slower code than gcc.<br> <p> </div> Wed, 19 Jun 2013 01:14:21 +0000 LLVM 3.3 released https://lwn.net/Articles/555276/ https://lwn.net/Articles/555276/ cmrx64 <div class="FormattedComment"> libcxx runs quite well on Linux, when I tested it ~2 months ago.<br> </div> Tue, 18 Jun 2013 22:27:50 +0000 LLVM 3.3 released https://lwn.net/Articles/555271/ https://lwn.net/Articles/555271/ rriggs <div class="FormattedComment"> LLVM's "complete" C++ standard library doesn't count in my book until it runs on Linux. LLVM is still quite incomplete in that regard. (This is LWN after all -- with emphasis on the "L".)<br> </div> Tue, 18 Jun 2013 21:28:02 +0000 LLVM 3.3 released https://lwn.net/Articles/555266/ https://lwn.net/Articles/555266/ talisein <div class="FormattedComment"> GCC now implements the C++11 _language_, but as of yet falls short on the _standard library_.<br> <p> LLVM now has both. And IMO is a more honest claim to using the word "complete"; confusion over the competing release announcements is not uncommon, and people who want to try C++11 on GCC will be confused when e.g. &lt;regex&gt; never works as expected--it is stubbed out, meaning it won't give a compile error, but there is no implementation.<br> <p> To be fair, completing the language portion of the standard is an achievement that GCC deserves to trumpet, but the next sentence in their release announcement should have clarified "work continues on the standard library (help wanted)."<br> </div> Tue, 18 Jun 2013 20:58:41 +0000 LLVM 3.3 released https://lwn.net/Articles/555235/ https://lwn.net/Articles/555235/ kreijack <div class="FormattedComment"> Before comparing the "quality of code" we should define the metrics. IMHO the judgement parameters should be, in order of importance:<br> - code correctness<br> - standard conformity<br> - performance in the worst case <br> - performance in the best case<br> <p> I separate the worst and the best case performance, because I prefer a compiler which doesn't show the *WORST* performance in *ANY* case to one which has the *BEST* performance in *SOME* case.<br> <p> The bug reports a bad performance against a single case. Something to be investigate, but IMHO not sufficient to take any judgement.<br> </div> Tue, 18 Jun 2013 18:49:00 +0000 LLVM 3.3 released https://lwn.net/Articles/555222/ https://lwn.net/Articles/555222/ farsley72 Quality of clang generated code still seems to be subpar compared to gcc:<br> <a rel="nofollow" href="http://llvm.org/bugs/show_bug.cgi?id=16358">http://llvm.org/bugs/show_bug.cgi?id=16358</a> Tue, 18 Jun 2013 16:36:03 +0000 LLVM 3.3 released https://lwn.net/Articles/555216/ https://lwn.net/Articles/555216/ cry_regarder <div class="FormattedComment"> C++11 not C++1?:<br> <p> <a href="http://gcc.gnu.org/projects/cxx0x.html">http://gcc.gnu.org/projects/cxx0x.html</a><br> </div> Tue, 18 Jun 2013 16:15:29 +0000 LLVM 3.3 released https://lwn.net/Articles/555196/ https://lwn.net/Articles/555196/ rahulsundaram <div class="FormattedComment"> Depends on how one defines major and full support I guess. The actual status is at:<br> <p> <a href="http://clang.llvm.org/cxx_status.html">http://clang.llvm.org/cxx_status.html</a><br> <a href="http://gcc.gnu.org/projects/cxx1y.html">http://gcc.gnu.org/projects/cxx1y.html</a><br> <p> Neither implement *all* the features but that is not unexpected. <br> </div> Tue, 18 Jun 2013 15:59:08 +0000 LLVM 3.3 released https://lwn.net/Articles/555192/ https://lwn.net/Articles/555192/ intgr <div class="FormattedComment"> Interesting...<br> <p> <font class="QuotedText">&gt; Support for C++11 ref-qualifiers has been added to GCC 4.8.1, making G++ the first C++ compiler to implement all the major language features of the C++11 standard</font><br> <p> <font class="QuotedText">&gt; At this point, Clang is the only compiler to support the full C++'11 standard</font><br> <p> </div> Tue, 18 Jun 2013 15:46:46 +0000