Correctly handle replacement and removal of PHIs with one incoming register.