diff options
author | Nikola Prica <nikola.prica@rt-rk.com> | 2019-10-08 15:43:12 +0000 |
---|---|---|
committer | Nikola Prica <nikola.prica@rt-rk.com> | 2019-10-08 15:43:12 +0000 |
commit | 98603a815308626fafdba930f69333da13ecc31e (patch) | |
tree | 3ea353dcf96d8e7c2543cef5c418e9e29a3a5a3c /llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | |
parent | 41ff39605ea1c9278f6ff15208475f5f3c863f44 (diff) | |
download | bcm5719-llvm-98603a815308626fafdba930f69333da13ecc31e.tar.gz bcm5719-llvm-98603a815308626fafdba930f69333da13ecc31e.zip |
[DebugInfo][If-Converter] Update call site info during the optimization
During the If-Converter optimization pay attention when copying or
deleting call instructions in order to keep call site information in
valid state.
Reviewers: aprantl, vsk, efriedma
Reviewed By: vsk, efriedma
Differential Revision: https://reviews.llvm.org/D66955
llvm-svn: 374068
Diffstat (limited to 'llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp')
-rw-r--r-- | llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp index 3724c0fd265..563fdda5610 100644 --- a/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp +++ b/llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp @@ -1207,7 +1207,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB, // Update call site info and delete the pseudo instruction TCRETURN. - MBB.getParent()->updateCallSiteInfo(&MI, &*NewMI); + MBB.getParent()->moveCallSiteInfo(&MI, &*NewMI); MBB.erase(MBBI); MBBI = NewMI; @@ -1439,7 +1439,7 @@ bool ARMExpandPseudo::ExpandMI(MachineBasicBlock &MBB, MIB.cloneMemRefs(MI); TransferImpOps(MI, MIB, MIB); - MI.getMF()->updateCallSiteInfo(&MI, &*MIB); + MI.getMF()->moveCallSiteInfo(&MI, &*MIB); MI.eraseFromParent(); return true; } |