aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineCheckDebugify.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2020-12-16 23:04:41 +0300
committerRoman Lebedev <lebedev.ri@gmail.com>2020-12-17 01:03:50 +0300
commitd22a47e9fff84c0872331d871b8fe2850e56d809 (patch)
tree5599c69044b5af92fc5f15e8755f279138f1b9f8 /llvm/lib/CodeGen/MachineCheckDebugify.cpp
parent5cce4aff18c4066c11c927fbe0943dffb6cd76b5 (diff)
downloadllvm-d22a47e9fff84c0872331d871b8fe2850e56d809.zip
llvm-d22a47e9fff84c0872331d871b8fe2850e56d809.tar.gz
llvm-d22a47e9fff84c0872331d871b8fe2850e56d809.tar.bz2
[SimplifyCFG] Teach mergeEmptyReturnBlocks() to preserve DomTree
A first real transformation that didn't already knew how to do that, but it's pretty tame - either change successor of all the predecessors of a block and carefully delay deletion of the block until afterwards the DomTree updates are appled, or add a successor to the block. There wasn't a great test coverage for this, so i added extra, to be sure.
Diffstat (limited to 'llvm/lib/CodeGen/MachineCheckDebugify.cpp')
0 files changed, 0 insertions, 0 deletions