Optimizing LLVM IR: Transforming Multiplication to Addition for Enhanced Execution Efficiency

Intermediate Representation (IR) optimization is essential in enhancing software performance and ensuring efficient operation within the Low-Level Virtual Machine (LLVM) project. This optimization is achieved through the development of new passes that facilitate more effective code processing. In this study, we developed a new IR optimization pass specifically for the x86_64 architecture. The pass aims to reduce execution costs by transforming multiplication operations involving constant factors into equivalent addition operations. We assessed the impact of this optimization by evaluating the number of execution cycles across various scenarios. The results indicate a significant reduction in execution costs, highlighting the potential for enhanced performance in specific application domains. This study underscores the advantages of optimization techniques within the LLVM project for the software development process. Future work will involve applying these optimizations to other architectures, such as ARM and RISC-V, and evaluating their effectiveness using not only the number of execution cycles but also other diverse metrics. This approach will enable a more comprehensive analysis of performance gains across different architectures, supporting the development of optimized solutions.

Authors

Publication Details

Published
2024-10-26
DOI
https://doi.org/10.1109/ubmk63289.2024.10773478
Primary Topic
Embedded Systems Design Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Optimizing LLVM IR: Transforming Multiplication to Addition for Enhanced Execution Efficiency

Nevzat Dönüm, Efecan Cebel, Huseyin Karacalı
Embedded Systems Design Techniques
article

Optimizing LLVM IR: Transforming Multiplication to Addition for Enhanced Execution Efficiency

Nevzat Dönüm, Efecan Cebel, Huseyin Karacalı
article en

Abstract

Intermediate Representation (IR) optimization is essential in enhancing software performance and ensuring efficient operation within the Low-Level Virtual Machine (LLVM) project. This optimization is achieved through the development of new passes that facilitate more effective code processing. In this study, we developed a new IR optimization pass specifically for the x86_64 architecture. The pass aims to reduce execution costs by transforming multiplication operations involving constant factors into equivalent addition operations. We assessed the impact of this optimization by evaluating the number of execution cycles across various scenarios. The results indicate a significant reduction in execution costs, highlighting the potential for enhanced performance in specific application domains. This study underscores the advantages of optimization techniques within the LLVM project for the software development process. Future work will involve applying these optimizations to other architectures, such as ARM and RISC-V, and evaluating their effectiveness using not only the number of execution cycles but also other diverse metrics. This approach will enable a more comprehensive analysis of performance gains across different architectures, supporting the development of optimized solutions.

Affordable and clean energy
Openalex Percentile: Top 76%
Embedded Systems Design Techniques
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.