[Utils][SimplifyCFG] Port SplitBlock() to DomTreeUpdater
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 12 Jan 2021 17:15:21 +0000 (20:15 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 15 Jan 2021 20:35:56 +0000 (23:35 +0300)
commitc845c724c2323660e81a0b284aaa461842f1b402
tree645f5220ed9b67c3d891544ed6754dc2db713e0c
parentb81f75fa79162e9e2ba84d6b4cdd72f564b050c6
[Utils][SimplifyCFG] Port SplitBlock() to DomTreeUpdater

This is not nice, but it's the best transient solution possible,
and is better than just duplicating the whole function.

The problem is, this function is widely used,
and it is not at all obvious that all the users
could be painlessly switched to operate on DomTreeUpdater,
and somehow i don't feel like porting all those users first.

This function is one of last three that not operate on DomTreeUpdater.
llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
llvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp