Javascript must be enabled to continue!
Optimization based on LLVM global instruction selection
View through CrossRef
Abstract
Instruction selection is a key component of code generation. High-quality instruction selection has a great impact on the size and quality of the generated code. The existing instruction selection technology is mostly limited to a single statement or a single basic block, and the global instruction selection based on LLVM degrades the entire function in the form of SSA. Global instruction selection optimization based on LLVM is implemented on Shenwei platform, including global instruction merge optimization based on cost model, register bank selection optimization and instruction locality optimization. Through the test of SPEC CPU2006, Experimental results show that the average speed-up ratio before and after the optimization of global instruction selection based on LLVM is 1.08, and the maximum speed-up ratio is 1.36. In addition, when the quality of the generated code is equivalent, the global instruction selection is compared with the default instruction selection, the LLC compilation speed is increased by an average of 20%, and the entire compilation cycle is increased by an average of 6%-8%.
Title: Optimization based on LLVM global instruction selection
Description:
Abstract
Instruction selection is a key component of code generation.
High-quality instruction selection has a great impact on the size and quality of the generated code.
The existing instruction selection technology is mostly limited to a single statement or a single basic block, and the global instruction selection based on LLVM degrades the entire function in the form of SSA.
Global instruction selection optimization based on LLVM is implemented on Shenwei platform, including global instruction merge optimization based on cost model, register bank selection optimization and instruction locality optimization.
Through the test of SPEC CPU2006, Experimental results show that the average speed-up ratio before and after the optimization of global instruction selection based on LLVM is 1.
08, and the maximum speed-up ratio is 1.
36.
In addition, when the quality of the generated code is equivalent, the global instruction selection is compared with the default instruction selection, the LLC compilation speed is increased by an average of 20%, and the entire compilation cycle is increased by an average of 6%-8%.
Related Results
Selection Gradients
Selection Gradients
Natural selection and sexual selection are important evolutionary processes that can shape the phenotypic distributions of natural populations and, consequently, a primary goal of ...
The Burden of Road Traffic Injuries: A Global Perspective
The Burden of Road Traffic Injuries: A Global Perspective
Introduction Road Traffic Injury (RTI) pose a significant health challenge. It represents the eighth leading cause of death globally, prompting the UN to designate 2011-2020 as...
Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering
Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering
The phase ordering problem has been a long-standing challenge since the late 1970s, yet it remains an open problem due to having a vast optimization space and an unbounded nature, ...
Information literacy instruction in university libraries of Islamabad, Pakistan: a study of librarians’ perceptions, practices, barriers, and strategies
Information literacy instruction in university libraries of Islamabad, Pakistan: a study of librarians’ perceptions, practices, barriers, and strategies
PurposeThis paper aims to measure the perceptions of librarians about information literacy (IL) instruction, their current IL practices and the problems they face while offering IL...
The Mathematics of Optimization
The Mathematics of Optimization
In “Introduction to Optimization Models” (UVA-QA-0682), we explored the basics of using optimization models, or mathematical programming. In this technical note, we turn our attent...
Instruction Tuning on Large Language Models to Improve Reasoning Performance
Instruction Tuning on Large Language Models to Improve Reasoning Performance
The growing demand for natural language processing models capable of understanding and executing complex instructions has driven significant advancements in model fine-tuning tech...
Hedging against Uncertain Future Development Plans in Closed-loop Field Development Optimization
Hedging against Uncertain Future Development Plans in Closed-loop Field Development Optimization
Abstract
Optimization has received considerable attention in oilfield development studies. A major difficulty is related to handling the uncertainty that can be intr...

