OSDN Git Service

[CallSiteSplitting] Report edge deletion to DomTreeUpdater
authorJoseph Tremoulet <jotrem@microsoft.com>
Thu, 29 Nov 2018 15:27:04 +0000 (15:27 +0000)
committerJoseph Tremoulet <jotrem@microsoft.com>
Thu, 29 Nov 2018 15:27:04 +0000 (15:27 +0000)
commitdd1b6604dba5a383f6a71a06006f53d4864591a4
treebb6578ba7f74b154af8d0a5878bfe6bc5403b556
parent7fd87699a5a26f82d7777d18a8f74f3f94220900
[CallSiteSplitting] Report edge deletion to DomTreeUpdater

Summary:
When splitting musttail calls, the split blocks' original terminators
get removed; inform the DTU when this happens.

Also add a testcase that fails an assertion in the DTU without this fix.

Reviewers: fhahn, junbuml

Reviewed By: fhahn

Subscribers: llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347872 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/CallSiteSplitting.cpp
test/Transforms/CallSiteSplitting/musttail.ll