Alibaba Group Holding Limited
METHOD AND SYSTEM FOR COMPILER OPTIMIZATION BASED ON ARTIFICIAL INTELLIGENCE

Last updated:

Abstract:

This application describes methods, systems, and apparatus, including computer programs encoded on computer storage media, of an AI-assisted compiler. An example method includes obtaining intermediate code and executable code generated by compiling a computer program with a compiler; determining a reward based on one or more traces obtained by executing the executable code in a runtime system; generating an embedding vector based on the intermediate code and the one or more traces to represent code execution states; determining, using a reinforcement learning agent, one or more optimization actions based on the embedding vector and the reward; and updating the compiler by applying the one or more optimization actions.

Status:
Application
Type:

Utility

Filling date:

8 Dec 2020

Issue date:

9 Jun 2022