AI RESEARCH

CompilerDream: Learning a Compiler World Model for General Code Optimization

arXiv CS.LG

ArXi:2404.16077v4 Announce Type: replace-cross Effective code optimization in compilers is crucial for computer and software engineering. The success of these optimizations primarily depends on the selection and ordering of the optimization passes applied to the code. While most compilers rely on a fixed sequence of optimization passes, current methods to find the optimal sequence either employ impractically slow search algorithms or learning methods that struggle to generalize to code unseen during.