optimizing more Phi nodes during construction