Javascript must be enabled to continue!
Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering
View through CrossRef
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, making it an open-ended problem without a finite solution; one can limit the scope by reducing the number and the length of optimizations. Traditionally, such locally optimized decisions are made by hand-coded algorithms tuned for a small number of benchmarks, often requiring significant effort to be retuned when the benchmark suite changes. In the past 20 years, Machine Learning has been employed to construct performance models to improve the selection and ordering of compiler optimizations; however, the approaches are not baked into the compiler seamlessly and have never been leveraged at a fine-grained scope of code segments.
This article presents Protean Compiler — an agile framework to augment LLVM with built-in phase-ordering capabilities at a fine-grained scope. The framework also comprises a complete library of more than 140 handcrafted static feature collection methods at varying scopes, and the experimental results showcase speedup gains of up to 4.1% on average and up to 15.7% on select CBench applications relative to LLVM’s
-O3
, by just incurring a few extra seconds of build time on CBench. Additionally, Protean compiler can speed up SPEC CPU 2017 (Integer suite) by an average of 1% and up to 6.4% on selected benchmarks. Our framework supports parallel compilation and a built-in recommender system to speed up the search and reduce build-time overhead.
Protean compiler allows for easy integration with third-party ML frameworks and other Large Language Models, and two applications of this two-step optimization show a gain of 10.1% and 8.5% speedup w.r.t.
-O3
on CBench’s Susan and Jpeg applications. Protean compiler is seamlessly integrated into LLVM and can be used as a new, enhanced, full-fledged compiler. We plan to release the project to the open-source community in the near future
1
.
Association for Computing Machinery (ACM)
Title: Protean Compiler: An Agile Framework to Drive Fine-grain Phase Ordering
Description:
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, making it an open-ended problem without a finite solution; one can limit the scope by reducing the number and the length of optimizations.
Traditionally, such locally optimized decisions are made by hand-coded algorithms tuned for a small number of benchmarks, often requiring significant effort to be retuned when the benchmark suite changes.
In the past 20 years, Machine Learning has been employed to construct performance models to improve the selection and ordering of compiler optimizations; however, the approaches are not baked into the compiler seamlessly and have never been leveraged at a fine-grained scope of code segments.
This article presents Protean Compiler — an agile framework to augment LLVM with built-in phase-ordering capabilities at a fine-grained scope.
The framework also comprises a complete library of more than 140 handcrafted static feature collection methods at varying scopes, and the experimental results showcase speedup gains of up to 4.
1% on average and up to 15.
7% on select CBench applications relative to LLVM’s
-O3
, by just incurring a few extra seconds of build time on CBench.
Additionally, Protean compiler can speed up SPEC CPU 2017 (Integer suite) by an average of 1% and up to 6.
4% on selected benchmarks.
Our framework supports parallel compilation and a built-in recommender system to speed up the search and reduce build-time overhead.
Protean compiler allows for easy integration with third-party ML frameworks and other Large Language Models, and two applications of this two-step optimization show a gain of 10.
1% and 8.
5% speedup w.
r.
t.
-O3
on CBench’s Susan and Jpeg applications.
Protean compiler is seamlessly integrated into LLVM and can be used as a new, enhanced, full-fledged compiler.
We plan to release the project to the open-source community in the near future
1
.
Related Results
Sustaining Agile Usage: Role of Management Support in Shaping Agile Mindsets in Development Teams
Sustaining Agile Usage: Role of Management Support in Shaping Agile Mindsets in Development Teams
Agile methodologies have acquired prominence in the modern landscape of software
development. Regardless of development teams shifting to such methodologies, they experience
obstac...
Cybersecurity risk management in agile development: protecting data and system
Cybersecurity risk management in agile development: protecting data and system
The rapid evolution of technology and the increasing complexity of systems have made cybersecurity a critical concern for organizations, particularly in the context of Agile develo...
State and development of grain storage engineering and technologies in Ukraine
State and development of grain storage engineering and technologies in Ukraine
Topicality. These researches are due to the grain storage problem, the features of maize grain storage in metal silos under the various environmental factors, as well as more effic...
Agile and organizational culture: Fostering agile values and mindset
Agile and organizational culture: Fostering agile values and mindset
The integration of agile methodologies into organizational culture has become crucial for promoting innovation, adaptability, and continuous improvement in today’s fast-paced busin...
CONCEPTUALIZING AGILE DEVELOPMENT IN DIGITAL TRANSFORMATIONS: THEORETICAL FOUNDATIONS AND PRACTICAL APPLICATIONS
CONCEPTUALIZING AGILE DEVELOPMENT IN DIGITAL TRANSFORMATIONS: THEORETICAL FOUNDATIONS AND PRACTICAL APPLICATIONS
Agile development has emerged as a prominent approach in digital transformations due to its flexibility and adaptability to changing requirements. This review explores the theoreti...
Private Ordering
Private Ordering
The sharing of regulatory authority with private actors ("private ordering") has lengthy historical precedent and, in recent years, has been rapidly expanding in scope, domesticall...
Leveraging big data for agile transformation in technology firms: Implementation and best practices
Leveraging big data for agile transformation in technology firms: Implementation and best practices
The rapid pace of technological advancements and the increasing demand for innovation have compelled technology firms to adopt Agile methodologies, which promote flexibility, speed...
Usability Evaluation of Self-Ordering Kiosks in Fast Food Restaurants
Usability Evaluation of Self-Ordering Kiosks in Fast Food Restaurants
In recent years, the introduction of technology and digital management into the service industry has gradually changed consumers' lifestyles. With the popularization of equipment s...

