This approach is used by AArch64/RISCV to make frame-setup/frame-destroy
instructions contiguous instead of being interleaved by CFI instructions. Code
checking MBBI->getFlag(MachineInstr::FrameSetup) || MBBI->isCFIInstruction()
can be simplified to just check FrameSetup.
This helps get all CFI instructions in the prologue, which can be handy to use
.cfi_remember_state/.cfi_restore_state to decrease unwind table size.
Include the ret line?