Both functions use LiveRegs but init is only done in mergeCommonTails. It creates a dependency between this function while an init instead of clear in replaceTailWithBranchTo would do the job.
Also, if MBB->predecessors is empty (I don't know if it is possible), the initialization would not be done.