[DebugInfo][If-Converter] Update call site info during the optimization
authorNikola Prica <nikola.prica@rt-rk.com>
Tue, 8 Oct 2019 15:43:12 +0000 (15:43 +0000)
committerNikola Prica <nikola.prica@rt-rk.com>
Tue, 8 Oct 2019 15:43:12 +0000 (15:43 +0000)
commit98603a815308626fafdba930f69333da13ecc31e
tree3ea353dcf96d8e7c2543cef5c418e9e29a3a5a3c
parent41ff39605ea1c9278f6ff15208475f5f3c863f44
[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
15 files changed:
llvm/include/llvm/CodeGen/MachineFunction.h
llvm/lib/CodeGen/BranchFolding.cpp
llvm/lib/CodeGen/IfConversion.cpp
llvm/lib/CodeGen/InlineSpiller.cpp
llvm/lib/CodeGen/LiveRangeEdit.cpp
llvm/lib/CodeGen/MachineFunction.cpp
llvm/lib/CodeGen/MachineOutliner.cpp
llvm/lib/CodeGen/PeepholeOptimizer.cpp
llvm/lib/CodeGen/TargetInstrInfo.cpp
llvm/lib/CodeGen/UnreachableBlockElim.cpp
llvm/lib/CodeGen/XRayInstrumentation.cpp
llvm/lib/Target/ARM/ARMExpandPseudoInsts.cpp
llvm/lib/Target/X86/X86ExpandPseudo.cpp
llvm/test/CodeGen/ARM/smml.ll
llvm/test/DebugInfo/MIR/ARM/if-coverter-call-site-info.mir [new file with mode: 0644]