Enabling Reliability-Driven Optimization Selection with Gate Graph Attention Neural Network

Jiang Wu,Jianjun Xu,Xiankai Meng,Haoyu Zhang,Zhuo Zhang
DOI: https://doi.org/10.1142/S0218194020400240
IF: 1.007
2021-01-22
International Journal of Software Engineering and Knowledge Engineering
Abstract:Modern compilers provide a huge number of optional compilation optimization options. It is necessary to select the appropriate compilation optimization options for different programs or applications. To mitigate this problem, machine learning is widely used as an efficient technology. How to ensure the integrity and effectiveness of program information is the key to problem mitigation. In addition, when selecting the best compilation optimization option, the optimization goals are often execution speed, code size, and CPU consumption. There is not much research on program reliability. This paper proposes a Gate Graph Attention Neural Network (GGANN)-based compilation optimization option selection model. The data flow and function-call information are integrated into the abstract syntax tree as the program graph-based features. We extend the deep neural network based on GGANN and build a learning model that learns the heuristics method for program reliability. The experiment is performed under the Clang compiler framework. Compared with the traditional machine learning method, our model improves the average accuracy by 5–11% in the optimization option selection for program reliability. At the same time, experiments show that our model has strong scalability.
computer science, artificial intelligence,engineering, electrical & electronic, software engineering
What problem does this paper attempt to address?