With the rise of specialized hardware and new programming languages, code optimization has shifted its focus towards promoting data locality. Most production-grade compilers adopt a control-centric mindset — instruction-driven optimization augmented with scalar-based dataflow — whereas other approaches provide domain-specific and general purpose data movement minimization, which can miss important control-flow optimizations. As the two representations are not commutable, users must choose one over the other.
In this paper, we explore how both control- and data-centric approaches can work in tandem via the Multi-Level Intermediate Representation (MLIR) framework. Through a combination of an MLIR dialect and specialized passes, we recover parametric, symbolic dataflow that can be optimized within the DaCe framework.
We combine the two views into a single pipeline, called DCIR, showing that it is strictly more powerful than either view.
On several benchmarks and a real-world application in C, we show that our proposed pipeline consistently outperforms MLIR and automatically uncovers new optimization opportunities with no additional effort.
Tue 28 FebDisplayed time zone: Eastern Time (US & Canada) change
15:40 - 17:00 | Session 6 -- Tool and Practical Experience IIMain Conference at Montreal 1-2-3 Chair(s): Ayal Zaks Mobileye | ||
15:40 26mTalk | Bridging Control-Centric and Data-Centric Optimization Main Conference Tal Ben-Nun ETH Zurich, Berke Ates ETH Zurich, Alexandru Calotoiu ETH Zurich, Torsten Hoefler ETH Zurich DOI | ||
16:06 26mTalk | Parsimony: Enabling SIMD/Vector Programming in Standard Compiler Flows Main Conference Vijay Kandiah Northwestern University, Daniel Lustig NVIDIA, Oreste Villa NVIDIA, David Nellans NVIDIA, Nikos Hardavellas Northwestern University DOI | ||
16:33 26mTalk | Program State Element Characterization Main Conference Enrico Armenio Deiana Northwestern University, Brian Suchy Northwestern University, Michael Wilkins Northwestern University, Brian Homerding Northwestern University, Tommy McMichen Northwestern University, Katarzyna Dunajewski Northwestern University, Peter Dinda Northwestern University, Nikos Hardavellas Northwestern University, Simone Campanoni Northwestern University DOI |