peephole optimisation

peephole optimisation

(compiler)A kind of code optimisation that considers only afew adjacent instructions at a time and looks for certaincombinations which can be replaced with more efficientsequences. E.g.

ADD R0, #1ADD R0, #1

(add one to register R0) could be replaced by

ADD R0, #2