MatzeB added a comment. Wouldn't the things you do for tail calls here apply in the same way to all forms of returning instructions (MachineInstr::isReturn()), I would assume sequences ending in a return are even more common than tail calls. https://reviews.llvm.org/D30670