Fixed a bug with appending PHI moves to the end of blocks