Beyond the Phase Ordering Problem: Finding the Globally Optimal Code w.r.t. Optimization Phases
Yu Wang, Hongyu Chen, Ke Wang

TL;DR
This paper introduces a novel framework and technique for finding the globally optimal code with respect to compiler optimization phases, surpassing traditional phase ordering solutions by leveraging reverse optimization strategies.
Contribution
The paper proposes a new concept of semantically equivalence and a framework that uses reverse optimization phases to find globally optimal code, demonstrating its effectiveness on real-world programs.
Findings
ool often produces more efficient code than exhaustive phase ordering.
Incorporating reverse phases enhances existing compiler optimizations.
The framework theoretically guarantees finding the global optimal code.
Abstract
In this paper, we propose a new concept called \textit{semantically equivalence} \wrt \textit{optimization phases} \textit{(\sep)}, which defines the set of programs a compiler considers semantically equivalent to the input using a set of optimization phases. We show both theoretically and empirically that solving the phase ordering problem does not necessarily result in the most efficient code among all programs that a compiler deems semantically equivalent to the input, hereinafter referred to as the global optimal code \wrt optimization phases. To find the global optimal code \wrt optimization phases, we present a conceptual framework, leveraging the reverse of existing optimization phases. In theory, we prove that the framework is capable of finding the global optimal code for any program. We realize this framework into a technique, called \textit{iterative bi-directional…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsNumerical methods for differential equations · Matrix Theory and Algorithms
