Please note that the content of this book primarily consists of articles
available from Wikipedia or other free sources online. In compiler
theory, peephole optimization is a kind of optimization performed over a
very small set of instructions in a segment of generated code. The set
is called a "peephole" or a "window". It works by recognising sets of
instructions that don't actually do anything, or that can be replaced by
a leaner set of instructions.