Be more careful when constant-folding PHI nodes.