LLVM Clang 3.8 Compiler Optimization Benchmarks With -Ofast

Written by Michael Larabel in LLVM on 7 February 2016 at 10:33 AM EST. 9 Comments
LLVM
A few days ago I posted a number of LLVM Clang optimization level benchmarks using the latest code for the upcoming Clang 3.8 release. Those tests went from -O0 to -O3 -march=native, but many Phoronix readers wanted -Ofast so here are those results too.

I didn't include -Ofast in the original tests since I don't know of many using this optimization level within a production capacity considering it has the potential of doing unsafe math as it disregards standards compliance in the name of performance. However, since several readers requested it and I still had this LLVM/Clang 3.8 build around in the same system configuration, I added in extra runs with -Ofast and -Ofast -march=native.
LLVM Clang 3.8 Compiler Tuning Optimization Levels

LLVM Clang 3.8 Compiler Tuning Optimization Levels

Those are just two of the results... To see all of the latest data about the performance impact of -Ofast relative to other optimization levels for the bleeding-edge LLVM Clang 3.8 compiler, see this OpenBenchmarking.org result file for all of the details and compiler benchmark results.
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week