3 ms·
> I would take 100x increase in compilation times for a release build over a 2x increase in development time due to manual optimization. If you're referring to
by zamalek 11y ago
> I would take 100x increase in compilation times for a release build over a 2x increase in development time due to manual optimization.
If you're referring to super-optimization, it can take far more than 100x and isn't something that is being "classically automated" as humans likely can't do it in the first place. In addition, super-optimization will yield better results if you give it a better starting point. It's nothing at all like the optimization discussed in the blog post. Either way, it can be done against LLVM IR[4] and I'm sure it will creep into clang at some point.
So far as using profiling data to optimize code in the way that humans would: MSVC supports it[1], clang supports it[2] and gcc supports it[3]. Supposedly Microsoft saw a 30% performance increase [with a very specific workload] when they tried POGO on an internal build of SQL Server. Under normal circumstances, PGO should net you around 7% free perf.
[1]: https://msdn.microsoft.com/en-us/library/e7k32f4k.aspx https://msdn.microsoft.com/en-us/library/e7k32f4k.aspx
[2]: http://clang.llvm.org/docs/UsersManual.html#profile-guided-optimization http://clang.llvm.org/docs/UsersManual.html#profile-guided-o...
[3]: http://dom.as/2009/07/27/profile-guided-optimization-with-gcc/ http://dom.as/2009/07/27/profile-guided-optimization-with-gc...
[4]: https://github.com/google/souper https://github.com/google/souper