A compiler framework for recovery code generation in general speculative optimizations

Jin Lin, Wei Chung Hsu, Pen Chung Yew, Roy Dz Ching Ju, Tin Fook Ngai

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

4 Scopus citations

Abstract

A general framework that integrates both control and data speculation using alias profiling and/or compiler heuristic rules has shown to improve SPEC2000 performance on Itanium systems. However, speculative optimizations require check instructions and recovery code to ensure correct execution when speculation fails at runtime. How to generate check instructions and their associated recovery code efficiently and effectively is an issue yet to be well studied. Also, it is very important that the recovery code generated in the earlier phases integrate gracefully in the later optimization phases. At the very least, it should not hinder later optimizations, thus, ensuring overall performance improvement. This paper proposes a framework that uses an if-block structure to facilitate check instructions and recovery code generation for general speculative optimizations. It allows speculative instructions and their recovery code generated in the early compiler optimization phases to be integrated effectively with the subsequent optimization phases. It also allows multi-level speculation for multi-level pointers and multi-level expression trees to be handled with no additional complexity. The proposed recovery code generation framework has been implemented in the Open Research Compiler (ORC).

Original languageEnglish (US)
Title of host publicationParallel Architectures and Compilation Techniques - Conference Proceedings, PACT
Pages17-28
Number of pages12
StatePublished - 2004
EventProceedings - 13th International Conference on Parallel Architectures and Compilation Techniques (PACT 2004) - Antibes Juan-les-Pins, France
Duration: Sep 29 2004Oct 3 2004

Other

OtherProceedings - 13th International Conference on Parallel Architectures and Compilation Techniques (PACT 2004)
Country/TerritoryFrance
CityAntibes Juan-les-Pins
Period9/29/0410/3/04

Fingerprint

Dive into the research topics of 'A compiler framework for recovery code generation in general speculative optimizations'. Together they form a unique fingerprint.

Cite this