[DebugInfo] Remove call sites when eliminating unreachable blocks
authorDavid Stenberg <david.stenberg@ericsson.com>
Mon, 12 Aug 2019 13:22:29 +0000 (13:22 +0000)
committerDavid Stenberg <david.stenberg@ericsson.com>
Mon, 12 Aug 2019 13:22:29 +0000 (13:22 +0000)
commit9b29ec58b70e988e12be03044ef71e30895608f2
tree87aedd47f06e6adc10f594c5ced3758e4934d135
parent342fb0db6d98d43252cbaeb6123cd154976c42aa
[DebugInfo] Remove call sites when eliminating unreachable blocks

Summary:
When eliminating an unreachable block we must remove any call site
information for calls residing in the block.

This was originally found on a downstream target, and the attached x86
test case was produced by hand-modifying some MIR.

Reviewers: aprantl, asowda, NikolaPrica, djtodoro, ivanbaev, vsk

Reviewed By: NikolaPrica, vsk

Subscribers: vsk, hiraditya, llvm-commits

Tags: #debug-info, #llvm

Differential Revision: https://reviews.llvm.org/D64500

llvm-svn: 368566
llvm/lib/CodeGen/UnreachableBlockElim.cpp
llvm/test/DebugInfo/MIR/X86/unreachable-block-call-site.mir [new file with mode: 0644]