Fix tail merging to assign the (more) correct BasicBlock when splitting.