Code factoring and change PHI to NOP when appropriate.