]> granicus.if.org Git - llvm/commit
[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)
commit8df59cdc287df196040bba1dce5dbf9488d268fb
tree37ac9e71af5b3a9fd945db8c4147d85364bc347b
parent71435c624d48c271cf7e1d2f15eb4397f98d6eab
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368566 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/UnreachableBlockElim.cpp
test/DebugInfo/MIR/X86/unreachable-block-call-site.mir [new file with mode: 0644]