Optimizing expression selection for lookup table program transformation

Chris Wilcox, Michelle Mills Strout, James M. Bieman

Research output: Chapter in Book/Report/Conference proceedingConference contribution

3 Scopus citations

Abstract

Scientific programmers can speed up function evaluation by precomputing and storing function results in lookup table (LUTs), thereby replacing costly evaluation code with an inexpensive memory access. A code transform that replaces computation with LUT code can improve performance, however, accuracy is reduced because of error inherent in reconstructing values from LUT data. LUT transforms are commonly used to approximate expensive elementary functions. The current practice is for software developers to (1) manually identify expressions that can benefit from a LUT transform, (2) modify the code by hand to implement the LUT transform, and (3) run experiments to determine if the resulting error is within application requirements. This approach reduces productivity, obfuscates code, and limits programmer control over accuracy and performance. We propose source code analysis and program transformation to substantially automate the application of LUT transforms. Our approach uses a novel optimization algorithm that selects Pareto optimal sets of expressions that benefit most from LUT transformation, based on error and performance estimates. We demonstrate our methodology with the Mesa tool, which achieves speedups of 1.4-6.9x on scientific codes while managing introduced error. Our tool makes the programmer more productive and improves the chances of finding an effective solution.

Original languageEnglish (US)
Title of host publicationProceedings - 2012 IEEE 12th International Working Conference on Source Code Analysis and Manipulation, SCAM 2012
Pages84-93
Number of pages10
DOIs
StatePublished - 2012
Externally publishedYes
Event2012 IEEE 12th International Working Conference on Source Code Analysis and Manipulation, SCAM 2012 - Riva del Garda, Trento, Italy
Duration: Sep 23 2012Sep 24 2012

Publication series

NameProceedings - 2012 IEEE 12th International Working Conference on Source Code Analysis and Manipulation, SCAM 2012

Conference

Conference2012 IEEE 12th International Working Conference on Source Code Analysis and Manipulation, SCAM 2012
Country/TerritoryItaly
CityRiva del Garda, Trento
Period9/23/129/24/12

Keywords

  • code generation
  • error analysis
  • fuzzy reuse
  • lookup table
  • memoization
  • Mesa tool
  • performance optimization
  • scientific computing

ASJC Scopus subject areas

  • Software

Fingerprint

Dive into the research topics of 'Optimizing expression selection for lookup table program transformation'. Together they form a unique fingerprint.

Cite this