Peephole optimization is an optimization technique performed on a small set of compiler-generated instructions, known as a peephole or window,[1]: 549 [2][3] that involves replacing the instructions with a logically equi...