Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
119 tokens/sec
GPT-4o
56 tokens/sec
Gemini 2.5 Pro Pro
43 tokens/sec
o3 Pro
6 tokens/sec
GPT-4.1 Pro
47 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Learning Compiler Pass Orders using Coreset and Normalized Value Prediction (2301.05104v2)

Published 9 Jan 2023 in cs.PL, cs.AI, and cs.LG

Abstract: Finding the optimal pass sequence of compilation can lead to a significant reduction in program size and/or improvement in program efficiency. Prior works on compilation pass ordering have two major drawbacks. They either require an excessive budget (in terms of compilation steps) at compile time or fail to generalize to unseen programs. In this paper, for code-size reduction tasks, we propose a novel pipeline to find program-dependent pass sequences within 45 compilation calls. It first identifies a coreset of 50 pass sequences via greedy optimization of a submodular function, and then learns a policy with Graph Neural Network (GNN) to pick the optimal sequence by predicting the normalized values of the pass sequences in the coreset. Despite its simplicity, our pipeline outperforms the default -Oz flag by an average of 4.7% over a large collection (4683) of unseen code repositories from diverse domains across 14 datasets. In comparison, previous approaches like reinforcement learning on the raw pass sequence space may take days to train due to sparse reward, and may not generalize well in held-out ones from different domains. Our results demonstrate that existing human-designed compiler flags can be improved with a simple yet effective technique that transforms the raw action space into a small one with denser rewards.

User Edit Pencil Streamline Icon: https://streamlinehq.com
Authors (11)
  1. Youwei Liang (16 papers)
  2. Kevin Stone (11 papers)
  3. Ali Shameli (12 papers)
  4. Chris Cummins (23 papers)
  5. Mostafa Elhoushi (22 papers)
  6. Jiadong Guo (10 papers)
  7. Benoit Steiner (17 papers)
  8. Xiaomeng Yang (21 papers)
  9. Pengtao Xie (86 papers)
  10. Hugh Leather (23 papers)
  11. Yuandong Tian (128 papers)
Citations (6)

Summary

We haven't generated a summary for this paper yet.

Youtube Logo Streamline Icon: https://streamlinehq.com