LLVM back-end instruction scheduling optimization based on improved genetic algorithm
This research aims to optimize the instruction scheduling of LLVM back end through improved genetic algorithm to improve the execution efficiency of the object code generated by the compiler. Considering the characteristics of target hardware and optimization objectives, the intermediate representation (LLVM IR) information of the compiler is fully used to generate efficient and optimized target machine code, which ensures the performance of the compiled program on various hardware. Genetic algorithms are introduced as a search and optimization technique to automatically explore different instruction scheduling schemes and find the optimal solution. Through the introduction of adaptive evaluation mechanism, different scheduling schemes are evaluated based on performance indicators, and then evolved generation by generation to obtain better solutions. The experimental results show that the LLVM back-end instruction scheduling optimization based on genetic algorithm is obviously superior to the traditional method, which provides a strong support for improving the performance of compiler generated code, and provides an empirical research basis for the application of genetic algorithm in compiler optimization.
Authors
- Z. Wang
- J. B. Jiao
Institutions
- Xi’an University of Posts and Telecommunications (CN)
Publication Details
- Published
- 2024-09-20
- DOI
- https://doi.org/10.1145/3703935.3703946
- Primary Topic
- Real-time simulation and control systems
- Type
- article
- Field-Weighted Citation Impact
- 0.00