The origin comment in User::replaceUsesOfWith writes:
if (getOperand(i) == From) { // Is This operand is pointing to oldval?
// The side effects of this setOperand call include linking to
// "To", adding "this" to the uses list of To, and
// most importantly, removing "this" from the use list of "From".
setOperand(i, To);// fix it now
}The line fix it now looks like we need a patch here to achieve the effects described above. However, the effects had been implemented. So I think it is more clear to delete this comment.