Fix PR5262: when folding select into PHI, make sure all operands are available