summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorLuís Marques <luismarques@lowrisc.org>2019-11-10 15:56:51 +0000
committerLuís Marques <luismarques@lowrisc.org>2019-11-10 16:00:07 +0000
commitbe0fead7bffbf65c519ca50c89584e65dcf18793 (patch)
tree98b3ea5661a08a9ecd21e544ac28bdb5dc4b0be0 /llvm/lib
parentef02831f0a4e3b3ccaa45a5589e4cabecbf527ab (diff)
downloadbcm5719-llvm-be0fead7bffbf65c519ca50c89584e65dcf18793.tar.gz
bcm5719-llvm-be0fead7bffbf65c519ca50c89584e65dcf18793.zip
[RISCV][NFC] Add CFI-related tests
Summary: Adds tests necessary to properly show the impact of other patches that affect the emission of CFI directives. Reviewers: asb, lenary Reviewed By: lenary Tags: #llvm Differential Revision: https://reviews.llvm.org/D69721
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/RISCV/RISCVFrameLowering.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
index daa7b7a7ea9..6344ed448ad 100644
--- a/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -228,6 +228,8 @@ void RISCVFrameLowering::emitPrologue(MachineFunction &MF,
}
}
+// FIXME Fix emission of .cfi_restore and .cfi_def_cfa CFI directives that can
+// incorrectly affect subsequent basic blocks.
void RISCVFrameLowering::emitEpilogue(MachineFunction &MF,
MachineBasicBlock &MBB) const {
MachineBasicBlock::iterator MBBI = MBB.getLastNonDebugInstr();
OpenPOWER on IntegriCloud