[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)
commit926ee459c40dc6e22945439d278f6e4ec553a640
treeaab020e58eb514d8bee0319cdbf60d52d2751175
parentde02e4b1cc68695d0af167fec4aa55cd74b0c90e
[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

llvm-svn: 347872
llvm/lib/Transforms/Scalar/CallSiteSplitting.cpp
llvm/test/Transforms/CallSiteSplitting/musttail.ll