[JumpThreading] Factor out common code to update the SSA form (NFC)
This patch factors out common code to update the SSA form in
JumpThreading.cpp -- partly for readability and partly to facilitate
an coming patch of my own.
Subscribers: hiraditya, jfb, llvm-commits
Differential Revision: https://reviews.llvm.org/D69811