Guaranteed Optimization: Proving Nullspace Properties of Compilers

dc.contributor.authorVeldhuizen, Todd; Lumsdaine, Andrew
dc.date.accessioned2025-11-12T00:09:42Z
dc.date.available2025-11-12T00:09:42Z
dc.date.issued2002-07
dc.description.abstractWriting performance-critical programs can be frustrating because optimizing compilers for imperative languages tend to be unpredictable. For a subset of optimizations -- those that simplify rather than reorder code -- it would be useful to prove that a compiler reliably performs optimizations. We show that adopting a ``superanalysis'' approach to optimization enables such a proof. By analogy with linear algebra, we define the nullspace of an optimizer as those programs it reduces to the empty program. To span the nullspace, we define rewrite rules that de-optimize programs by introducing abstraction. For a model compiler we prove that any sequence of de-optimizing rewrite rule applications is undone by the optimizer. Thus, we are able to give programmers a clear mental model of what simplifications the compiler is guaranteed to perform, and make progress on the problem of ``abstraction penalty'' in imperative languages. > > languages. > >
dc.identifier.urihttps://hdl.handle.net/2022/34407
dc.relation.ispartofseriesIndiana University Computer Science Technical Reports; TR564
dc.rightsThis work is protected by copyright unless stated otherwise.
dc.rights.uri
dc.titleGuaranteed Optimization: Proving Nullspace Properties of Compilers

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
TR564.pdf
Size:
312.79 KB
Format:
Adobe Portable Document Format
Can’t use the file because of accessibility barriers? Contact us