arrow
Return

Control flow graph based code optimization using graph neural networks

delete2026-03-11
delete0
delete
OA
AI
M
Melih Peker
O
Ozcan Ozturk *
DOI:10.3389/frobt.2026.1731740delete
deleteOriginal
deleteShare
deleteSave
View PDF
Abstract

Abstract

En 中文
Selecting a good set of optimization flags requires extensive effort and expert input. While most of the prior research considers using static; spatial; or dynamic features; some of the latest research directly applied deep neural networks to source code. We combined the static features; spatial features; and deep neural networks by representing source code as graphs and trained Graph Neural Network for automatically finding suitable optimization flags. We created a dataset of 12000 graphs using 256 optimization flag combinations on 47 benchmarks. We trained and tested our model using these benchmarks; and our results show that we can achieve a maximum of 48.6% speed-up compared to the case where all optimization flags are enabled.
Keywords:
graph neural networks
code optimization
GCC
compilers
FLAG
AI Summary

AI Summary

Key information extracted from the uploaded paper, including a brief overview, abstract, background, key highlights, visual analysis, and future outlook.

Journal

F
Frontiers in Robotics and AI
IF:
3
Papers:
522
Citations:
6.9K

Organization

C
computer engineering
Scholars:
318
Papers: 195
Citations: 0
F
faculty of engineering and natural sciences
Scholars:
111
Papers: 68
Citations: 0
Cited Papers

Cited Papers

PolyBench/Python: benchmarking Python environments with polyhedral optimizations
err2021-02-27
err0
errOAAI
errMiguel Á. Abella-González; Pedro Carollo-Fernández; Louis-Noël Pouchet; Fabrice Rastello; Gabriel Rodríguez
errShare
errSave
Word2Vec
err2016-12-16
err0
errOAAI
errKENNETH WARD CHURCH
errShare
errSave
IR2V EC
err2020-12-22
err0
errOAAI
errS. VenkataKeerthy; Rohit Aggarwal; Shalini Jain; Maunendra Sankar Desarkar; Ramakrishna Upadrasta; Y. N. Srikant
errShare
errSave
A survey of transfer learning
err2016-05-28
err0
errOAAI
errKarl Weiss; Taghi M. Khoshgoftaar; DingDing Wang
errShare
errSave
Machine Learning in Compiler Optimization
err2018-11-01
err110
errOAAI
errWang, Zheng; O'Boyle, Michael
errShare
errSave
Less is More
err2018-05-28
err0
errOAAI
errKyriakos Georgiou; Craig Blackmore; Samuel Xavier-de-Souza; Kerstin Eder
errShare
errSave
researcher View more