Tail duplication can mix incompatible registers in phi nodes