[AArch64][MachineOutliner] Don't outline CFI instructions
authorJessica Paquette <jpaquette@apple.com>
Mon, 2 Mar 2020 18:49:18 +0000 (10:49 -0800)
committerJessica Paquette <jpaquette@apple.com>
Mon, 2 Mar 2020 18:56:35 +0000 (10:56 -0800)
commit02c154a9cb7f81d6bffe2326104e8d19980f2dd5
tree32b8c8e13c4fef62793a81cfe58d77fe358aa950
parente20e6f26fab370b51fdcab99cd9d8d23962daaac
[AArch64][MachineOutliner] Don't outline CFI instructions

CFI instructions can only safely be outlined when the outlined call is a tail
call, or when the outlined frame is fixed up.

For the sake of correctness, disable outlining from CFI instructions.

Add machine-outliner-cfi.mir to test this.
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/test/CodeGen/AArch64/machine-outliner-cfi.mir [new file with mode: 0644]