ACM Transactions on Programming Languages and Systems · 1980 · 122 citations · 6 references
ComputingComputer EngineeringComputer ScienceCompilersComputer ArchitectureDesign AutomationAbstract Syntax TreesCode GenerationInstruction SchedulingInstruction SelectionInstruction-level ParallelismSymbolic ExecutionMachine Description LanguagesMachine-dependent OptimizationObject Code OptimizationOptimizer DesignPeephole OptimizationRetargetable Code GenerationSymbolic Execution Engines
Peephole optimizers improve object code by replacing certain sequences of instructions with better sequences. This paper describes PO, a peephole optimizer that uses a symbolic machine description to simulate pairs of adjacent instructions, replacing them, where possible, with an equivalent single instruction. As a result of this organization, PO is machine independent and can be described formally and concisely: when PO is finished, no instruction, and no pair of adjacent instructions, can be replaced with a cheaper single instruction that has the same effect. This thoroughness allows PO to relieve code generators of much case analysis; for example, they might produce only load/add-register sequences and rely on PO to, where possible, discard them in favor or add-memory, add-immediate, or increment instructions. Experiments indicate that naive code generators can give good code if used with PO.
6
Edward S. Lowry, C. W. Medlock · Communications of the ACM · 1969 · 229 citations · Full text
A new method for compiler code generation
R. Steven Glanville, Susan L. Graham · 1978 · 177 citations
W. M. McKeeman · Communications of the ACM · 1965 · 155 citations · Full text
The Design of an Optimizing Compiler
D. C. Cooper · The Computer Journal · 1976 · 117 citations · Full text
A new strategy for code generation
William Harrison · 1977 · 31 citations