Lazy instruction selection is a very simple optimization that replaces certain instructions by shorter and/or faster equivalents. Examples are the use of TSTA instead of CMPA #0 or using COMB instead of EORB #0xFF.