diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2020-12-16 23:04:41 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2020-12-17 01:03:50 +0300 |
commit | d22a47e9fff84c0872331d871b8fe2850e56d809 (patch) | |
tree | 5599c69044b5af92fc5f15e8755f279138f1b9f8 /llvm/lib/CodeGen/MachineCheckDebugify.cpp | |
parent | 5cce4aff18c4066c11c927fbe0943dffb6cd76b5 (diff) | |
download | llvm-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