  <?xml version="1.0"?>
<journal>
 <journal_metadata>
  <full_title>Fusion: Practice and Applications</full_title>
  <abbrev_title>FPA</abbrev_title>
  <issn media_type="print">2692-4048</issn>
  <issn media_type="electronic">2770-0070</issn>
  <doi_data>
   <doi>10.54216/FPA</doi>
   <resource>https://www.americaspg.com/journals/show/3477</resource>
  </doi_data>
 </journal_metadata>
 <journal_issue>
  <publication_date media_type="print">
   <year>2018</year>
  </publication_date>
  <publication_date media_type="online">
   <year>2018</year>
  </publication_date>
 </journal_issue>
 <journal_article publication_type="full_text">
  <titles>
   <title>Compiler Sequence Optimization Using Machine Learning Prediction Method</title>
  </titles>
  <contributors>
   <organization sequence="first" contributor_role="author">Department of Computer Science, College of Science for Women, University of Babylon, Hillah, Iraq</organization>
   <person_name sequence="first" contributor_role="author">
    <given_name>admin</given_name>
    <surname>admin</surname>
   </person_name>
   <organization sequence="first" contributor_role="author">Department of Computer Science, College of Science for Women, University of Babylon, Hillah, Iraq</organization>
   <person_name sequence="additional" contributor_role="author">
    <given_name>Esraa Hadi</given_name>
    <surname>Alwan</surname>
   </person_name>
   <organization sequence="first" contributor_role="author">Department of Computer Science, College of Science for Women, University of Babylon, Hillah, Iraq</organization>
   <person_name sequence="additional" contributor_role="author">
    <given_name>Ahmed</given_name>
    <surname>Fanfakh</surname>
   </person_name>
  </contributors>
  <jats:abstract xml:lang="en">
   <jats:p>Compiler optimization is crucial in improving program performance by improving execution speed, reducing memory usage, and minimizing energy consumption. Nevertheless, modern compilers, such as LLVM, with their numerous optimization passes, present a significant challenge in identifying the most effective sequence for optimizing a program. This study addresses the complex problem of determining optimal compiler optimization sequences within the LLVM framework, which encompasses 64 optimization passes, causing in an immense search space of 264264. Identifying the ideal sequence for even simple code can be an arduous task, as the interactions between passes are intricate and unpredictable. The primary objective of this research is to utilize machine-learning techniques to predict effective optimization sequences that outperform the default -O2 and -O3 optimization flags. The methodology involves generating 2,000 sequences per program and picking the one that achieves the shortest execution time. Three machine learning models—K-Nearest Neighbor (KNN), Decision Tree (DT), and Feedforward Neural Network (FFNN)—were employed to predict the optimization sequences based on features extracted from programs during execution. The study used benchmarks from Polybench, Shootout, and Stanford suites, each with varying problem sizes, to validate the proposed technique. The results demonstrate that the KNN model produced optimization sequences with superior performance compared to DT and FFNN. On average, KNN achieved execution times that were 2.5 times faster than those achieved using the O3 optimization flag. This research contributes to the field by programming the process of selecting optimal compiler sequences, which significantly reduces execution time and eliminates the need for manual tuning. It highlights the potential of machine learning in compiler optimization, offering a robust and scalable approach to improving program performance and setting the foundation for future advancements in the domain.</jats:p>
  </jats:abstract>
  <publication_date media_type="print">
   <year>2025</year>
  </publication_date>
  <publication_date media_type="online">
   <year>2025</year>
  </publication_date>
  <pages>
   <first_page>304</first_page>
   <last_page>320</last_page>
  </pages>
  <doi_data>
   <doi>10.54216/FPA.180121</doi>
   <resource>https://www.americaspg.com/articleinfo/3/show/3477</resource>
  </doi_data>
 </journal_article>
</journal>
