feedback directed optimization in llvm
play

Feedback Directed Optimization in LLVM Diego Novillo - PowerPoint PPT Presentation

Feedback Directed Optimization in LLVM Diego Novillo <dnovillo@google.com> EuroLLVM 2013 Google Confidential and Proprietary Feedback Directed Optimization Core enabler for peak performance at Google (7-10%) Cross-module


  1. Feedback Directed Optimization in LLVM Diego Novillo <dnovillo@google.com> EuroLLVM 2013 Google Confidential and Proprietary

  2. Feedback Directed Optimization ● Core enabler for peak performance at Google (7-10%) ● Cross-module optimization on top of FDO provides 10-30% (LIPO) ● Traditionally, FDO builds require three steps: ○ Instrumentation build ○ Profiling run ○ Optimization build ● Most benefits from FDO seen in ○ Inlining (particularly cross-module inlining) ○ Code layout ○ Register allocation ● FDO usability is poor ○ Build model is complex ○ Increased build times ○ Representative data sets are frequently hard to produce ○ Google's build environment mitigates some of this difficulty Google Confidential and Proprietary

  3. Design Principles ● Strive for simplified use model - Auto FDO ○ Ideally, no training runs Requires external profile source ■ Use training runs at first ■ ○ No instrumentation Sample-based plus debug information for location information ■ Tolerate lossy/inaccurate profile data ■ ○ Profile data converted to compiler digestable form ● Allow different sources of profile data ○ Leverage existing external tools ● Enable instrumentation, if needed ○ Peak performance may not be achievable, otherwise Google Confidential and Proprietary

  4. Initial Plan 1. Target auto and instrumented FDO 2. Profile reading module with support for multiple input formats 3. Connect profile reader to analysis 4. Make sure key transformations are using results from analysis Google Confidential and Proprietary

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend