LLVM compiling option sequence two-stage optimization method and system
Патент · CN B
Полный текст
The invention relates to a two-stage optimization method and a system for LLVM compiling option sequences, wherein the method comprises the steps of carrying out fuzzy selection on interactive perception LLVM options, constructing a shortest equivalent option sequence acquisition mechanism, applying the mechanism to a sample set with target improvement to keep high-efficiency option interactions, quantitatively describing the degree of each option belonging to the option set with target improvement by using membership in fuzzy logic, acquiring a selected option set, carrying out evolution optimization on the LLVM option sequences based on heuristic information and a prediction model, constructing an option interaction pseudo-efficacy matrix capable of quantitatively describing the influence of potential interactions of any two options on the target, taking the interaction pseudo-efficacy matrix as heuristic information to design exchange and mutation operators to improve the solution quality and convergence speed, constructing an option sequence quality prediction model based on intermediate code characteristics, carrying out evolution search in a search space formed by the selected option set, and obtaining an optimal option sequence facing to the application to be optimized. The method and the system are beneficial to reducing the optimization time while obtaining the optimal optimization result.