[Utils] Cleanup similar cases to MergeBlockIntoPredecessor.
There are two cases where a block is merged into its predecessor and the
MergeBlockIntoPredecessor API is not used. Update the API so it can be
reused in the other cases, in order to avoid code duplication.
Cleanup motivated by D68659.
Reviewers: chandlerc, sanjoy.google, george.burgess.iv
Differential Revision: https://reviews.llvm.org/D68670