diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2020-02-10 09:49:14 +0100 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2020-02-10 10:03:14 +0100 |
commit | 68908993ebd2af459cd0f2ed6ab340bf62fb3e9d (patch) | |
tree | 77c6591e54948188960a34e3d64d842301b74106 /llvm/lib/CodeGen/MachineOutliner.cpp | |
parent | d2e0fee77bc82a54bcc11ce778ce12f068f9e326 (diff) | |
download | llvm-68908993ebd2af459cd0f2ed6ab340bf62fb3e9d.zip llvm-68908993ebd2af459cd0f2ed6ab340bf62fb3e9d.tar.gz llvm-68908993ebd2af459cd0f2ed6ab340bf62fb3e9d.tar.bz2 |
[CSInfo] Use isCandidateForCallSiteEntry() when updating the CSInfo
Use the isCandidateForCallSiteEntry().
This should mostly be an NFC, but there are some parts ensuring
the moveCallSiteInfo() and copyCallSiteInfo() operate with call site
entry candidates (both Src and Dest should be the call site entry
candidates).
Differential Revision: https://reviews.llvm.org/D74122
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index 46a6e86..8fd3679 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -1260,7 +1260,7 @@ bool MachineOutliner::outline(Module &M, MOP.getReg(), true, /* isDef = true */ true /* isImp = true */)); } - if (MI.isCall()) + if (MI.isCandidateForCallSiteEntry()) MI.getMF()->eraseCallSiteInfo(&MI); }; // Copy over the defs in the outlined range. |