Work-in-Progress: Searching Optimal Compiler Optimization Passes Sequence for Reducing Runtime Memory Profile using Ensemble Reinforcement Learning

Juneseo Chang, Daejin Park

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

Abstract

The order in which compiler optimization passes are applied has a significant impact on program performance. However, widely used compiler optimization options use handpicked sets of optimization passes, optimized for specific benchmarks. In this paper, we propose an ensemble reinforcement learning (RL) model that optimizes LLVM transform passes sequence to reduce the runtime memory profile, which is an important consideration in resource-constrained embedded systems. We developed an LLVM intermediate representation (IR) analysis pass to extract static program features. The extracted features are processed with PCA for dimension reduction. We also generated datasets using a random program generator, and clustered them according to the PCA results of their extracted features. The ensemble RL model was trained on each clustered dataset. Experiments showed that the proposed model reduced 37% more memory profile than the standard optimization option.

Original languageEnglish
Title of host publicationProceedings - 2023 International Conference on Embedded Software, EMSOFT 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages3-4
Number of pages2
ISBN (Electronic)9798400702914
DOIs
StatePublished - 2023
Event23rd ACM SIGBED International Conference on Embedded Software, EMSOFT 2023 - Hamburg, Germany
Duration: 17 Sep 202322 Sep 2023

Publication series

NameProceedings - 2023 International Conference on Embedded Software, EMSOFT 2023

Conference

Conference23rd ACM SIGBED International Conference on Embedded Software, EMSOFT 2023
Country/TerritoryGermany
CityHamburg
Period17/09/2322/09/23

Keywords

  • Code optimization
  • embedded system
  • reinforcement learning

Fingerprint

Dive into the research topics of 'Work-in-Progress: Searching Optimal Compiler Optimization Passes Sequence for Reducing Runtime Memory Profile using Ensemble Reinforcement Learning'. Together they form a unique fingerprint.

Cite this