1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Memory
  5. Motherboards
  6. Processors
  7. Software
  8. Storage
  9. Operating Systems


Facebook RSS Twitter Twitter Google Plus


Phoronix Test Suite

OpenBenchmarking.org

AutoFDO Optimizations For The GCC Compiler

Compiler

Published on 30 September 2012 06:58 AM EDT
Written by Michael Larabel in Compiler
3 Comments

A patch has emerged that provides "AutoFDO" support for the GCC compiler for automated feedback-directed optimizations.

Dehao Chen of Google published an AutoFDO implementation to the GCC mailing list on Friday.
This patch implements the fine-graind AutoFDO optimizations for GCC. It uses linux perf to collect sample profiles, and uses debug info to represent the profile. In GCC, it uses the profile to annotate CFG to drive FDO. This can bring 50% to 110% of the speedup derived by traditional instrumentation based FDO. (Average is between 70% to 80% for many CPU intensive applications). Comparing with traditional FDO, AutoFDO does not require instrumentation. It just need to have an optimized binary with debug info to collect the profile.

This patch has passed bootstrap and gcc regression tests as well as tested with crosstool. Okay for google branches?

If people in up-stream find this feature interesting, I'll spend some time to port this to trunk and try to opensource the tool to generate profile data file.
So this implementation is also faster than the traditional Feedback Directed Optimization (FDO) support currently found in GCC.

Up until now traditional FDO has required running the specially-created binary manually to collect sample/training data that can then be passed back to the GNU Compiler Collection for producing a more-optimized binary on an application-specific case. Among the optimizations being dealt with here are instruction scheduling, basic block re-ordering, function splitting, and register allocation.

Let's hope it makes it into GCC trunk! Until then, the patch is on gcc-patches.

About The Author
Michael Larabel is the principal author of Phoronix.com and founded the web-site in 2004 with a focus on enriching the Linux hardware experience and being the largest web-site devoted to Linux hardware reviews, particularly for products relevant to Linux gamers and enthusiasts but also commonly reviewing servers/workstations and embedded Linux devices. Michael has written more than 10,000 articles covering the state of Linux hardware support, Linux performance, graphics hardware drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated testing software. He can be followed via and or contacted via .
Latest Linux Hardware Reviews
  1. Scythe Mugen MAX
  2. Intel Core i7 5960X Haswell-E On Linux
  3. Intel 80GB 530 Series M.2 SSD On Linux
  4. With A New Motherboard, The Core i7 5960X Haswell-E Lights Up
Latest Linux Articles
  1. A Tour Of The New Phoronix Office
  2. 7-Way Linux Desktop Gaming Comparison On Ubuntu 14.10
  3. Intel P-State vs. CPUFreq Benchmarks On The i7-5960X
  4. RadeonSI GLAMOR Benchmarks With X.Org Server 1.16
Latest Linux News
  1. openSUSE 13.2 Beta Still Using Btrfs By Default, & KDE Plasma 5 For Testing
  2. GTK+ 3.14 Brings Much Better Wayland Support, Multi-Touch, New Theme
  3. DisplayPort Comes To USB's Type-C Connector
  4. NSS Updated On Ubuntu 12.04/14.04 To Allow Netflix Support
  5. Linux 3.17-rc6 Released; Linux 3.17 Final Might Come In One Week
  6. X.Org Server 1.16.1 Released
  7. Mesa Gets Closer To Having OpenGL 4.0 Tessellation Support
  8. Uselessd: A Stripped Down Version Of Systemd
  9. F2FS Tools Gain FSCK Support
  10. FreeBSD 10.1 Has The New VT Driver, Hardware Improvements
Latest Forum Discussions
  1. NVIDIA GTX 770/780 -works ?
  2. Updated and Optimized Ubuntu Free Graphics Drivers
  3. Uselessd: A Stripped Down Version Of Systemd
  4. State of Nouveau now and in the near future?
  5. X.Org Women Outreach Program Only Turns Up Two Applicants So Far
  6. Wasteland 2 Officially Launched Today, Including For Linux Gamers
  7. Trolling on the Phoronix forums
  8. New stress testing utility for GPU's