2021

MLGO: a Machine Learning Guided Compiler Optimizations Framework

Trofin, Mircea, Qian, Yundi, Brevdo, Eugene et al.

Understand

Leveraging machine-learning (ML) techniques for compiler optimizations has been widely studied and explored in academia.

  • However, the adoption of ML in general-purpose, industry strength compilers has yet to happen.
  • We propose MLGO, a framework for integrating ML techniques systematically in an industrial compiler -- LLVM.
  • As a case study, we present the details and results of replacing the heuristics-based inlining-for-size optimization in LLVM with machine learned models.

Reading the bibliography…