diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-07-09 08:36:34 +0000 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-07-09 08:36:34 +0000 |
commit | 12aca5de026bd15663596c392ac828f8078bca6b (patch) | |
tree | 95207504023a3f9cc3763fb381ad283dd57ed883 /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | 50e7f45b280f1e7922a6525ace10a6bd33f70fa7 (diff) | |
download | llvm-12aca5de026bd15663596c392ac828f8078bca6b.zip llvm-12aca5de026bd15663596c392ac828f8078bca6b.tar.gz llvm-12aca5de026bd15663596c392ac828f8078bca6b.tar.bz2 |
Reland "[LiveDebugValues] Emit the debug entry values"
Emit replacements for clobbered parameters location if the parameter
has unmodified value throughout the funciton. This is basic scenario
where we can use the debug entry values.
([12/13] Introduce the debug entry values.)
Co-authored-by: Ananth Sowda <asowda@cisco.com>
Co-authored-by: Nikola Prica <nikola.prica@rt-rk.com>
Co-authored-by: Ivan Baev <ibaev@cisco.com>
Differential Revision: https://reviews.llvm.org/D58042
llvm-svn: 365444
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index f9b5486..0ad792a 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -840,7 +840,7 @@ void MachineVerifier::visitMachineBundleBefore(const MachineInstr *MI) { if (MI->isTerminator() && !TII->isPredicated(*MI)) { if (!FirstTerminator) FirstTerminator = MI; - } else if (FirstTerminator) { + } else if (FirstTerminator && !MI->isDebugEntryValue()) { report("Non-terminator instruction after the first terminator", MI); errs() << "First terminator was:\t" << *FirstTerminator; } |