Control flow graph based code optimization using graph neural networks

Read full text
Authors: Melih Peker, Ozcan Ozturk
Cited by: 0
References: 25

Abstract

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.

Fields of Study & Subjects

Software Engineering Research Parallel Computing and Optimization Techniques Embedded Systems Design Techniques

Publication details

Journal / source
Frontiers in Robotics and AI
Volume
13
Pages
1731740–1731740
Publication date
11 March 2026
Language
EN