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:
Grant
Type:

Utility

Filling date:

8 Dec 2020

Issue date:

2 Aug 2022