[SimplifyCFG] Port SplitBlockAndInsertIfThen() to DomTreeUpdater
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 12 Jan 2021 13:49:32 +0000 (16:49 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Fri, 15 Jan 2021 20:35:56 +0000 (23:35 +0300)
commit286cf6cb029a9942df6ff1d99570e93c25fe29f0
tree7a9d8948b7bc7d8977294aeeb62fd7d25881d996
parentc845c724c2323660e81a0b284aaa461842f1b402
[SimplifyCFG] Port SplitBlockAndInsertIfThen() 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/Instrumentation/HWAddressSanitizer.cpp
llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
llvm/lib/Transforms/Utils/SimplifyCFG.cpp